text stringlengths 1 1.05M |
|---|
; A067420: Fifth column of triangle A067417.
; Submitted by Jon Maiga
; 1,7,105,1575,23625,354375,5315625,79734375,1196015625,17940234375,269103515625,4036552734375,60548291015625,908224365234375,13623365478515625,204350482177734375,3065257232666015625,45978858489990234375,689682877349853515625,10345243160247802734375,... |
# Copyright (C) 2011-2017 Apple Inc. 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 list of conditions and th... |
; A013962: a(n) = sigma_14(n), the sum of the 14th powers of the divisors of n.
; 1,16385,4782970,268451841,6103515626,78368963450,678223072850,4398314962945,22876797237931,100006103532010,379749833583242,1283997101947770,3937376385699290,11112685048647250,29192932133689220,72061992352890881,168377826559400930,37483632... |
; Copyright Rohfel Adyaraka. All rights reserved.
ProgramSpace equ 0x7e00
ReadDisk:
mov ah, 0x02
mov bx, ProgramSpace
mov al, 4
mov dl, [BootDisk]
mov ch, 0x00
mov dh, 0x00
mov cl, 0x02
int 0x13
jc DiskReadFailed
ret
BootDisk:
db 0
DiskReadFailedString:
db 'Disk read failed!', 0
DiskReadFailed:
mov... |
;
; feilipu, 2019 April
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
;-------------------------------------------------------------------------
; m32_fsdiv - ... |
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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... |
db DEX_OMASTAR ; pokedex id
db 70 ; base hp
db 60 ; base attack
db 125 ; base defense
db 55 ; base speed
db 115 ; base special
db BUG ; species type 1
db WATER ; species type 2
db 33 ; catch rate
db 199 ; base exp yield
INCBIN "pic/ymon/omastar.pic",0,1 ; 66, sprite dimensions
dw OmastarPicFront
dw OmastarPicBack
; att... |
; variation on more complex internal states of sjasmplus (reading multi-line from macro definition/etc)
OUTPUT "multi_line_init2.bin"
DB "1) single-line classic initializers test:\n"
STRUCT S_sub1
b1 byte $11
t1 text 5, { "txt", '_' }
w1 word $3322
ENDS
STRUCT S_main
b2 ... |
; int b_vector_reserve(b_vector_t *v, size_t n)
SECTION code_adt_b_vector
PUBLIC _b_vector_reserve
EXTERN asm_b_vector_reserve
_b_vector_reserve:
pop af
pop hl
pop bc
push bc
push hl
push af
jp asm_b_vector_reserve
|
SECTION code_clib
SECTION code_fp_math48
PUBLIC rint
EXTERN cm48_sccz80_rint
defc rint = cm48_sccz80_rint
|
#include "google_codec.h"
#include "docidupdates.h"
#include <ansifmt.h>
#include <compress.h>
#include <memory>
#pragma mark ENCODER
void Trinity::Codecs::Google::Encoder::begin_term() {
auto out{&sess->indexOut};
curBlockSize = 0;
lastCommitedDocID = 0;
prevBlockLas... |
db "HAPPINESS@" ; species name
dw 200, 70 ; height, weight
db "Although it does"
next "not flap its wings"
next "very much, it can"
page "stay up in the air"
next "as it tags along"
next "after its trainer.@"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rax
push %rdi
push %rdx
lea addresses_WC_ht+0x2416, %r15
nop
nop
nop
xor %rdi, %rdi
movw $0x6162, (%r15)
nop
nop
nop
add %r11, %r11
lea addresses_A_ht+0x18a5e, %r13
nop
and $63050, %rdx
movw $0x6162, (%r13)
nop
nop
nop
sub $25485,... |
; size_t w_vector_insert(w_vector_t *v, size_t idx, void *item)
SECTION code_clib
SECTION code_adt_w_vector
PUBLIC w_vector_insert
EXTERN asm_w_vector_insert
w_vector_insert:
pop af
pop de
pop bc
pop hl
push hl
push bc
push de
push af
jp asm_w_vector_insert
; SDCC bridge for Cl... |
; A279662: a(n) = (2/3)^n*Gamma(n+3/4)*Gamma(n+1)*Gamma(n+2)/Gamma(3/4).
; Submitted by Christian Krause
; 1,1,7,154,7700,731500,117771500,29678418000,11040371496000,5796195035400000,4144279450311000000,3920488359994206000000,4790836775912919732000000,7411424492337286825404000000,14266992147749277138902700000000,336701... |
SECTION code_driver
SECTION code_driver_terminal_input
PUBLIC rc_01_input_basic_stdio_msg_flsh
EXTERN console_01_input_stdio_msg_flsh
rc_01_input_basic_stdio_msg_flsh:
; get rid of any pending chars in basic's buffer
rst 0x18 ; nz if buffer contains chars
jp z, console_01_input_stdi... |
;
; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. 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 list of... |
#pragma once
#include "movable.hpp"
#include <cstdint>
struct Illumination;
struct PlayerInputs;
class Ai
{
public:
uint32_t unknown1a; // flags?
uint32_t unknown1b; // flags?
int32_t unknown2;
int32_t unknown3; // garbage?
size_t unknown4;
size_t button_sequence; /*unsure*/
Entity* sel... |
;========================================================
COMMENT #
NUMDRVS.ASM
Copyright (c) 1991 - Microsoft Corp.
All rights reserved.
Microsoft Confidential
=================================================
Uses function 8h of int 13h or if this is not
available, int 11h to return the total number of
flo... |
#ifndef OMEGA_H_COMM_HPP
#define OMEGA_H_COMM_HPP
#include <memory>
#include <Omega_h_mpi.h>
#include <Omega_h_array.hpp>
#include <Omega_h_defines.hpp>
#include <Omega_h_fail.hpp>
#include <Omega_h_future.hpp>
#include <Omega_h_int128.hpp>
#ifndef OMEGA_H_FAIL_HPP
#error "included fail but guard not defined"
#endif
... |
;===============================================================================
; Copyright 2015-2021 Intel 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.apa... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
ARR DW 5 DUP(?)
MOV AX, OFFSET ARR
ADD [AX], 1
ADD [AX+1], 2
ADD [AX+2], 1
ADD [AX+3], 2
ADD [AX=4], 1
ret
|
#note: r40 (the exception handler) and r46 (the start of usermode code) must
#be specified in hex (0xwhatever)
#I just don't see any reason not to, and it makes programming the script
#much nicer to deal with...
#load exception handler
lc r40, 0x80000050
leh r40
#enable exceptions
cle
#load TLB ent... |
; A086529: Beginning with 2, distinct even numbers such that the arithmetic mean of successive pairs of terms gives odd primes in their natural order. {a(n) + a(n+1)}/2 = prime(n+1).
; 2,4,6,8,14,12,22,16,30,28,34,40,42,44,50,56,62,60,74,68,78,80,86,92,102,100,106,108,110,116,138,124,150,128,170,132,182,144,190,156,202... |
; A228967: Table read by rows; T(n,k) = 2n for k = 1, T(n,k) = 9n for k = 2.
; Submitted by Jamie Morken(s1)
; 2,9,4,18,6,27,8,36,10,45,12,54,14,63,16,72,18,81,20,90,22,99,24,108,26,117,28,126,30,135,32,144,34,153,36,162,38,171,40,180,42,189,44,198,46,207,48,216,50,225,52,234,54,243,56,252,58,261,60,270,62,279,64,288
... |
.model small
.stack 120h
.data
MenuC1 DB 06d ;blue
MenuC2 byte 15d ;yellow
MenuC3 byte 04d ;red
MenuC4 byte 02d ;green
playerName db 127 DUP("$")
promptName db "Enter your Name : ",'$'
.code
main proc
mov AX, @da... |
; FV-1 Testing
;
; Program: Sin interpolation
;
; Output SIN0 inerpolation coefficients on each channel
;
; POT0: RATE 0 0.5 - 20Hz
; POT2: AMP 0.0 - 1.0
;
; Kf - frequency coefficient ranges over 0-511 (0.0 -> 0.99)
; Ka - amplitude coefficient ranges over 0-32767 (0.0 -> 0.99)
; Prepare LFOs
skp RUN,main
wlds... |
#pragma once
#include <random>
class NumberGenerator
{
protected:
std::random_device rd;
std::mt19937 gen;
NumberGenerator()
: gen(0)
{}
};
template<typename T>
class RealNumberGenerator : public NumberGenerator
{
private:
std::uniform_real_distribution<T> dis;
public:
RealNumberGenerator()
: NumberGene... |
; A036706: a(n)=number of Gaussian integers z=a+bi satisfying n - 1/2 < |z| <= n + 1/2, a>0, b>=0.
; Submitted by Jamie Morken(w4)
; 0,2,3,4,8,7,10,10,12,17,14,18,17,22,22,21,28,28,28,29,28,36,35,36,36,42,41,40,46,43,50,48,47,52,56,56,57,56,62,59,66,62,66,69,66,72,69,76,76,78,79,80,86,79,84,88,85,94,84,98,95
seq $0,36... |
%include "TiberianSun.inc"
%include "macros/patch.inc"
%include "macros/datatypes.inc"
; A work-around for a crash in InfantryClass::Take_Damage when
; the warhead is null, sometimes seen in DTA despite that everything
; in the INI configuration files appears to be as they should.
; *******************
; Author: Rampa... |
; A105398: A simple "Fractal Jump Sequence" (FJS).
; 4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4,8,4
gcd $0,2
mov $1,8
div $1,$0
|
; A097913: G.f.: (1+x^18)/((1-x)*(1-x^8)*(1-x^12)*(1-x^24)).
; 1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,5,5,6,6,6,6,9,9,10,10,11,11,12,12,15,15,16,16,19,19,20,20,23,23,26,26,29,29,30,30,36,36,39,39,42,42,45,45,51,51,54,54,60,60,63,63,69,69,75,75,81,81,84,84,94,94,100,100,106,106,112,112,122,122,128,128,138,138,144,144,154,1... |
# SYNTAX TEST "Packages/Assembly-6809/Assembly-6809.sublime-syntax"
# <- source.mc6809
; Indexed addressing mode
;------------------------------------------------------------------------------
; Constant offset from R
lda ,x comment
# ^ operator.separator
# ^ variable.language.register
... |
;;
;; Copyright (c) 2018-2021, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2018, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
// 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 "core/css/properties/CSSPropertyAPIRotate.h"
#include "core/css/CSSValueList.h"
#include "core/css/parser/CSSPropertyParserHelpers.h"
#include "... |
#include "Type.h"
#include "Module.h"
#include <cassert>
Type::Type(TypeID tid)
{
tid_ = tid;
}
bool Type::is_eq_type(Type *ty1, Type *ty2)
{
return ty1->get_type_id() == ty2->get_type_id();
}
Type *Type::get_void_type(Module *m)
{
return m->get_void_type();
}
Type *Type::get_label_type(Module *m)
{
... |
; A214555: Subsequence of fixed points A099009 of the Kaprekar mapping with numbers of the form 5(n)//4//9(n+1)//4(n)//5.
; Submitted by Jamie Morken(s1.)
; 495,549945,554999445,555499994445,555549999944445,555554999999444445,555555499999994444445,555555549999999944444445,555555554999999999444444445,5555555554999999999... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r15
push %r8
push %rdi
push %rdx
push %rsi
// Faulty Load
lea addresses_D+0x18eca, %rsi
nop
nop
nop
nop
cmp $9733, %r8
mov (%rsi), %dx
lea oracles, %rsi
and $0xff, %rdx
shlq $12, %rdx
mov (%rsi,%rdx,1),... |
; A010475: Decimal expansion of square root of 19.
; 4,3,5,8,8,9,8,9,4,3,5,4,0,6,7,3,5,5,2,2,3,6,9,8,1,9,8,3,8,5,9,6,1,5,6,5,9,1,3,7,0,0,3,9,2,5,2,3,2,4,4,4,9,3,6,8,9,0,3,4,4,1,3,8,1,5,9,5,5,7,3,2,8,2,0,3,1,5,8,0,8,5,6,5,6,1,5,9,1,5,5,8,5,1,9,4,4,5,2,6
mov $1,1
mov $2,1
mov $3,$0
add $3,3
mov $4,$0
add $4,5
mul $4,2
m... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xcedb, %r12
nop
sub $24627, %rax
mov $0x6162636465666768, %r13
movq %r13, %xmm2
vmovups %ymm2, (%r12)
and $3947, %r8
lea addresses_WT_ht+0xef6b, %r11
nop
nop
nop... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right 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 th... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x12eec, %r11
sub $62950, %r10
mov (%r11), %r12w
nop
nop
nop
nop
nop
sub $17187, %rdi
lea addresses_A_ht+0x14d8c, %r12
clflush (%r12)
nop
nop
nop
xor %rbx, %rbx
mov (%r12), %r... |
; A187018: Coefficient of x^n in (1 + x + n*x^2)^n.
; Submitted by Christian Krause
; 1,1,5,19,145,851,7741,58605,600769,5420035,61026901,628076153,7648488145,87388647373,1138801242125,14182492489651,196218339243777,2628971539313875,38377805385510181,547815690902283225,8395817775835635601,126725586542235932329,20306114... |
; A048588: Pisot sequence L(7,8).
; 7,8,10,13,17,23,32,45,64,92,133,193,281,410,599,876,1282,1877,2749,4027,5900,8645,12668,18564,27205,39869,58429,85630,125495,183920,269546,395037,578953,848495,1243528,1822477,2670968,3914492,5736965,8407929,12322417,18059378,26467303,38789716,56849090,83316389,122106101,178955187,26... |
#include <iostream>
#include <fstream>
#include <string>
#include "header.h"
#include <stdlib.h>
#define ISOPTION true
#define NOTOPTION false
using namespace std;
void help(void)
{
cout << "Utilisation : harmo [OPTION value]... " << endl << endl
<< "Cacule le nieme nombre de la suite Ha... |
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
QSettings settings("MarekChoinski","Colorizer" );
w.show();
return a.exec();
}
|
IDEAL
MODEL SMALL
STACK 100h
DATASEG
msg db "Hello World", 0dh, 0ah, "$"
CODESEG
start:
mov ax, @data
mov ds, ax
mov dx, offset msg
mov ah, 9
int 21h
mov ah, 4ch
int 21h
end start
|
include "emu8086.inc"
org 100h
; Various procedures called to do the task
call input
call printip
call binary
call network
call broadcast
call subn
call host
call wild
call pause
call credits
call endprog
input proc
;-------------------------- Opening screen ---------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x9dc2, %rsi
lea addresses_WT_ht+0xee32, %rdi
and $43874, %rbx
mov $98, %rcx
rep movsl
nop
nop
dec %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r14
... |
// =============================================================================
// 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... |
section .data
msg1 : db 'Enter first digit of first number :'
l1 : equ $-msg1
msg2 : db 'Enter second digit of first number :'
l2 : equ $-msg2
msg3 : db 'its is not prime'
l3 : equ $-msg3
msg4 : db 'it is prime '
l4 : equ $-msg4
section .bss
num11 : resb 1
num12 : resb 1
num21 : resb 1
num22 :resb 1
num3... |
; A130484: a(n) = Sum_{k=0..n} (k mod 6) (Partial sums of A010875).
; 0,1,3,6,10,15,15,16,18,21,25,30,30,31,33,36,40,45,45,46,48,51,55,60,60,61,63,66,70,75,75,76,78,81,85,90,90,91,93,96,100,105,105,106,108,111,115,120,120,121,123,126,130,135,135,136,138,141,145,150,150,151,153,156,160,165,165,166,168,171,175,180,180,18... |
/*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdio.h>
#include "../simdebug.h"
#include "../simworld.h"
#include "../display/simimg.h"
#include "../utils/simrandom.h"
#include "../boden/grund.h"
#include "../dataobj/loadsave.h"
#include "../... |
global test_case
extern Array.beforeq
extern Array.eachq
extern std.outq
extern std.outln
extern sys.error
%include "Array.inc"
section .text
test_case:
mov rax, test_array ; Array to split
mov rbx, 2 ; delimit with value 2
call Array.beforeq ; split into two... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global gcm_gmult_4bit
ALIGN 16
gcm_gmult_4bit:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_gcm_gmult_4bit:
mov rdi,rcx
mov rsi,rdx
push rbx
push rbp
push ... |
; A016250: Expansion of 1/((1-x)(1-7x)(1-9x)).
; 1,17,210,2290,23411,230307,2210020,20850980,194384421,1796538997,16498405430,150792530070,1373280939031,12472565630087,113044350922440,1022937980063560,9245213572903241,83478324422447577,753204735666257050,6792141332045915450,61222362965760453051,551652903533274575467,49... |
; Test case generated by KLC3
; Extra event input of the test case.
; Note that this file may contains additional things after the end of extra list.
; lease carefully identify the end of the extra list.
.ORIG x6000
.FILL x600A ; EXTRA1_NAME_PTR
.FILL x0010 ; EXTRA1_WEEKDAY_BV
.FILL x0002 ; EXTRA1_SLOT_BV
.FILL x... |
org 0x100
start:
pop ax ; AX=0x0000
push ax ; Stack: 0x0000
xor ax, 0x4521 ; AX=0x4521
sub ax, 0x406B ; AX=0x04B6 = offset of eicART in memory
push ax ; Stack: 0x0000 0x0200
pop bx ; BX=0x0200; Stack: 0x0000;
inc bx
inc bx
pop ax ; AX=0000; Stack: [EMPTY]... |
; A216607: The sequence used to represent partition binary diagram as an array.
; 0,0,1,0,1,0,2,1,0,2,1,0,3,2,1,0,3,2,1,0,4,3,2,1,0,4,3,2,1,0,5,4,3,2,1,0,5,4,3,2,1,0,6,5,4,3,2,1,0,6,5,4,3,2,1,0,7,6,5,4,3,2,1,0,7,6,5,4,3,2,1,0,8,7,6,5,4,3,2,1,0,8,7,6,5,4,3
mov $2,$0
mov $4,$0
lpb $2,1
mov $3,1
mul $4,2
lpb $4,1
... |
; void p_stack_push_callee(p_stack_t *s, void *item)
SECTION code_adt_p_stack
PUBLIC _p_stack_push_callee
EXTERN _p_forward_list_insert_after_callee
defc _p_stack_push_callee = _p_forward_list_insert_after_callee
INCLUDE "adt/p_stack/z80/asm_p_stack_push.asm"
|
; A070578: a(n) = n^4 mod 35.
; 0,1,16,11,11,30,1,21,1,16,25,11,16,1,21,15,16,11,11,16,15,21,1,16,11,25,16,1,21,1,30,11,11,16,1,0,1,16,11,11,30,1,21,1,16,25,11,16,1,21,15,16,11,11,16,15,21,1,16,11,25,16,1,21,1,30,11,11,16,1,0,1,16,11,11,30
pow $0,4
mod $0,35
|
aseg
org 3000h
start0: jp start
; Intercambia A y C
swap: ld (aux), A ;aux=A
ld A, C
ld (aux+1), A ;aux+1=C
ld A, (aux)
ld C, A ;C=aux
ld A, (aux+1) ;A=aux+1
jr aux+2
aux: ds 2
ret
; Intercambia (IX) y (IY)
swapMemo: ld (auxi), A ;auxi=A
ld A, (IX)
ld (auxi+1), A ;auxi+... |
; A021006: Pisot sequence P(4,11), a(0)=4, a(1)=11, a(n+1) is the nearest integer to a(n)^2/a(n-1). Evidently satisfies a(n) = 2*a(n-1)+2*a(n-2).
; Submitted by Jamie Morken(s3)
; 4,11,30,82,224,612,1672,4568,12480,34096,93152,254496,695296,1899584,5189760,14178688,38736896,105831168,289136128,789934592,2158141440,5896... |
; parse.asm
; Copyright 2019-2020 Robin Verhagen-Guest
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable l... |
// Copyright (c) 2011-2012 The Bitcoin developers
// Copyright (c) 2015-2020 The Neutron Developers
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sync.h"
#include "util.h"
#include "utilstrencodings.h"
#inclu... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r9
push %rbp
push %rdi
push %rsi
// Faulty Load
lea addresses_A+0x92a1, %r9
add %rbp, %rbp
mov (%r9), %edi
lea oracles, %r15
and $0xff, %rdi
shlq $12, %rdi
mov (%r15,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rbp
pop %... |
// #include <stdio.h>
// int main() {
// int R0 = 3;
// int R1 = 5;
// => int R2 = 0;
@0
D=A
@R2
M=D
// while (R0 > 0) {
// => loop:
(loop)
// => if (R0 <= 0) goto exit1;
@R0
D=M
@exit1
D; JLE
// => R2 = R2 + R1;
@R1
D=M
@R2
M=D+M
// => R0 = R0 - 1;
@R0
M=M-1
// printf("R0=%d R1=%d R2=%d\n", ... |
;
;
SECTION code_clib
PUBLIC generic_console_cls
PUBLIC generic_console_vpeek
PUBLIC generic_console_scrollup
PUBLIC generic_console_printc
PUBLIC generic_console_ioctl
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
P... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
// Zero the sum
@R2
M=0
// Se... |
; A061667: a(n) = Fibonacci(2*n+1) - 2^(n-1).
; 1,3,9,26,73,201,546,1469,3925,10434,27633,72977,192322,506037,1329885,3491810,9161929,24026745,62983842,165055853,432445861,1132806018,2967020769,7770353441,20348233858,53282736741,139516753581,365301078434,956453590585,2504193911049,6556396578018,17165532693917,449412752... |
//Includes
#include "ac2poly.c"
//Declarations
const valarray<size_t> oktypes = {1u,2u,101u,102u};
const size_t I = 1u, O = 2u;
size_t dim;
//Description
string descr;
descr += "Gets polynomial params starting from the autocovariance (AC).\n";
descr += "Does Levinson-Durbin recursion of each vector in X,\n";
descr +=... |
; float log2(float x) __z88dk_fastcall
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccix_log2_fastcall
EXTERN cm48_sdccixp_dx2m48, am48_log2, cm48_sdccixp_m482d
cm48_sdccix_log2_fastcall:
call cm48_sdccixp_dx2m48
call am48_log2
jp cm48_sdccixp_m482d
|
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
LDC r0 1000000
ADDI r1 1
SUBI r0 1
BNEZ 1 r0
|
; Second boss behavior assembly
; 15c7 stores the 2nd boss's current action:
; 3 - loading offscreen
; 7 - loading offscreen
; 8 - standing up, chained
; 9 - walking backward after being unchained
; #$0a/11 - step 1?
; #$0b/12 - step?
; #$0f/15 - laser
; #$12/18 - step 2?
; #$13/19 - machine gun
; #$15/21 - firing bull... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %rbp
push %rbx
push %rdi
lea addresses_UC_ht+0xeebe, %r13
nop
nop
xor $24804, %rbp
mov (%r13), %edi
nop
nop
nop
nop
cmp %r14, %r14
lea addresses_UC_ht+0xe8be, %r13
clflush (%r13)
nop
nop
nop
nop
nop
and $14112, %r8
mov $0x6162636465666768, %... |
bits 64
section .text
global EfiMain
EfiMain:
sub rsp, 0x28
mov rcx, [rdx + 64]
lea rdx, [rel .msg]
call [rcx + 8]
.fin:
jmp .fin
section .rdata
align 8
.msg:
dw __utf16__("Hello, world!"), 0
|
ori $ra,$ra,0xf
multu $4,$4
sll $6,$6,16
lui $3,57861
lui $0,44718
sll $1,$1,9
mfhi $0
mthi $3
mult $4,$6
multu $2,$2
ori $5,$4,39729
sll $5,$2,27
div $4,$ra
multu $4,$2
mthi $4
mtlo $4
divu $6,$ra
div $4,$ra
multu $2,$4
addiu $4,$4,15465
lb $1,15($0)
addu $4,$4,$4
addiu $5,$1,-5373
mthi $0
div $6,$ra
ori $2,$2,22792
d... |
CMDO_SAVE_ADDRESS_LONG:
JSR .continue
LDA.b [SA1IRAM.cm_current_selection],Y
STA.b SA1IRAM.cm_writer+2
INY
RTS
#CMDO_SAVE_ADDRESS_00:
SEP #$20
STZ.b SA1IRAM.cm_writer+2
.continue
REP #$20
LDA.b [SA1IRAM.cm_current_selection],Y
INY
INY
STA.b SA1IRAM.cm_writer+0
SEP #$20
ACTION_EXIT:
CMDO_HEADER:
CMDO_... |
/*
* main.cpp
*
* Created on: Jun 18, 2017
* Author: luizdaniel
*/
#include <iostream>
#include "opencv2/opencv.hpp"
using namespace std;
using namespace cv;
void example1() {
Mat image = imread("Lenna.png", CV_LOAD_IMAGE_GRAYSCALE);
Ptr<Feature2D> detector = ORB::create();
vector<KeyPoint> keypoin... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------
; void NIRVANAM_drawW(unsigned char tile, unsigned char lin, unsigned char col)
... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV AH, 9
INT 21H
MOV CX, 10
MOV AH, 2
M... |
; A273627: A divisibility sequence: (1/8)*(Pell(4*n) - 2*Pell(2*n)).
; Submitted by Jamie Morken(s1.)
; 1,48,1715,58752,1998709,67914000,2307174311,78376578048,2662499775145,90446634986352,3072523201721819,104375342876112000,3545689138389464221,120449055384533383248,4091722194064948458575,138998105543576763850752,47218... |
//------------------------------------------------------------------------------------------------------------------------------
#pragma once
#include "Engine/Commons/EngineCommon.hpp"
#include "Engine/Core/XMLUtils/XMLUtils.hpp"
#include <map>
#include <string>
struct Rgba;
struct IntVec2;
struct FloatRange;
struct I... |
// Copyright (c) 2012 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 "net/quic/quic_reliable_client_stream.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/quic/... |
// JSONIfier.hpp - For all things related to JSON parsing etc.
// Apr 21, 2021
// Chris M.
// https://github.com/RealTimeChris
#pragma once
#include <FoundationEntities.hpp>
namespace DiscordCoreAPI {
struct BatchEditGuildApplicationCommandPermissionsData;
struct EditGuildApplicationCommandPermissionsData;
struc... |
; A002815: a(n) = n + Sum_{k=1..n} pi(k), where pi() = A000720.
; Submitted by Jon Maiga
; 0,1,3,6,9,13,17,22,27,32,37,43,49,56,63,70,77,85,93,102,111,120,129,139,149,159,169,179,189,200,211,223,235,247,259,271,283,296,309,322,335,349,363,378,393,408,423,439,455,471,487,503,519,536,553,570,587,604,621,639,657,676,695,7... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_ao_OldEnglish
_ff_ao_OldEnglish:
BINARY "font/fzx/fonts/ao/OldEnglish/OldEnglish.fzx"
|
; A045426: Primes congruent to {1, 3, 4, 6} mod 7.
; Submitted by Jon Maiga
; 3,11,13,17,29,31,41,43,53,59,67,71,73,83,97,101,109,113,127,137,139,151,157,167,179,181,193,197,199,211,223,227,239,241,251,263,269,277,281,283,293,307,311,337,347,349,353,367,379,389,409,419,421,431,433,449,461,463,479,487,491,503,521,547,55... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xb659, %r12
nop
add %rax, %rax
mov (%r12), %r14
nop
nop
sub $45865, %r9
lea addresses_WC_ht+0x5ea5, %rsi
lea addresses_WT_ht+0x175ad, %rdi
nop
nop
nop
xor %r14, %r14
mov $28, %rcx
rep m... |
db CLEFABLE ; pokedex id
db 95 ; base hp
db 70 ; base attack
db 73 ; base defense
db 60 ; base speed
db 85 ; base special
db NORMAL ; species type 1
db NORMAL ; species type 2
db 25 ; catch rate
db 129 ; base exp yield
INCBIN "pic/gsmon/clefable.pic",0,1 ; 66, sprite dimensions
dw ClefablePicFront
dw ClefablePicBack
; ... |
; A281593: a(n) = b(n) - Sum_{j=0..n-1} b(n) with b(n) = binomial(2*n, n).
; 1,1,3,11,41,153,573,2157,8163,31043,118559,454479,1747771,6740059,26055459,100939779,391785129,1523230569,5931153429,23126146629,90282147849,352846964649,1380430179489,5405662979649,21186405207549,83101804279101,326199124351701,128130148410360... |
CheckMagikarpLength:
; Returns 3 if you select a Magikarp that beats the previous record.
; Returns 2 if you select a Magikarp, but the current record is longer.
; Returns 1 if you press B in the Pokemon selection menu.
; Returns 0 if the Pokemon you select is not a Magikarp.
; Let's start by selecting a Magikarp... |
; A179337: Positive integers of the form (6*m^2 + 1)/11.
; 5,35,107,197,341,491,707,917,1205,1475,1835,2165,2597,2987,3491,3941,4517,5027,5675,6245,6965,7595,8387,9077,9941,10691,11627,12437,13445,14315,15395,16325,17477,18467,19691,20741,22037,23147,24515,25685,27125,28355,29867,31157,32741,34091,35747,37157,38885,403... |
; A235891: Number of (n+1) X (6+1) 0..3 arrays with the minimum plus the upper median equal to the lower median plus the maximum in every 2 X 2 subblock.
; 17152,18712,21928,28744,43912,80392,177928,471304,1451272,4984072,18341128,70221064,274644232,1086143752,4319755528,17229430024,68818582792,275076103432,10999080051... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1da66, %rdx
nop
nop
nop
cmp $26985, %r14
movw $0x6162, (%rdx)
cmp $36151, %rax
lea addresses_UC_ht+0x9496, %rsi
inc %r12
mov (%rsi), %r9w
nop
nop
nop
cmp %r12, %r12
lea addre... |
##########################################################################
##Author : Tom Regan <noreply.tom.regan@gmail.com> ##
##Last modified : 2011-07-22 ##
##Description : MIPS assembly program: Copies a portion of memory ##
## ... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include <cstring>
#include <sstream>
#include "fileformats/ctf/CTFReaderUtils.h"
#include "Platform.h"
namespace OCIO_NAMESPACE
{
namespace
{
static constexpr char INTERPOLATION_1D_LINEAR[] = "linear";
static constexpr ... |
; A040704: Continued fraction for sqrt(732).
; 27,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54,18,54
mov $1,2
pow $1,$0
add $1,2
gcd $1,6
sub $1,2
mul $1,9
add $1,18
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.