text stringlengths 1 1.05M |
|---|
; A279078: Maximum starting value of X such that repeated replacement of X with X-ceiling(X/8) requires n steps to reach 0.
; 0,1,2,3,4,5,6,7,9,11,13,15,18,21,25,29,34,39,45,52,60,69,79,91,105,121,139,159,182,209,239,274,314,359,411,470,538,615,703,804,919,1051,1202,1374,1571,1796,2053,2347,2683,3067,3506,4007,4580,523... |
/*
MIT License
Copyright (c) 2021 Kento Oki
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, publis... |
; TEST
; a = 0x06
; b = 0x02
; c = 0x01
; d = 0x05
; l = 0xFF
; h = 0xFE
; [0xFEFF] = 0x03
; [0xFEFE] = 0x04
lda [0xFEFF]
sw [0xFFFC], l
sw [0xFFFD], h
push 0x06
pop a
push 0x01
push 0x02
pop b
pop c
push 0x03
push 0x04
push 0x05
pop d
halt
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1c9d8, %rsi
lea addresses_normal_ht+0xa1d8, %rdi
nop
nop
nop
sub %rax, %rax
mov $45, %rcx
rep movsb
nop
nop
nop
nop
and %r10, %r10
lea addresses_WT_ht+0x11290, %r8
add $4... |
; A185906: Weight array of A000007 (which has only one nonzero term and whose second accumulation array is the multiplication table for the positive integers), by antidiagonals.
; 1,-1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... |
; DV3 QPC Floppy Disk Hold / Release controller 1998 Tony Tebby
section dv3
xdef fd_hold
xdef fd_release
include 'dev8_dv3_keys'
include 'dev8_dv3_fd_keys'
include 'dev8_keys_sys'
include 'dev8_keys_err'
include 'dev8_mac_assert'
;+++
; This routine is called to take the disk controller
;
; d0 cr p p... |
; DRAW OR SPRITE 1 BYTE DEFINITION ROTATED, ON LEFT BORDER
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _SP1_DRAW_OR1LB
EXTERN _SP1_DRAW_OR1NR
EXTERN SP1RETSPRDRAW
; following data segment copied into struct sp1_cs
... |
; A066406: a(n) = 2^n*(3^n-3).
; 0,24,192,1248,7680,46464,279552,1678848,10076160,60463104,362790912,2176770048,13060669440,78364114944,470184886272,2821109710848,16926659051520,101559955881984,609359738437632,3656158436917248,21936950634086400
mov $1,3
pow $1,$0
mov $2,$0
lpb $2
mul $1,2
sub $1,1
sub $2,1
lpe
d... |
/**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
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 the f... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GeoCalc
FILE: documentManip.asm
AUTHOR: Gene Anderson, Feb 12, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name... |
; A157736: a(n) = 388962*n^2 - 347508*n + 77617.
; 119071,938449,2535751,4910977,8064127,11995201,16704199,22191121,28455967,35498737,43319431,51918049,61294591,71449057,82381447,94091761,106579999,119846161,133890247,148712257,164312191,180690049,197845831,215779537,234491167,253980721,274248199,295293601,317116927,33... |
; CALLER LINKAGE FOR FUNCTION POINTERS
SECTION code_clib
PUBLIC vz_brick
PUBLIC _vz_brick
EXTERN asm_vz_brick
.vz_brick
._vz_brick
pop hl
pop bc
pop de
push de
push bc
push hl
jp asm_vz_brick
|
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24))
ftyp_start:
dd BE(ftyp_end - ftyp_start)
dd "ftyp"
db 0x6D, 0x69, 0x66, 0x31 ; major_brand(32) ('mif1')
db 0x00, 0x00, 0x00, 0x00 ; minor_version(32)
db 0x6D, 0x69, 0x66, 0x31 ;... |
; Assembly for testdata-bytecode.bas
; compiled with mcbasic
; Equates for MC-10 MICROCOLOR BASIC 1.0
;
; Direct page equates
DP_LNUM .equ $E2 ; current line in BASIC
DP_TABW .equ $E4 ; current tab width on console
DP_LPOS .equ $E6 ; current line position on console
DP_LWID .equ $E7 ; current line width of console
; ... |
CGASpade8 label byte
word C_BLACK
Bitmap <67,41,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0x08, 0x0f, 0xe0, 0x02, 0x00, 0x00, 0x08, 0x00,
0x10, 0x00
db 0x08, 0x18, 0x30, 0x0f, 0x80, 0x00, 0x3e, 0x00,
0x7c, 0x00
db 0x08, 0x18, 0x30, 0x3f, 0xe0, 0x00, 0xff, 0x80,
0xfe, 0x00
db 0x08... |
; ************************************************************************************************
; ************************************************************************************************
;
; Name: x16io.asm
; Purpose: Input/Output x16
; Created: 28th February 2021
; Reviewed: 7th March 2021
; Author: ... |
<% from pwnlib.shellcraft import common %>
<% from socket import htons %>
<%page args="port=None"/>
<%docstring>
Args: port (defaults to any port)
Finds a socket, which is connected to the specified port.
Leaves socket in ESI.
</%docstring>
<%
findpeer = common.label("findpeer")
looplabel = common.label("lo... |
.include "myTiny13.h"
; this program counts decimal two 7seg-display from 99 to 00 !!!
; in counts every 0,10009 second
;irq Vector
.org 0x0000
rjmp OnReset
.org 0x0003
rjmp TimerOVF
.org 0x0010
TimerOVF:
; Countdown on every overflow
push B ; 2 clocks
dec A ; 1 clock
ldi B,50 ; B=255-205: prescale makes ... |
object_const_def ; object_event constants
const PLAYERSHOUSE2F_CONSOLE
const PLAYERSHOUSE2F_DOLL_1
const PLAYERSHOUSE2F_DOLL_2
const PLAYERSHOUSE2F_BIG_DOLL
PlayersHouse2F_MapScripts:
db 0 ; scene scripts
db 2 ; callbacks
callback MAPCALLBACK_NEWMAP, .InitializeRoom
callback MAPCALLBACK_TILES, .SetSpawn
; u... |
// Copyright 2015 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 "base/task/sequence_manager/work_queue_sets.h"
#include <stddef.h>
#include <memory>
#include "base/bind.h"
#include "base/memory/ptr_util.h"
... |
; A081272: Downward vertical of triangular spiral in A051682.
; 1,25,85,181,313,481,685,925,1201,1513,1861,2245,2665,3121,3613,4141,4705,5305,5941,6613,7321,8065,8845,9661,10513,11401,12325,13285,14281,15313,16381,17485,18625,19801,21013,22261,23545,24865,26221,27613,29041,30505,32005,33541,35113,36721,38365,40045,4176... |
; A324050: Numbers satisfying Korselt's criterion: squarefree numbers n such that for every prime divisor p of n, p-1 divides n-1.
; 1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,25... |
; A016103: Expansion of 1/((1-4x)(1-5x)(1-6x)).
; Submitted by Jon Maiga
; 1,15,151,1275,9751,70035,481951,3216795,20991751,134667555,852639151,5343198315,33212784151,205111785075,1260114546751,7708980203835,46999640806951,285743822630595,1733261544204751,10493837185241355,63435462223140151,382979366943812115,230972676... |
; A103685: Consider the morphism 1->{1,2}, 2->{1,3}, 3->{1}; a(n) is the total number of '3' after n substitutions.
; 0,0,1,5,17,51,147,419,1191,3383,9607,27279,77455,219919,624415,1772895,5033759,14292287,40579903,115217983,327136895,928835455,2637230207,7487852799,21260161279,60363694335,171389837823,486624896511,138... |
////////////////////////////////////////////////////////////////////
// INFORMATION /////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
/*
this file contains utility functions that operate on objects
and meshes
*/
///////////////////////////////... |
; A011872: [ n(n-1)/19 ].
; 0,0,0,0,0,1,1,2,2,3,4,5,6,8,9,11,12,14,16,18,20,22,24,26,29,31,34,36,39,42,45,48,52,55,59,62,66,70,74,78,82,86,90,95,99,104,108,113,118,123,128,134,139,145,150,156,162,168,174,180,186,192,199,205,212,218,225,232
mov $1,$0
pow $0,2
sub $0,$1
div $0,19
|
cmpq %rdi, %rsi
decq %rsi
incq %rax
je L1
jl L2
jmp L3
movl (%rdi,%rax,4), %edi
retq
xchgq %rax, %rcx
xorq %rax, %rax
|
; A047464: Numbers that are congruent to {0, 2, 4} mod 8.
; 0,2,4,8,10,12,16,18,20,24,26,28,32,34,36,40,42,44,48,50,52,56,58,60,64,66,68,72,74,76,80,82,84,88,90,92,96,98,100,104,106,108,112,114,116,120,122,124,128,130,132,136,138,140,144,146,148,152,154,156
mov $1,$0
div $0,3
add $1,$0
mul $1,2
|
_usertests: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return randstate;
}
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... |
START:
LI R0 0X80
SLL R0 R0 0X00
LI R1 0X10
SW R0 R1 0X00
NOP
FOREVER:
NOP
B FOREVER
NOP
NOP
|
.disk [filename = "spacelib2.d64", name="SPACELIB2", id="2021"] {
[name="--------------", type="rel" ],
[name="SPACELIB2 DEMO", type="prg", segments="Default"],
[name="--------------", type="rel" ],
}
// enables various debug readouts & functionality
// #define DEBUG
... |
// Copyright 2021 Dhiraj Wishal
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "Graphics/Objects/Asset.hpp"
#include "GraphicsCore/Shader.hpp"
namespace Flint
{
/**
* Flint smart shader compiler.
*/
class SmartShaderCompiler
{
using TIOAttribute = std::pair<ShaderAttribute, uint32>;
using TR... |
; Copyright © 2018, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; 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 copy... |
Code Segment
assume CS:Code, DS:Data, SS:Stack
Start:
MOV AX, Code
MOV DS, AX
mov ax,3
int 10h
XOR DX, DX
XOR BX, BX
MOV CX, 20
MOV AH, 2
MOV DL, 8
SIDES:
PUSH DX
INT 10h
MOV DL, "x"
INT 21h
POP DX
PUSH DX
ADD DL, BL
INT 10h
MOV DL, "x"
INT 21h
... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2015-2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
; A049643: Number of fractions in Farey series of order n.
; 0,2,3,5,7,11,13,19,23,29,33,43,47,59,65,73,81,97,103,121,129,141,151,173,181,201,213,231,243,271,279,309,325,345,361,385,397,433,451,475,491,531,543,585,605,629,651,697,713,755,775,807,831,883,901,941,965,1001,1029,1087,1103,1163,1193,1229,1261,1309,1329,1395... |
; A124867: Numbers that are the sum of 3 distinct primes.
; 10,12,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81
add $0,2
mov $2,6
div $2,$0
add $0,4
sub $0,$2
add $... |
#ifdef USE_CUDA
#include <cuda_runtime_api.h>
#include <openpose/gpu/cuda.hpp>
#endif
#include <openpose/core/enumClasses.hpp>
#include <openpose/utilities/fastMath.hpp>
#include <openpose/pose/poseExtractorNet.hpp>
namespace op
{
bool heatMapTypesHas(const std::vector<HeatMapType>& heatMapTypes, const Hea... |
/*
Copyright 2013 Adobe
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)
*/
/**************************************************************************************************/
#include <cassert>
#include <ios... |
; The Windozz Project
; Copyright (C) 2018-2019 by the Windozz authors.
bits 64
section .text
; void handle_exception(int number, uint64_t code, uint64_t rip)
extern handle_exception
extern lapic_eoi
global int0_handler
global int1_handler
global int2_handler
global int3_handler
global int4_handler
global int5_han... |
/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... |
INCLUDE "clib_cfg.asm"
SECTION code_math
PUBLIC l_divs_16_16x16, l0_divs_16_16x16
; compute: hl = hl / de, de = hl % de
; alters : af, bc, de, hl
; alternate entry (l_divs_16_16x16 - 1)
; exchanges de,hl
; alternate entry (l0_divs_16_16x16)
; skips divide by zero check
IF __CLIB_OPT... |
;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
; This is the default 5673 program for the Guenevere (BCM95695P24SX).
;
; To start it, use the following commands fro... |
;; 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.
include AsmMacros.inc
PROBE_SAVE_FLAGS_EVERYTHING equ DEFAULT_FRAME_SAVE_FLAGS + PTFF_SAVE_ALL_SCRATCH
PROBE_SA... |
; A226570: Sum_{k=1..n} (k+1)! mod n
; 0,0,2,0,2,2,4,0,8,2,10,8,8,4,2,8,11,8,7,12,11,10,19,8,12,8,8,4,15,2,0,24,32,28,32,8,3,26,8,32,2,32,14,32,17,42,16,8,46,12,11,8,11,8,32,32,26,44,26,32,20,0,53,24,47,32,63,28,65,32,66,8,53,40,62,64,32,8,18,72,62,2,25,32,62,14,44,32,74,62,60,88,62,16,7,56,78,46,98,12
add $0,1
mov $2... |
;ADC 0848 CHECK RUN CODE
;08/07/2008 :: 23:00 HRS :::::::: LAST UPDATED : 09/07/2008
;ASTER
;PIN CONFIG: PORT 1 : DB0 ---- DB7 ADC
; PORT 3 : OUTPUT LEDS
; PORT 2 : CONTROL PINS :::: P2.0- INTR(BAR) ; P2.1- WR(BAR) ; P2.2- CS(BAR) ; P2.3- RD(BAR) ::::
;PROGRAM RUN -SUCCESS ON ADC0848CCN
... |
; ------------------------------------------------------------------
; MichalOS Ascii Test
; ------------------------------------------------------------------
BITS 16
%INCLUDE "osdev.inc"
ORG 100h
start:
mov byte [0082h], 1
mov ah, 9
mov al, 0
mov bh, 0
mov bl, 0Fh
mov cx, 1
mov dl, 0
mov dh, 0
.loop:
... |
; A164545: a(n) = 4*a(n-1) + 4*a(n-2) for n > 1; a(0) = 1, a(1) = 8.
; 1,8,36,176,848,4096,19776,95488,461056,2226176,10748928,51900416,250597376,1209991168,5842354176,28209381376,136206942208,657665294336,3175488946176,15332616962048,74032423632896,357460162379776,1725970344050688,8333722025721856,40238769479090176,19... |
; A076568: Greatest prime divisor of 5n+10 (sum of five successive integers).
; 5,5,5,5,7,5,5,5,11,5,13,7,5,5,17,5,19,5,7,11,23,5,5,13,5,7,29,5,31,5,11,17,7,5,37,19,13,5,41,7,43,11,5,23,47,5,7,5,17,13,53,5,11,7,19,29,59,5,61,31,7,5,13,11,67,17,23,7,71,5,73,37,5,19,11,13,79,5,5,41,83,7
add $0,2
seq $0,6530 ; Gpf(n): gr... |
.include "defaults_request.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 4
card_id equ 9
card_no equ "009"
card_sub equ "Request Event Card 009... |
; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
; / / / /
; / / Copyright 2021 (c) Navegos QA - optim... |
; Make a little list... v0.02 Apr 1988 J.R.Oakley QJUMP
section gen_util
include 'dev8_keys_err'
include 'dev8_keys_chunk'
include 'dev8_keys_chp'
xref gu_achpj
xref gu_rchp
xdef gu_adlis
xdef gu_mklis
xdef g... |
; A167032: a(n) = 20*a(n-1) - 64*a(n-2) + 2 for n > 1; a(0) = 1, a(1) = 21.
; Submitted by Jon Maiga
; 1,21,358,5818,93450,1496650,23952202,383258442,6132227914,98116017994,1569857773386,25117730316106,401883708825418,6430139436277578,102882231360724810,1646115703292731210,26337851258768236362,421405620164629929802,674... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
// 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 "chrome/browser/extensions/sandboxed_unpacker.h"
#include <set>
#include "base/base64.h"
#include "base/bind.h"
#include "base/file_util.h"... |
;
; Close a file by the BASIC driver
; NOTE: We don't set a drive number, here
;
; Stefano - 5/7/2006
;
; int close(int handle)
;
; $Id: close.asm,v 1.4 2007/06/28 20:16:20 stefano Exp $
XLIB close
LIB zxhandl
LIB zx_setint
LIB zx_goto
; BASIC variable names for numeric values
.svar defb 'S',0
.close
pop h... |
/*
UniformFairKernelSize.cpp
Li-Yi Wei
06/09/2009
*/
#include "UniformFairKernelSize.hpp"
#include "Math.hpp"
UniformFairKernelSize::UniformFairKernelSize(const vector<float> & domain_size, const vector<int> & num_samples_per_class) : UniformKernelSize(domain_size, num_samples_per_class)
{
// nothing els... |
/* This file contains the interrupt table for the ADSP-21020 */
/* When the C program exits either by returning from main() or by an */
/* explicit or implicit call to exit(), control will transfer to the */
/* label ___lib_prog_term. Currently, the ___lib_prog_term label is */
/* defined at the end of the reset ... |
#include "dot_cython_omp_.h"
#ifdef USE_OPENMP
#include "omp.h"
#endif
int get_omp_max_threads_cpp()
{
#ifdef USE_OPENMP
return ::omp_get_max_threads();
#else
return 0;
#endif
}
double vector_ddot_openmp(const double *p1, const double *p2,
int size, int nthreads)
{
if (nthre... |
; Perform BCD subtraction on two 32-bit numbers.
; 45218907H - 37829156H
.MODEL TINY
.486
.CODE
.STARTUP
; initialize registers
MOV EBX, 37829156H ; BH = 91H BL = 56H
MOV EDX, 45218907H ; DH = 89H DL = 07H
; perform SUBtraction
SUB DL, BL ; DL = 07H - 56H = B1H
; perform Decimal Adjust after ... |
; A051462: Molien series for group G_{1,2}^{8} of order 1536.
; 1,4,11,25,48,83,133,200,287,397,532,695,889,1116,1379,1681,2024,2411,2845,3328,3863,4453,5100,5807,6577,7412,8315,9289,10336,11459,12661,13944,15311,16765,18308,19943,21673,23500,25427,27457,29592,31835,34189,36656,39239,41941,44764,47711,50785,53988,57323... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 %ebp
b:... |
include "include/hUGE.inc"
SECTION "Song Data", ROMX
ryukenden::
db 6
dw order_cnt
dw order1, order2, order3, order4
dw duty_instruments, wave_instruments, noise_instruments
dw routines
dw waves
order_cnt: db 24
order1: dw P0,P0,P0,P0,P12,P14,P0,P0,P0,P0,P12,P14
order2: dw P1,P1,P8,P8,P13,P15,P1,P1,P8,P8,P13,P15
ord... |
;; encoding: utf-8
;; ff3_sound_driver.asm
;;
;; re-implementation of the sound driver.
;;
;; version:
;; 0.1.0
;;=================================================================================================
__FF3_SOUND_DRIVER_INCLUDED__
VERIFY_PC_TO_PATCH_END field.get_eligibility_flags
;==========... |
mov ah, 0x0e
; attempt 3
; Add the BIOS starting offset 0x7c00 to the memory address of the X
; and then dereference the contents of that pointer.
; We need the help of a different register 'bx' because 'mov al, [ax]' is illegal.
mov al, "3"
int 0x10
mov bx, the_secret
add bx, 0x7c00
mov al, [bx]
int 0x10
... |
# Calculates the N number of Fibonacci Sequence
# $a0 = Fibonacci Number (N)
# int fib(int n): return n < 2 ? n : fib(n-1) + fib(n-2)
main: li $a0, 7 # N = 10
jal fib
j exit
fib: addi $sp, $sp, -8 # Space for two words
sw $ra, 4($sp) # Store $ra on the stack
move $v0, $a0 # Here, the return value is N... |
;;;;;;;;;;;;;;;;
; test branching
;;;;;;;;;;;;;;;;
; required for execution on the NES
.org $8000
;;;;;;;;;;;;;;;;
; test JMP (indirect)
;;;;;;;;;;;;;;;;
LDX #$00 ; reset registers
LDA #$11 ; low byte of target address
STA $0050
LDA #$80 ; high byte of target address
STA $0051
JMP (... |
;
; Sprite Rendering Routine
; original code by Patrick Davidson (TI 85)
; modified by Stefano Bodrato - Jan 2001
;
; Sept 2003 - Stefano: Fixed bug for sprites wider than 8.
;
; Much More Generic version
; Uses plotpixel, respixel and xorpixel
;
;
; $Id: putsprite2.asm,v 1.8 2016-07-02 09:01:35 dom Exp $
;
S... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rsi
// Faulty Load
lea addresses_WT+0x18f5a, %r8
nop
nop
nop
inc %rcx
movups (%r8), %xmm3
vpextrq $0, %xmm3, %rbp
lea oracles, %r8
and $0xff, %rbp
shlq $12, %rbp
mov (%r8,%r... |
; A167498: a(n) = 6+32*n^2+8*n*(7+8*n^2)/3.
; 6,78,342,926,1958,3566,5878,9022,13126,18318,24726,32478,41702,52526,65078,79486,95878,114382,135126,158238,183846,212078,243062,276926,313798,353806,397078,443742,493926,547758,605366,666878,732422,802126,876118,954526,1037478,1125102,1217526,1314878,1417286,1524878,163778... |
.data
inp1: .asciiz "Enter first integer: "
inp2: .asciiz "Enter second intger: "
out: .asciiz "Product is: "
.text
.globl main
.ent main
main:
# print input message 1
li $v0, 4
la $a0, inp1
syscall
# get int input
li $v0, 5
syscall
move $t0, $v0
# ... |
// ****************************************************************************
//
// CEchoGals_power.cpp
//
// Power management functions for the CEchoGals driver class.
// Set editor tabs to 3 for your viewing pleasure.
//
// ----------------------------------------------------------------------------
//
// This f... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "BattleTankReprise.h"
#include "TankAIController.h"
#include "TankAimingComponent.h"
#include "tank.h"
void ATankAIController::OnTankDeath()
{
APawn* Tank = GetPawn();
if (!Tank)
{
return;
}
UE_LOG(LogTemp, Warning, TEXT("... |
; 0 - POP that 0
leaw $SP, %A
movw (%A), %A
decw %A
movw (%A), %D
leaw $THAT, %A
movw (%A), %S
leaw $0, %A
addw %S, %A, %A
movw %D, (%A)
leaw $SP, %A
movw (%A), %A
decw %A
movw %A, %S
leaw $SP, %A
movw %S, (%A)
; 1 - POP that 1
leaw $SP, %A
movw (%A), %A
decw %A
movw (%A), %D
leaw $THAT, %A
movw (%A), %S
leaw $1, %A
ad... |
; A044382: Numbers n such that string 5,0 occurs in the base 10 representation of n but not of n-1.
; Submitted by Jamie Morken(s3)
; 50,150,250,350,450,500,550,650,750,850,950,1050,1150,1250,1350,1450,1500,1550,1650,1750,1850,1950,2050,2150,2250,2350,2450,2500,2550,2650,2750,2850,2950,3050,3150,3250,3350,3450,3500
ad... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license a... |
; A127228: a(n)= numerator of ((n + 4)! - (n - 4)!)/(n!).
; 40319,362879,1814399,6652799,19958399,51891839,121080959,259459199,518918399,980179199,1764322559,3047466239,5079110399,8204716799,12893126399,19769460479,29654190719,43609103999,62990927999
add $0,8
bin $0,8
sub $0,1
mul $0,40320
add $0,40319
|
; A267442: Middle column of the "Rule 129" elementary cellular automaton starting with a single ON (black) cell.
; 1,0,1,0,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1... |
/*********************************************************************************************************************
* @file startup_XMC4300.S
* @brief CMSIS Core Device Startup File for Infineon XMC4300 Device Series
* @version V1.1
* @date 05 Jan 2016
*
* @cond
***********************************... |
// Copyright 2012 the V8 project 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
#pragma once
#include <atomic>
template < typename T, unsigned N >
class ring_buffer
{
std::atomic< unsigned > head_idx_{0};
std::atomic< unsigned > tail_idx_{0};
T buffer_[N];
template < typename V >
auto increment(V val, V inc = V(1)) const noexcept
{
return (val + inc) % N;
}
constexpr auto ... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 14/09/2006
;
; int zx_printer();
;
; The result is:
; - 1 (true) if the ZX printer is connected
; - 0 (false) otherwise
;
; $Id: zx_printer.asm,v 1.2 2015/01/19 01:33:08 pauloscustodio Exp $
;
PUBLIC zx_printer
zx_printer:
ld hl,0
in a,($fb)
bit 6,a
ret nz... |
; A271574: Decimal expansion of Sum_{n>=0} 1/(n!)^3.
; 2,1,2,9,7,0,2,5,4,8,9,8,3,3,0,6,4,1,8,1,3,4,5,2,3,6,1,0,5,9,5,4,1,3,4,6,8,3,1,9,2,2,0,7,4,7,0,3,9,1,6,9,3,0,3,7,6,2,9,9,6,8,6,0,2,9,9,9,9,6,2,2,9,2,9,9,8,7,3,0,1,7,9,6,3,8,3,2,7,8,1,2,7,1,0,4,2,2,4,9
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mov $4,$3
cmp $4... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x14316, %rcx
nop
xor $12417, %r8
mov (%rcx), %si
nop
nop
nop
nop
cmp $29891, %rax
lea addresses_A_ht+0x16d6e, %r9
nop
nop
nop
nop
cmp $32737, %rcx
mov (%r9), %rsi
nop
nop
a... |
;********************************************************************************************************
; uC/CPU
; CPU CONFIGURATION & PORT LAYER
;
; Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
; *****************************************************************************
; * Provide SIMD optimizations for add_residual functions for HEVC decoding
; * Copyright (c) 2014 Pierre-Edouard LEPERE
; *
; * This file is part of FFmpeg.
; *
; * FFmpeg is free software; you can redistribute it and/or
; * modify it unde... |
db 0 ; species ID placeholder
db 40, 80, 35, 70, 35, 45
; hp atk def spd sat sdf
db FIGHTING, FIGHTING ; type
db 190 ; catch rate
db 74 ; 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/mank... |
//
// Open a parameter set file and print it.
//
//
// Contact person Rob Kutschke
//
#include "Offline/GeneralUtilities/inc/ParameterSetFromFile.hh"
// Framework includes.
#include "art/Framework/Core/EDAnalyzer.h"
#include "art/Framework/Principal/Event.h"
// C++ includes.
#include <iostream>
namespace mu2e {
... |
#include <conio.h>
#include <iostream>
#include <GL\glew.h>
#include <GLFW\glfw3.h>
#include <glm\glm.hpp>
#include <imgui\imgui.h>
#include <engine_base\ExceptionWrapper.h>
#include <engine_base\imgui_impl_glfw_gl3.h>
#include <engine_base\Input.h>
#include <engine_base\ModelLoader.h>
#include "Globals.h"
#include... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: prefmgrModuleList.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- -... |
; SMSQ_SBAS_FILEINFO FileInfo Thing
section sbas
include 'dev8_keys_qdos_ioa'
include 'dev8_keys_thg'
include 'dev8_keys_err'
include 'dev8_keys_qlv'
xdef sb_fileinfo
xref gu_thexn
xref gu_thini
xref gu_fopen
xref gu_fclos
sb_name dc.w 6,'SBASIC'
;+++
; Initialise Thing
;---
sb_fileinfo
lea sbfi_tab,... |
/*
* Copyright 2012, The Android Open Source Project
*
* 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 applica... |
dnl AMD64 mpn_mul_basecase optimised for Intel Sandy bridge and Ivy bridge.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2003-2005, 2007, 2008, 2011-2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can red... |
SFX_Headers_2::
db $ff, $ff, $ff ; padding
SFX_Noise_Instrument01_2::
audio_header SFX_Noise_Instrument01_2, Ch8
SFX_Noise_Instrument02_2::
audio_header SFX_Noise_Instrument02_2, Ch8
SFX_Noise_Instrument03_2::
audio_header SFX_Noise_Instrument03_2, Ch8
SFX_Noise_Instrument04_2::
audio_header SFX_Noise_Instrume... |
db "PUSHPIN@" ; species name
db "Believed to be"
next "an omen of woe"
next "and misfortune."
page "Removing its pin"
next "will unleash its"
next "dark powers.@"
|
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "telemetry.hpp"
#include <common/telemetry_extension.hpp>
#include "utils.hpp"
using namespace ov::frontend;
std::string FrontEndTelemetryTest::getTestCaseName(const testing::TestParamInfo<TelemetryFEParam>& obj) {
... |
//
// Copyright 2018 gRPC authors.
//
// 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 t... |
%include "io.inc"
extern printf
section .data
before_format db "before %s", 13, 10, 0
after_format db "after %s", 13, 10, 0
mystring db "a4bcDefgh2ij", 0
section .text
global CMAIN
toupper:
push ebp
lea ebp, [esp]
; TODO
xor ebx, ebx
mov ecx, [ebp + 8]
change_string:
mov bl, ... |
###############################################################################
# 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... |
; A198276: 19*2^n-1.
; 18,37,75,151,303,607,1215,2431,4863,9727,19455,38911,77823,155647,311295,622591,1245183,2490367,4980735,9961471,19922943,39845887,79691775,159383551,318767103,637534207,1275068415,2550136831,5100273663,10200547327,20401094655,40802189311,81604378623,163208757247,326417514495,652835028991,13056700... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.