text stringlengths 1 1.05M |
|---|
// Copyright (c) Chris Hafey.
// SPDX-License-Identifier: MIT
#include <fstream>
#include <iostream>
#include <vector>
#include <iterator>
#include <time.h>
#include <algorithm>
#include "../../src/J2KDecoder.hpp"
#include "../../src/J2KEncoder.hpp"
void readFile(std::string fileName, std::vector<uint8_t>& vec) {
... |
/*
* Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your opt... |
; void _lldiv_(lldiv_t *ld, int64_t numer, int64_t denom)
SECTION code_clib
SECTION code_stdlib
PUBLIC __lldiv__callee
EXTERN asm__lldiv
__lldiv__callee:
push ix
ld ix,6
add ix,sp
call asm__lldiv
pop ix
pop de
ld hl,18
add hl,sp
ld sp,hl
ex de,hl
jp (hl)
|
; A099483: A Fibonacci convolution.
; 0,1,3,7,18,48,126,329,861,2255,5904,15456,40464,105937,277347,726103,1900962,4976784,13029390,34111385,89304765,233802911,612103968,1602508992,4195423008,10983760033,28755857091,75283811239,197095576626
add $0,1
mul $0,2
seq $0,293544 ; a(n) is the integer k that minimizes | k/Fib... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; clock functions
;
; unsigned ozsec()
;
;
; ------
; $Id: ozsec.asm,v 1.2 2015/01/19 01:33:04 pauloscustodio Exp $
;
PUBLIC ozsec
EXTERN Compute
ozsec:
ld c,31h
jp ... |
SCR equ $4000 ; Sets a constant
org $8000 ; Where our program will being in the computer's memory
MAIN
ld bc,STRING
ld de,SCR
LOOP ; Marker
ld a,(bc)
cp 0 ; zero not 'o'
jr z,EXIT
rst $10
inc bc
inc de
jr LOOP
EXIT
ret
STRING
defb... |
;===============================================================================
; Constants
Black = 0
White = 1
Red = 2
Cyan = 3
Purple = 4
Green = 5
Blue = 6
Yellow = 7
Orange = 8
Brown = 9
LightRed ... |
_pecho: 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 ... |
check_cpuid:
; Check if CPUID is supported by attempting to flip the ID bit (bit 21)
; in the FLAGS register. If we can flip it, CPUID is available.
; Copy FLAGS in to EAX via stack
pushfd
pop eax
; Copy to ECX as well for comparing later on
mov ecx, eax
; Flip the ID bit
xor eax,... |
_myprogram: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
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 ... |
; A167499: a(n) = n*(n+3)/2 + 6.
; 6,8,11,15,20,26,33,41,50,60,71,83,96,110,125,141,158,176,195,215,236,258,281,305,330,356,383,411,440,470,501,533,566,600,635,671,708,746,785,825,866,908,951,995,1040,1086,1133,1181,1230,1280,1331,1383,1436,1490,1545,1601,1658,1716,1775,1835,1896,1958,2021,2085,2150,2216,2283,2351,2420... |
;
; This file is automatically generated
;
; Do not edit!!!
;
; djm 12/2/2000
;
; ZSock Lib function: tcp_regcatchall
XLIB tcp_regcatchall
LIB no_zsock
INCLUDE "packages.def"
INCLUDE "zsock.def"
.tcp_regcatchall
ld a,r_tcp_regcatchall
call_pkg(tcp_all)
ret nc
; We failed..are we installed?
cp rc_pnf
scf ... |
; A217221: Theta series of Kagome net with respect to a deep hole.
; Submitted by Christian Krause
; 0,6,0,6,0,0,0,12,0,6,0,0,0,12,0,0,0,0,0,12,0,12,0,0,0,6,0,6,0,0,0,12,0,0,0,0,0,12,0,12,0,0,0,12,0,0,0,0,0,18,0,0,0,0,0,0,0,12,0,0,0,12,0,12,0,0,0,12,0,0,0,0,0,12,0,6,0,0,0,12,0,6,0,0,0,0,0,0,0,0,0,24,0,12,0,0,0,12,0,0
... |
/*Copyright 2010-2012 George Karagoulis
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 writing, so... |
; this sample shows how to use scasw instruction to find a word (2 bytes).
org 100h
jmp start
dat1 dw 1234h, 5678h, 9075h, 3456h
find_what equ 9075h
s_found db '"yes" - found!', 0Dh,0Ah, '$'
s_not db '"no" - not found!', 0Dh,0Ah, '$'
start:
; set forward direction:
cld
; set counter to data ... |
#include <iostream>
using namespace std;
int mergeBits(int m, int n, int start, int end)
{
if(start<0 || start>32 || end<0 || end>32)
{
return -1;
}
int max = ~0; //all 1
int left = max - (1<<end -1); //111000000
int right = 1<<start -1; //000000011
int mask = left | right; //111000011
retur... |
; A127328: Inverse binomial transform of A026641; binomial transform of A127361.
; Submitted by Christian Krause
; 1,0,3,3,15,30,99,252,747,2064,5973,16995,49089,141414,409755,1188243,3455811,10064952,29368377,85809681,251067645,735446106,2156695533,6330729438,18600079221,54693760680,160951905819,473984678037,139675586... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: sin.asm,v 1.2 2009/06/22 21:44:17 dom Exp $
;
INCLUDE "cpcfirm.def"
INCLUDE "cpcfp.def"
XLIB sin
XDEF sinc
LIB get_para
.sin call get_para
call firmware
.sinc defw CPCFP_FLO_SIN
ret
|
;********************************************************************************************************
; uC/OS-II
; The Real-Time Kernel
;
; Copyright 1992-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
CeladonPokecenterObject:
db $0 ; border block
db $2 ; warps
db $7, $3, $5, $ff
db $7, $4, $5, $ff
db $0 ; signs
db $4 ; objects
object SPRITE_NURSE, $3, $1, STAY, DOWN, $1 ; person
object SPRITE_GENTLEMAN, $7, $3, WALK, $2, $2 ; person
object SPRITE_FOULARD_WOMAN, $a, $5, WALK, $0, $3 ; person
object SPRIT... |
; A053088: a(n) = 3*a(n-2) + 2*a(n-3) for n > 2, a(0)=1, a(1)=0, a(2)=3.
; Submitted by Jon Maiga
; 1,0,3,2,9,12,31,54,117,224,459,906,1825,3636,7287,14558,29133,58248,116515,233010,466041,932060,1864143,3728262,7456549,14913072,29826171,59652314,119304657,238609284,477218599,954437166,1908874365,3817748696,7635497427,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1abf8, %r13
nop
nop
and %r9, %r9
mov (%r13), %r11
nop
nop
xor %r15, %r15
lea addresses_WC_ht+0x692e, %r14
nop
nop
nop
add %rbx, %rbx
movw $0x6162, (%r14)
nop
nop
no... |
.orig x0
ld r3, four
test_lsl:
ld r0, lsl_test_val
ld r1, lsl_test_expected
lsl r0, r0, r3
xor r0, r0, r1
brnp fail
test_lsr:
ld r0, lsr_test_val
ld r1, lsr_test_expected
lsr r0, r0, r3
xor r0, r0, r1
brnp fail
done:
out r0, #0
fail:
br fail
lsl_test_val .fill... |
; Z88 Small C+ Run Time Library
; Long functions
;
XLIB l_long_ule
LIB l_long_ucmp
;
;......logical operations: HL set to 0 (false) or 1 (true)
;
; DE <= HL [unsigned]
.l_long_ule
call l_long_ucmp
ret c
scf
ret z
... |
; file: day1_part2_asm.asm
; Searches for three values whose sum is 2020 in list of 32-bit unsigned integers,
; and returns the product of the three values.
segment .text
global day1_part2_asm
; Parameters:
; #1 (EBP+8): Pointer to data
; #2: (EBP+12): Number of elements
;
; Local variables:
; #1 (EBP-4): Ou... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;***************************************************
; CHARACTER FONT FILE
; Source Assembler File
;
; CODE PAGE: 850
; FONT RESOLUTION: 8 x 8
;
; ... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12246 (Mac OS X x86_64)
;--------------------------------------------------------
.module scene_3_colors
.optsdcc -mgbz80
;--------------------------------------------------------
; P... |
; --------------------------------------
; Test INR and DCR.
; --------------------------------------
Start:
; --------------------------------------
mvi a,1 ; Initialize the register.... |
Name: zel_gsub1.asm
Type: file
Size: 3376
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: 1A2BE9471F01252C3463F8CA67E3D429B9A75D08
Description: null
|
; A166520: a(n) = (10*n + 11*(-1)^n + 5)/4.
; 1,9,6,14,11,19,16,24,21,29,26,34,31,39,36,44,41,49,46,54,51,59,56,64,61,69,66,74,71,79,76,84,81,89,86,94,91,99,96,104,101,109,106,114,111,119,116,124,121,129,126,134,131,139,136,144,141,149,146,154,151,159,156,164,161,169,166,174,171,179,176,184,181,189,186,194,191,199,196,... |
; A121937: a(n) = least m >= 2 such that (n mod m) > (n+2 mod m).
; 3,3,4,3,3,4,3,3,5,3,3,7,3,3,4,3,3,4,3,3,11,3,3,5,3,3,4,3,3,4,3,3,5,3,3,19,3,3,4,3,3,4,3,3,23,3,3,5,3,3,4,3,3,4,3,3,29,3,3,31,3,3,4,3,3,4,3,3,5,3,3,37,3,3,4,3,3,4,3,3,41,3,3,5,3,3,4,3,3,4,3,3,5,3,3,7,3,3,4,3,3,4
mov $1,2
lpb $0
mov $2,$0
sub $0,1
... |
title "Trap Processing"
;++
;
; Copyright (c) 1996 Microsoft Corporation
;
; Module Name:
;
; trap.asm
;
; Abstract:
;
; This module implements the code necessary to field and process i386
; trap conditions.
;
; Author:
;
; David N. Cutler (davec) 1-Dec-96
;
; Environment:
;
; ... |
/*
* Copyright (c) 2013-2020, The PurpleI2P Project
*
* This file is part of Purple i2pd project and licensed under BSD3
*
* See full license text in LICENSE file at top of project tree
*
*/
#include <openssl/rand.h>
#include <openssl/sha.h>
#include <openssl/hmac.h>
#include <stdlib.h>
#include <vector>
#include "Log... |
; A014020: Inverse of 11th cyclotomic polynomial.
; 1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,1,-1,0,0,0,0,0,... |
;
; Generic pseudo graphics routines for text-only platforms
; Version for the 2x3 graphics symbols
;
; Written by Stefano Bodrato 19/12/2006
;
;
; Clears graph screen.
;
;
; $Id: clsgraph.asm,v 1.5 2017-01-02 22:57:59 aralbrec Exp $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
... |
; A056791: Weight of binary expansion of n + length of binary expansion of n.
; 1,2,3,4,4,5,5,6,5,6,6,7,6,7,7,8,6,7,7,8,7,8,8,9,7,8,8,9,8,9,9,10,7,8,8,9,8,9,9,10,8,9,9,10,9,10,10,11,8,9,9,10,9,10,10,11,9,10,10,11,10,11,11,12,8,9,9,10,9,10,10,11,9,10,10,11,10,11,11,12,9,10,10,11,10,11,11
mov $2,$0
lpb $0
add $0,1
d... |
; A063494: a(n) = (2*n - 1)*(7*n^2 - 7*n + 3)/3.
; Submitted by Jon Maiga
; 1,17,75,203,429,781,1287,1975,2873,4009,5411,7107,9125,11493,14239,17391,20977,25025,29563,34619,40221,46397,53175,60583,68649,77401,86867,97075,108053,119829,132431,145887,160225,175473,191659,208811,226957,246125,266343,287639,310041,333577,3... |
; A265021: Sum of fifth powers of the first n even numbers.
; 0,32,1056,8832,41600,141600,390432,928256,1976832,3866400,7066400,12220032,20182656,32064032,49274400,73574400,107128832,152564256,213030432,292265600,394665600,525356832,690273056,896236032,1151040000,1463540000,1843744032,2302909056,2853640832,3509997600,4... |
* Sprite size
*
* Mode 4
* +------|-----+
* |aaaaaaaaaaaa|
* |aaggggggggaa|
* |aaggggggggaa|
* -aaggaaaaaaaa-
* |aaggaaggggaa|
* |aaggaaggggaa|
* |aaaaaaaaaaaa|
* +------|-----+
*
section sprite
xdef mes_size
include 'dev8_keys_sysspr'
mes_size
dc.b 0,sp.wsize
end
|
// Dexforce_DF_Source.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
#include "solution.h"
#include "../Firmware/camera_param.h"
#include "../cmd/getopt.h"
const char* help_info =
"Examples:\n\
\n\
1.Capture:\n\
test.exe --capture --ip 192.168.x.x --patterns ./patterns_data --calib ./param.txt --pointcl... |
; A021803: Decimal expansion of 1/799.
; 0,0,1,2,5,1,5,6,4,4,5,5,5,6,9,4,6,1,8,2,7,2,8,4,1,0,5,1,3,1,4,1,4,2,6,7,8,3,4,7,9,3,4,9,1,8,6,4,8,3,1,0,3,8,7,9,8,4,9,8,1,2,2,6,5,3,3,1,6,6,4,5,8,0,7,2,5,9,0,7,3,8,4,2,3,0,2,8,7,8,5,9,8,2,4,7,8,0,9
add $0,1
mov $2,10
pow $2,$0
mov $0,$2
div $0,799
mod $0,10
|
/****************************************************************************
*
* Copyright (c) 2013-2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
object_const_def ; object_event constants
const DARKCAVEBLACKTHORNENTRANCE_PHARMACIST
const DARKCAVEBLACKTHORNENTRANCE_POKE_BALL1
const DARKCAVEBLACKTHORNENTRANCE_POKE_BALL2
DarkCaveBlackthornEntrance_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
DarkCaveBlackthornEntrancePharmacistScript:
faceplayer
ope... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
; DE1ROM: 128KB PRG-ROM + 64KB CHR-ROM
; http://bootgod.dyndns.org:7777/search.php?keywords=DE1ROM&kwtype=pcb
; DE1ROM uses Nintendo's clone of a Tengen 800030. (See also: Mapper 064)
;------------------------------------------------------------------------------;
; DE1ROM mirroring is like MMC3; mapper controlled.
; %... |
#include<bits/stdc++.h>
using namespace std;
const int N = 20, T = 4e5 + 9;
int dp[1 << N], n;
string s[N];
int len[N], p[N][T], mn[N][T];
vector<int> v[N][T + T];
int yo(int mask, int sum) {
if (mask == (1 << n) - 1) return 0;
int &ret = dp[mask];
if (ret != -1) {
return ret;
}
ret = 0;
for (int i = ... |
; A164591: a(n) = ((4 + sqrt(18))*(4 + sqrt(8))^n + (4 - sqrt(18))*(4 - sqrt(8))^n)/8 .
; 1,7,48,328,2240,15296,104448,713216,4870144,33255424,227082240,1550614528,10588258304,72301150208,493703135232,3371215880192,23020101959680,157191088635904,1073367893409792,7329414438191104,50048372358250496
add $0,1
mov $1,2
mov... |
global fast_memcpy
; void mempcy(char *dst, char *src, int n)
fast_memcpy:
pushfd
pushad
mov ebx,[esp + 36 + 12]
; mov ebx, _nSize$
cmp ebx, 0
jbe end_mcpy
; mov edi, _dest$
mov edi, [esp + 36 + 4]
; mov esi, _src$
mov esi, [esp + 8 + 36]
cld
mov edx, esi
neg edx
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rbp
push %rbx
push %rdi
lea addresses_normal_ht+0x1cc36, %rbx
nop
nop
nop
nop
and $12019, %rbp
mov (%rbx), %r15d
sub $42632, %r8
lea addresses_UC_ht+0x8ff6, %r9
nop
nop
nop
add %rbp, %rbp
movups (%r9), %xmm7
vpextrq $1, %xmm7, %rdi
nop
nop
n... |
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.0 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... |
; A000005: d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
; 1,2,2,3,2,4,2,4,3,4,2,6,2,4,4,5,2,6,2,6,4,4,2,8,3,4,4,6,2,8,2,6,4,4,4,9,2,4,4,8,2,8,2,6,6,4,2,10,3,6,4,6,2,8,4,8,4,4,2,12,2,4,6,7,4,8,2,6,4,8,2,12,2,4,6,6,4,8,2,10,5,4,2,12,4,4,4,8,2,12,4,6,4,4,4,12,2,6,6,9,2,8,2,8,8,4,2,12,2,8,4,10,2,8,... |
extern m7_ippsSHA256Init:function
extern n8_ippsSHA256Init:function
extern y8_ippsSHA256Init:function
extern e9_ippsSHA256Init:function
extern l9_ippsSHA256Init:function
extern n0_ippsSHA256Init:function
extern k0_ippsSHA256Init:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
a... |
; Disassembled code
|
/*
* cv_image_deblurring.cpp - iterative blind deblurring
*
* Copyright (c) 2016-2017 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.apache.org/l... |
; A085820: Possible two-digit endings of primes (with leading zeros).
; 1,3,7,9,11,13,17,19,21,23,27,29,31,33,37,39,41,43,47,49,51,53,57,59,61,63,67,69,71,73,77,79,81,83,87,89,91,93,97,99
mov $1,$0
mul $1,5
add $1,2
div $1,4
mul $1,2
add $1,1
|
SECTION code_clib
SECTION code_stdio
PUBLIC __stdio_recv_input_raw_read
EXTERN STDIO_MSG_READ
EXTERN l_jpix
; ALL HIGH LEVEL STDIO INPUT PASSES THROUGH __STDIO_RECV_INPUT_RAW_*
; EXCEPT FOR VFSCANF. THIS ENSURES STREAM STATE IS CORRECTLY MAINTAINED
__stdio_recv_input_raw_read:
; Driver reads a block of bytes ... |
; A008651: Molien series of binary icosahedral group.
; 1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,2,1,1,1,1,1,2,1,1,1,2,1,2,1,1,2,2,1,2,1,2,2,2,1,2,2,2,2,2,1,3,2,2,2,2,2,3,2,2,2,3,2,3,2,2,3,3,2,3,2,3,3,3,2,3,3,3,3,3,2,4,3,3,3,3,3,4,3,3,3
mov $2,$0
seq $0,106006 ; [n/2] + [n/3] + [n/5].
sub $2,1
sub $... |
#include <ros/ros.h>
#include <visualization_msgs/Marker.h>
#include "nav_msgs/Odometry.h"
#include <complex>
//Positions and thresholds
float pickUp[3] = {3.0, 5.0, 1.0};
float dropOff[3] = {-1.0, 0.0, 1.0};
float thresh[2] = {0.3, 0.01};
//Flags
bool atPickUp = false;
bool atDropOff = false;
bool pickUpDone = fal... |
; IP Version
section version
xdef ip_vmess
xdef ip_vmend
xdef ip_vers
; V1.00 Initial version
ip_vers equ '1.00'
ip_vmess
dc.w 'QPC IP devices V'
dc.l ip_vers
dc.b ' ',$a
ip_vmend
ds.w 0
end
|
#include "hongyulib.h"
double variance(string infile)
{
double var;
ifstream myfile;
myfile.open(infile.c_str());
int file_num = count_file_num(infile);
int count;
double sum;
if(file_num == 0)
{
puts("ERROR read in file has 0 points!");
return 0;
}
double data[file_num];
for(count = 0; count < file_... |
; A349317: Triangle T(n,k): T(n,k) = 1 if gcd(n, k) > 1, else 0.
; Submitted by Jamie Morken(s3)
; 0,0,1,0,0,1,0,1,0,1,0,0,0,0,1,0,1,1,1,0,1,0,0,0,0,0,0,1,0,1,0,1,0,1,0,1,0,0,1,0,0,1,0,0,1,0,1,0,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,1,1,1,0
mov $1,2
lpb $0
ad... |
db DEX_HORSEA ; pokedex id
db 30, 40, 70, 60, 70
; hp atk def spd spc
db WATER, WATER ; type
db 225 ; catch rate
db 83 ; base exp
INCBIN "gfx/pokemon/front/horsea.pic", 0, 1 ; sprite dimensions
dw HorseaPicFront, HorseaPicBack
db BUBBLE, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 learnset
db GROWTH_ME... |
; A008676: Expansion of 1/((1-x^3)*(1-x^5)).
; 1,0,0,1,0,1,1,0,1,1,1,1,1,1,1,2,1,1,2,1,2,2,1,2,2,2,2,2,2,2,3,2,2,3,2,3,3,2,3,3,3,3,3,3,3,4,3,3,4,3,4,4,3,4,4,4,4,4,4,4,5,4,4,5,4,5,5,4,5,5,5,5,5,5,5,6,5,5,6,5,6,6,5,6,6,6,6,6,6,6,7,6,6,7,6,7,7,6,7,7,7,7,7,7,7,8,7,7,8,7,8,8,7,8,8,8,8,8,8,8,9,8,8,9,8,9,9,8,9,9,9,9,9,9,9,10,... |
#ifndef WIGWAG_POLICIES_LIFE_ASSURANCE_POLICIES_HPP
#define WIGWAG_POLICIES_LIFE_ASSURANCE_POLICIES_HPP
// Copyright (c) 2016, Dmitry Koplyarov <koplyarov.da@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the abo... |
// Copyright (c) 2014 Dropbox, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
; application exit handling routines
exit_full:
call flash_code_copy
exit_cleanup.run
relocate exit_cleanup, mpLcdCrsrImage + 500
bit setting_ram_backup,(iy + settings_flag)
call nz,flash_clear_backup
call lcd_normal
call _ClrParserHook
call _ClrAppChangeHook
call util_setup_shortcuts
call _ClrScrn
call _Ho... |
/*
* This test verifies interrupt handling using a simple timer model
*/
lc r100, 0x10000000 // test result output pointer
lc r101, halt
lc r102, failure
lc r103, 0x20000000 // timer: number of pulses (0xFFFFFFFF - infinite)
lc r104, 0x20000004 // timer: delay between pulses (in cycles)
lc iv0, timer_handler... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1aac9, %r12
nop
add $22014, %r8
mov $0x6162636465666768, %r11
movq %r11, %xmm6
movups %xmm6, (%r12)
nop
nop
nop
nop
nop
cmp $45732, %rbx
lea addresses_D_ht+0x7115, %... |
; A017794: Binomial coefficients C(78,n).
; 1,78,3003,76076,1426425,21111090,256851595,2641902120,23446881315,182364632450,1258315963905,7778680504140,43430966148115,220495674290430,1023729916348425,4367914309753280,17198662594653540,62724534168736440,212566476905162380,671262558647881200,1980224548011249540,5469191608... |
; A127948: Triangle, A004736 * A127899.
; 1,0,2,-1,1,3,-2,0,2,4,-3,-1,1,3,5,-4,-2,0,2,4,6,-5,-3,-1,1,3,5,7,-6,-4,-2,0,2,4,6,8,-7,-5,-3,-1,1,3,5,7,9,-8,-6,-4,-2,0,2,4,6,8,10
add $0,1
mul $0,2
mov $1,2
mov $2,-1
lpb $0,1
add $2,$1
sub $0,$2
lpe
mov $1,$0
|
; A286909: Positions of 1 in A286907; complement of A286908.
; 2,4,8,10,14,16,18,22,24,28,30,32,36,38,42,44,48,50,52,56,58,62,64,66,70,72,76,78,82,84,86,90,92,96,98,100,104,106,110,112,114,118,120,124,126,130,132,134,138,140,144,146,148,152,154,158,160,164,166,168,172,174,178,180,182,186,188,192,194,196,200,202,206,208... |
;--------------------------------------------------------------------
; RC2014 UART Routines
;
; Code by Grant Colegate 2017
;
; See http://rc2014.co.uk for info on the RC2014 homebrew computer.
;--------------------------------------------------------------------
MODULE rc2014_uart
SECTION code_user
; Check the UA... |
; A274230: Number of holes in a sheet of paper when you fold it n times and cut off the four corners.
; 0,0,1,3,9,21,49,105,225,465,961,1953,3969,8001,16129,32385,65025,130305,261121,522753,1046529,2094081,4190209,8382465,16769025,33542145,67092481,134193153,268402689,536821761,1073676289,2147385345,4294836225,85897379... |
/*
** Created by doom on 27/11/18.
*/
#include <tuple>
#include <core/halted_loop.hpp>
#include <vga/vga.hpp>
#include <keyboard/key_event_recognizer.hpp>
#include <keyboard/input_mapper.hpp>
using namespace foros;
enum syscall_id
{
write = 0,
};
template <typename ...Args>
static long syscall(syscall_id id, st... |
; A124152: a(n) = Fibonacci(6, n).
; 0,8,70,360,1292,3640,8658,18200,34840,61992,104030,166408,255780,380120,548842,772920,1065008,1439560,1912950,2503592,3232060,4121208,5196290,6485080,8017992,9828200,11951758,14427720,17298260,20608792,24408090,28748408,33685600,39279240,45592742,52693480,60652908,69546680,79454770,... |
; A025192: a(0)=1; a(n) = 2*3^(n-1) for n >= 1.
; 1,2,6,18,54,162,486,1458,4374,13122,39366,118098,354294,1062882,3188646,9565938,28697814,86093442,258280326,774840978,2324522934,6973568802,20920706406,62762119218,188286357654,564859072962,1694577218886,5083731656658,15251194969974,45753584909922,137260754729766,411782... |
; A139738: a(n) = 10^n mod 8^n.
; 0,2,36,488,1808,1696,213568,1611392,16113920,60475904,336323584,5510719488,37927325696,104395350016,3242976755712,14837581512704,148375815127040,920808197849088,9208081978490880,56052022765944832,848750603811160064,3875820019684212736,38758200196842127360,240008049378744860672,35806721... |
bits 32
movd mm0,eax
movd mm0,[foo]
movq mm0,[foo]
movd mm0,dword [foo]
movq mm0,qword [foo]
movmskps eax,xmm1
movmskpd eax,xmm1
nop
movd xmm0,eax
movd xmm0,[foo]
movq xmm0,[foo]
movd xmm0,dword [foo]
movq xmm0,qword [foo]
nop
bits 64
movd mm0,eax
movq mm0,[foo]
movd mm0,dword [foo]
movq mm0,qword ... |
;
; Disk bootstrap for the pc88
;
SECTION BOOTSTRAP
EXTERN __DATA_END_tail
org $f000
di
ld hl,$c000
ld de,$f000
ld bc,512
ldir
jp entry
console_defn:
defb "0,25,0,1",0
entry:
xor a
ld ($e6a7),a ;Disable cursor
call $428b ;Stop cursor blink
ld hl,console_defn ;
call $7071 ; Console entry
call $... |
; A304616: a(n) = 81*n^2 - 69*n + 24.
; 24,36,210,546,1044,1704,2526,3510,4656,5964,7434,9066,10860,12816,14934,17214,19656,22260,25026,27954,31044,34296,37710,41286,45024,48924,52986,57210,61596,66144,70854,75726,80760,85956,91314,96834,102516,108360,114366,120534,126864,133356,140010,146826,153804,160944,168246,17571... |
%include "asm_io.inc"
segment .data
str1 db "Hello Assembly World!",0
segment .bss
segment .text
global asm_main
asm_main:
enter 0,0
pusha
mov eax, str1 ;str1 is an address
call print_string;print the string at that address
call print_nl ;print a new line
pusha
popa
mov eax, 0
leave
ret
|
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, SRI International
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
; A202829: E.g.f.: exp(4*x/(1-3*x)) / sqrt(1-9*x^2).
; Submitted by Jon Maiga
; 1,4,49,676,13225,293764,7890481,236359876,8052729169,300797402500,12388985000401,551925653637604,26614517015830969,1373655853915667716,75803216516463190225,4440662493517062816004,275697752917311709134241,18052104090118575573856516
mov $3,1... |
; A279891: Triangle read by rows, T(n,k) = 2*n, with n>=k>=0.
; 0,2,2,4,4,4,6,6,6,6,8,8,8,8,8,10,10,10,10,10,10,12,12,12,12,12,12,12,14,14,14,14,14,14,14,14,16,16,16,16,16,16,16,16,16,18,18,18,18,18,18,18,18,18,18,20,20,20,20,20,20,20,20,20,20,20,22,22,22,22,22,22,22,22,22,22,22,22
lpb $0
add $1,1
sub $0,$1
lpe
mu... |
db "FIVE STAR@" ; species name
db "It is timid and"
next "clusters together"
next "with others. The"
page "fluid secreted by"
next "its feet indicates"
next "its location.@"
|
MODULE set_sprite_tile
PUBLIC set_sprite_tile
PUBLIC _set_sprite_tile
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; void __LIB__ set_sprite_tile(uint8_t nb, uint8_t tile) __smallc NONBANKED;
set_sprite_tile:
_set_sprite_tile:
PUSH BC
LD ... |
; stdio_error_edevnf_mc
; 06.2008 aralbrec
PUBLIC stdio_error_edevnf_mc
EXTERN stdio_errno_mc
INCLUDE "../stdio.def"
.stdio_error_edevnf_mc
ld hl,EDEVNF
jp stdio_errno_mc
|
// Tests calling into arrays of pointers to non-args no-return functions
// Commodore 64 PRG executable file
.file [name="function-pointer-noarg-call-5.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Dat... |
; A344055: a(n) = 2^n * n! * [x^n](exp(2*x) * BesselI(1, x)).
; Submitted by Jon Maiga
; 0,1,8,51,304,1770,10224,58947,340064,1964862,11374000,65966318,383289504,2230877428,13005037920,75923905635,443837331648,2597761611894,15221636471088,89283411393018,524194439193120,3080311943546124,18115458433730592,106618075368243... |
; =========== ! xmacro ===========
start_21:
call COMUCopyCode
ld a,end_21-start_21-5
ld (hl),e
inc hl
ld (hl),d
dec hl
end_21:
ret
; =========== * word ===========
start_2a:
call COMUCompileCallToSelf
call MULTMultiply16
ret
; =========== + xmacro ===========
start_2b:
... |
; void __CALLEE__ sp1_ClearRectInv_callee(struct sp1_Rect *r, uchar colour, uchar tile, uchar rflag)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_ClearRectInv_callee
PUBLIC ASMDISP_SP1_CLEARRECTINV_CALLEE
EXTERN sp1_GetUpdateStruct_callee, sp1_ClearRect_callee, l_jpix
EXTERN ASMDISP_SP1... |
.byte $00 ; Unknown purpose
.byte OBJ_AUTOSCROLL, $00, $03
.byte OBJ_CLOUDSINBGBEGIN, $01, $03
.byte OBJ_CFIRE_ULCANNON, $17, $0F
.byte OBJ_FIREJET_LEFT, $18, $0D
.byte OBJ_CFIRE_HLCANNON2, $24, $15
.byte OBJ_CFIRE_HLCANNON2, $27, $15
.byte OBJ_CFIRE_BULLETBILL, $2D, $0C
.byte OBJ_CFIRE_URCANNON2, $38, $07
.... |
#include "vapor/glutil.h" // Must be included first!!!
#include "vapor/ShaderProgram.h"
#include "vapor/FileUtils.h"
#include "vapor/VAssert.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <vapor/Shader.h>
#include <vapor/Texture.h>
using namespace VAPoR;
using std::vector;
using std::string;
Sh... |
AREA |.text|, CODE, READONLY
GLOBAL |rust_psm_stack_direction|
ALIGN 4
|rust_psm_stack_direction| PROC
orr w0, wzr, #2
ret
ENDP
GLOBAL |rust_psm_stack_pointer|
ALIGN 4
|rust_psm_stack_pointer| PROC
mov x0, sp
ret
ENDP
GLOBAL |rust_psm_replace_stack|
ALIGN 4
|rust... |
Music_ChampionBattle:
musicheader 3, 1, Music_ChampionBattle_Ch1
musicheader 1, 2, Music_ChampionBattle_Ch2
musicheader 1, 3, Music_ChampionBattle_Ch3
Music_ChampionBattle_Ch1:
tempo 98
volume $77
dutycycle $3
tone $0002
vibrato $12, $15
notetype $c, $b2
octave 2
note A#, 8
note A#, 8
note A#, 8
note A#,... |
SECTION code_clib
PUBLIC nmi_init
PUBLIC _nmi_init
EXTERN asm_nmi_handler
EXTERN l_push_di
EXTERN l_pop_ei
nmi_init:
_nmi_init:
ld hl,asm_nmi_handler
ld ($ff7f),hl
ld a,195
ld ($ff7e),a
ret
|
// Copyright 2013 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/files/file_path.h"
#include "base/pickle.h"
#include "extensions/common/user_script.h"
#include "testing/gtest/include/gtest/gtest.h"
#incl... |
txt_commander DB "COMMANDER",0
txt_inventory DB "INVENTORY",0
txt_present_system DB "Present System :",0
txt_hyperspace_system DB "Hyperspace System:",0
txt_condition DB "Condition :",0
txt_fuel DB "Fuel :",0
txt_cash DB "Cash :",0
txt_legal_status DB "Legal Status:",0
txt_rati... |
;;
;; Copyright (c) 2018-2022, 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.