text stringlengths 1 1.05M |
|---|
// ----------------------------------------------------------------------------
//
// FCST: Fuel Cell Simulation Toolbox
//
// Copyright (C) 2006-2013 by Energy Systems Design Laboratory, University of Alberta
//
// This software is distributed under the MIT License
// For more information, see the README file in /doc/... |
jmp start
write:
push ebx
add ebx, 2
inc ecx
cmp ecx, eax
jne write
ret
start:
mov eax, 1000 ; length of memory
mov ebx, 1 ;starting value
mov ecx, 0 ;counter
jmp write |
.init main
.code
main:
asne x0 x0
mov i0 @0
exit
|
/****************************************************************************************
* @author: kzvd4729 created: 2019-03-28 23:53:47
* solution_verdict: Wrong answer language: C++
* run... |
; A011865: a(n) = floor( n*(n - 1)/12 ).
; 0,0,0,0,1,1,2,3,4,6,7,9,11,13,15,17,20,22,25,28,31,35,38,42,46,50,54,58,63,67,72,77,82,88,93,99,105,111,117,123,130,136,143,150,157,165,172,180,188,196,204,212,221,229,238,247,256,266,275,285,295,305,315,325,336
mov $1,$0
bin $1,2
div $1,6
|
TITLE NHLHCORE - Core Local Heap utilities
;***
;NHLHCORE - Core Local Heap utilities
;
; Copyright <C> 1987, Microsoft Corporation
;
;Purpose:
; This module contains the core local heap utilities that are required to
; support /O programs which use string space and simple OPEN statements. Field
; manipulations and ad... |
; A001542: a(n) = 6*a(n-1) - a(n-2) for n > 1, a(0)=0 and a(1)=2.
; 0,2,12,70,408,2378,13860,80782,470832,2744210,15994428,93222358,543339720,3166815962,18457556052,107578520350,627013566048,3654502875938,21300003689580,124145519261542,723573111879672,4217293152016490
mov $3,1
lpb $0,1
sub $0,1
mov $2,$3
add $2,... |
; Basic drag-and-drop interface for StarCraft: Brood War 1.16.1. Draws a dot every other space
; to simulate a transparent effect.
;
; Originally written on 2009/05/29 by attilathedud.
; System descriptors
.386
.model flat,stdcall
option casemap:none
VirtualAlloc proto stdcall :DWORD, :DWORD, :DWORD,... |
; **********************************************************************
; api The API used to talk with the remote server
; **********************************************************************
; XMODEM Control Character Constants
SOH = &01 ; start block
EOT = &04 ; end of text marker
ACK = &06 ; good bl... |
#d8 2 + 3 ; = 0x05 |
/*=============================================================================
Copyright (c) 2010-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprig
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)
===... |
//
// Created by yue on 26.01.20.
//
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat myImage = (Mat_<uint16_t>(3, 3)
<< 8, 0, 65533
, 0, 8, 2397
, 0, 0, 1);
// Mat myImage2Save(myImage.rows, myImage.cols, CV_8UC1, ... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
PUBLIC fputc_cons
INCLUDE "sms/sms.hdr"
EXTERN fputc_vdp_offs
EXTERN VRamToHL
.fputc_cons
ld a, (fputc_vdp_offs)
ld l, a
ld a, (fputc_vdp_offs+1)
ld h, a ; Loads char offset
ld de, NameTableAddress
add hl, de ; Calculates name table address
call VRamToHL
ld hl,2
add hl,sp
ld a,(hl)
... |
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2021 Yermalayeu Ihar.
*
* 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 witho... |
%define cat_count 42
mov rax, cat_count |
.intel_syntax noprefix
AND rax, 0b111111000000 # keep the mem. access within the sandbox
MOV qword ptr [r14], rax # put RAX into Store Buffer
MOV rax, 0
MFENCE
# delay the store
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include <map>
#include <boost/version.hpp>
#include <boost/filesystem.hpp>
#... |
; A130556: A model of the atomic nucleus (Shell model of nucleus). A triangle.
; Submitted by Jamie Morken(s2)
; 1,11,1,111,1,11,1111,11,1,111,11111,111,1,11,1111,111111,1111,11,1,111,11111,1111111,11111,111,1,11,1111,111111,11111111,111111,1111,11,1,111,11111,1111111
mul $0,2
seq $0,4737 ; Concatenation of sequences ... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletframe.h"
#include "bitcoingui.h"
#include "walletstack.h"
#include "walletview.h"
#include <QHBoxLay... |
; BLOCK 2 koala_boot.xex
org $0400
/* 0400: A9 60 */ lda #$60
/* 0402: 8D 00 03 */ sta DDEVIC
/* 0405: A9 00 */ lda #$00
/* 0407: 8D 01 03 */ sta DUNIT
/* 040A: A9 52 */ lda #$52
/* 040C: 8D 02 03 */ ... |
; b = row coord
; c = col coord (in column loop)
; hl = struct sp1_update
; hl'= & struct sp1_cs
; a' = bit 0 = 1 if last row should not draw, bit 1 = 1 if last col should not draw
; iy = & clipping rectangle
; ix = & struct sp1_ss
; stack = & struct sp1_update.ulist (tail of invalidated list), row
NCrowloop:
... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Copyright (c) 2017 The BitSliver developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletmodeltransaction.h"
#include "wallet.h"
WalletModelTransactio... |
; A335749: a(n) = n!*[x^n] exp(2*x)*(y*sinh(x*y) + cosh(x*y)) and y = sqrt(6).
; Submitted by Jamie Morken(s3)
; 1,8,34,152,676,3008,13384,59552,264976,1179008,5245984,23341952,103859776,462123008,2056211584,9149092352,40708792576,181133355008,805951005184,3586070730752,15956184933376,70996881195008,315899894646784,140... |
; A105161: Difference between n and the second-smallest prime larger than n.
; 3,2,3,4,3,6,5,6,5,4,3,6,5,6,5,4,3,6,5,10,9,8,7,8,7,6,5,4,3,8,7,10,9,8,7,6,5,6,5,4,3,6,5,10,9,8,7,12,11,10,9,8,7,8,7,6,5,4,3,8,7,10,9,8,7,6,5,6,5,4,3,8,7,10,9,8,7,6,5,10,9,8,7,14,13,12,11,10,9,12,11,10,9,8,7,6,5,6,5,4
sub $1,$0
seq $0,101300... |
//push constant 3030
@3030
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
AM=M-1
D=M
@3
M=D
//push constant 3040
@3040
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
AM=M-1
D=M
@4
M=D
//push constant 32
@32
D=A
@SP
A=M
M=D
@SP
M=M... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 0... |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
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 a... |
/**
* Liverpool Root Complex (RC) PCI device.
*
* Copyright 2017-2021. Orbital project.
* Released under MIT license. Read LICENSE for more details.
*
* Authors:
* - Alexandro Sanchez Bach <alexandro@phi.nz>
*/
#include "liverpool_rc.h"
LiverpoolRCDevice::LiverpoolRCDevice(PCIBus* bus, const LiverpoolRCDevice... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="clock_id, flags, req, rem"/>
<%docstring>
Invokes the syscall clock_nanosleep. See 'man 2 clock_nanosleep' for more information.
Arguments:
clock_id(clockid_t): clock_id
flags(int): flags
req(timespec): req
rem(timespec): rem
</%d... |
halt
pop
dup
exit
ldv.u3 4
ret
Label1 not
and
or
br.i5 10
xor
neg
Label3 inc
dec
addv.u3 2
sub
mul
div
rem
shl
shr
teq
tne
tlt
tgt
tle
tge
halt
lda.i16 60000
call.i16 20000
trap 200
.cstring "A2" |
assert FATAL, UnknownSymbol == 42
assert WeDontReachHere
|
;
; Copyright (c) 2020 Phillip Stevens
;
; 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/.
;
; feilipu, August 2020
;
;-----------------------------------------------... |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; SUB16i16
mov ax, 0xa123
;TEST_BEGIN_RECORDING
sub ax, 0xeeee
;TEST_END_RECORDING
|
#include "hi.asm"
// subroutine call, using self-modifying code
. = .+0x100
li (1f & 0xff)
st (func_end + 1)
// 0x60 is opcode JMP
li (0x60 | (1f >> 8))
st (func_end)
li (0x5a)
jmp func
1:
st 2f
li (1f & 0xff)
st (func_end + 1)
li (0x60 | (1f >> 8))
st (func_end)
ld 2f
jmp func
// a = 0x5e
1: jmp 1b
2: .=.+1
func:
ad... |
; void __CALLEE__ HeapFree_callee(void *heap, void *addr)
; 12.2006 aralbrec
SECTION code_clib
PUBLIC HeapFree_callee
PUBLIC _HeapFree_callee
PUBLIC MAHeapFree
PUBLIC ASMDISP_HEAPFREE_CALLEE
.HeapFree_callee
._HeapFree_callee
pop bc
pop hl
pop de
push bc
.asmentry
; Return memory block to indicated hea... |
%include "io.inc"
section .data
mystring db "This is my string", 10, 0
section .text
global CMAIN
CMAIN:
push ebp
lea ebp, [esp]
PRINT_STRING mystring
; TODO: call puts on string
push mystring
call puts
xor eax, eax
leave
ret
|
; A184220: a(n) = largest k such that A000290(n+1) = A000290(n) + (A000290(n) mod k), or 0 if no such k exists.
; 0,0,0,0,14,23,34,47,62,79,98,119,142,167,194,223,254,287,322,359,398,439,482,527,574,623,674,727,782,839,898,959,1022,1087,1154,1223,1294,1367,1442,1519,1598,1679,1762,1847,1934,2023,2114,2207,2302,2399,249... |
; Stack tester
;
; Expected output:
; 1
; 2
LDI R0,1
LDI R1,2
PUSH R0
POP R1
PRN R1 ; "1"
LDI R0,2
PUSH R0
LDI R0,3
POP R0
PRN R0 ; "2"
HLT |
; void bit_fx_di(void *effect)
SECTION code_sound_bit
PUBLIC bit_fx_di
EXTERN asm_bit_fx_di
defc bit_fx_di = asm_bit_fx_di
|
// Copyright (c) 2015 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special ... |
; A003949: Expansion of g.f.: (1+x)/(1-6*x).
; 1,7,42,252,1512,9072,54432,326592,1959552,11757312,70543872,423263232,2539579392,15237476352,91424858112,548549148672,3291294892032,19747769352192,118486616113152,710919696678912,4265518180073472,25593109080440832
mov $1,6
pow $1,$0
mul $1,21
div $1,18
|
%use masm
global fproc, nproc
bits 64
_TEXT segment
fproc proc far
mov eax,dword ptr foo
mov rdx,offset foo
mov ecx,bar[rbx]
lea rsi,foo
lea rsi,dword ptr foo
lea rsi,[foo]
lea rsi,dword [foo]
mov rdi,gs:[rbx]
ret
fproc endp
nproc proc near
mov eax,dword ptr foo
mov rdx,offset foo
mov ecx,bar[rbx]
... |
; A002282: a(n) = 8*(10^n - 1)/9.
; 0,8,88,888,8888,88888,888888,8888888,88888888,888888888,8888888888,88888888888,888888888888,8888888888888,88888888888888,888888888888888,8888888888888888
lpb $0,1
add $4,2
sub $0,1
add $3,$4
add $2,$3
mov $3,$2
add $3,$2
mov $4,$3
add $2,$4
mul $2,2
lpe
mov $1,$3
a... |
; A092278: Floor( (3*n+4)/16 ).
; 0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,9,9,9,9,9,10,10,10,10,10,10,11,11,11,11,11,12,12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15,15,16,16,16,16
mul $0,3
mov $1,4
add $1,$0
div $1,16
|
; A178987: a(n) = n*(n-3)*2^(n-2).
; 0,-1,-2,0,16,80,288,896,2560,6912,17920,45056,110592,266240,630784,1474560,3407872,7798784,17694720,39845888,89128960,198180864,438304768,964689920,2113929216,4613734400,10032775168,21743271936,46976204800,101200166912,217432719360,466003951616,996432412672,2126008811520,45268955299... |
#include "lvr2/io/descriptions/HDF5IO.hpp"
namespace lvr2
{
HDF5IO::HDF5IO(HDF5KernelPtr kernel, HDF5SchemaPtr schema)
: m_kernel(kernel), m_schema(schema)
{
}
void HDF5IO::saveScanProject(ScanProjectPtr project)
{
using BaseScanProjectIO = lvr2::FeatureBase<>;
using MyScanProjectIO = BaseScanProjectIO:... |
; A070212: Number of 5 X 5 pandiagonal magic squares with sum n.
; Submitted by Jamie Morken(s3.)
; 1,10,55,220,715,2001,4995,11385,24090,47905,90376,162955,282490,473110,768570,1215126,1875015,2830620,4189405,6089710,8707501,12264175,17035525,23361975,31660200,42436251,56300310,73983205,96354820,124444540,159463876,20... |
; A047535: Numbers that are congruent to {4, 7} mod 8.
; 4,7,12,15,20,23,28,31,36,39,44,47,52,55,60,63,68,71,76,79,84,87,92,95,100,103,108,111,116,119,124,127,132,135,140,143,148,151,156,159,164,167,172,175,180,183,188,191,196,199,204,207,212,215,220,223,228,231
mov $1,$0
mul $0,4
mod $1,2
sub $0,$1
add $0,4
|
// 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/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black... |
; float log(float x)
SECTION code_fp_math48
PUBLIC cm48_sdcciy_log
EXTERN cm48_sdcciy_log_fastcall
cm48_sdcciy_log:
pop af
pop hl
pop de
push de
push hl
push af
jp cm48_sdcciy_log_fastcall
|
#define USING_TEST_MEMORY
#include "Test.h"
TEST_CONSTRUCT;
#include "test/type/val/Sequence.h"
#include <cstdio>
int main()
{
typedef test::type::val::Sequence<int> ValSeqInt0;
printf("Size : %d\n", ValSeqInt0::Size);
typedef test::type::val::Sequence<int, 4> ValSeqInt1;
ValSeqInt1 i1;
printf("[... |
; A060541: C(4n,4).
; 1,70,495,1820,4845,10626,20475,35960,58905,91390,135751,194580,270725,367290,487635,635376,814385,1028790,1282975,1581580,1929501,2331890,2794155,3321960,3921225,4598126,5359095,6210820,7160245,8214570,9381251,10668000,12082785,13633830,15329615,17178876,19190605,21374050,23738715,26294360,2905100... |
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the aVeryBigSum function below.
long aVeryBigSum(vector<long> ar) {
long n(0);
for (int x=0; x<=ar.size()-1; x++){
n+=ar[x];
}
return n;
}
int main()
{
ofstream fout(getenv("OUTPUT_PATH"));
... |
; A154292: Integers of the form m*(6*m -+ 1)/2.
; 11,13,46,50,105,111,188,196,295,305,426,438,581,595,760,776,963,981,1190,1210,1441,1463,1716,1740,2015,2041,2338,2366,2685,2715,3056,3088,3451,3485,3870,3906,4313,4351,4780,4820,5271,5313,5786,5830,6325,6371,6888,6936,7475,7525,8086,8138,8721,8775,9380,9436,10063,10121,... |
; int atexit(void (*func)(void))
SECTION code_clib
SECTION code_stdlib
PUBLIC atexit
EXTERN asm_atexit
defc atexit = asm_atexit
|
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "unit_tests/fixtures/hello_world_fixture.h"
using namespace NEO;
struct KernelSubGroupInfoFixture : HelloWorldFixture<HelloWorldFixtureFactory> {
typedef HelloWorldFixture<HelloWorldFixtureFactory> ParentClass;
... |
; A303915: a(n) = lambda(n)*E(n), where lambda(n) = A008836(n) and E(n) = A005361(n).
; Submitted by Christian Krause
; 1,-1,-1,2,-1,1,-1,-3,2,1,-1,-2,-1,1,1,4,-1,-2,-1,-2,1,1,-1,3,2,1,-3,-2,-1,-1,-1,-5,1,1,1,4,-1,1,1,3,-1,-1,-1,-2,-2,1,-1,-4,2,-2,1,-2,-1,3,1,3,1,1,-1,2,-1,1,-2,6,1,-1,-1,-2,1,-1,-1,-6,-1,1,-2,-2,1,-1,-... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4010000000000000",
"RBX": "0x4000000000000000",
"RCX": "0x4014000000000000"
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov rax, 0x4000000000000000 ; 2.0
mov [rdx + 8 * 1],... |
//Language: MS C++
#include <iostream>
#include <vector>
using namespace std;
struct point{
int x,y;
point(int a, int b)
{
x = a;
y = b;
}
point()
{
}
};
bool mark[51][51];
char X[51][51];
int n,m;
bool sharrp(int x, int y)
{
if (x < 0 |... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 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 s... |
; A123344: Expansion of (1+3*x)/(1+2*x).
; 1,1,-2,4,-8,16,-32,64,-128,256,-512,1024,-2048,4096,-8192,16384,-32768,65536,-131072,262144,-524288,1048576,-2097152,4194304,-8388608,16777216,-33554432,67108864,-134217728,268435456,-536870912,1073741824,-2147483648,4294967296,-8589934592,17179869184,-34359738368,68719476736,... |
; A114696: Expansion of (1+4*x+x^2)/((x-1)*(x+1)*(x^2+2*x-1)); a Pellian-related sequence.
; 1,6,15,40,97,238,575,1392,3361,8118,19599,47320,114241,275806,665855,1607520,3880897,9369318,22619535,54608392,131836321,318281038,768398399,1855077840,4478554081,10812186006,26102926095,63018038200,152139002497,367296043198,88... |
// Copyright Take Vos 2020-2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "../byte_string.hpp"
#include "../required.hpp"
#include "../datum.hpp"
#include "../exception.hpp"
#include ... |
#ifndef GGL_DFS_APPLYRULE_HH_
#define GGL_DFS_APPLYRULE_HH_
#include "sgm/SGM_vf2.hh"
#include "ggl/Graph.hh"
#include "ggl/Graph_Storage.hh"
#include "ggl/Rule.hh"
namespace ggl {
///////////////////////////////////////////////////////////////////////////////
/*! Depths-First-Search for graph... |
sra $4,$6,1
xor $0,$1,$3
addu $3,$5,$3
addu $3,$6,$3
lb $4,2($0)
lh $6,4($0)
ori $3,$1,32580
sh $1,12($0)
sll $3,$3,2
lh $3,14($0)
lh $4,14($0)
sltiu $5,$3,428
srav $1,$4,$3
addiu $1,$1,26083
sltiu $3,$3,-14187
lw $6,4($0)
xori $3,$4,46011
lw $0,16($0)
addu $1,$5,$3
lw $3,12($0)
ori $3,$3,22133
addiu $6,$5,-20957
lh $2... |
ORG #6000
DISP #4800
LD (STEKK),SP
LD SP,#5C00
LD A,1
PUSH AF
CALL ATR_7F
LD HL,#4020
LD C,7*32-1
CALL FILZERO
LD HL,#5000
LD C,4*32-1
CALL FILZERO
LD IX,TEXT
LD DE,#5000
LD B,#60
CALL... |
/*
***************************************************************************************************
**
** profile.cpp
**
** Real-Time Hierarchical Profiling for Game Programming Gems 3
**
** by Greg Hjelstrom & Byon Garrabrant
**
**************************************************************************************... |
; A268741: a(n) = 2*a(n - 2) - a(n - 1) for n>1, a(0) = 4, a(1) = 5.
; 4,5,3,7,-1,15,-17,47,-81,175,-337,687,-1361,2735,-5457,10927,-21841,43695,-87377,174767,-349521,699055,-1398097,2796207,-5592401,11184815,-22369617,44739247,-89478481,178956975,-357913937,715827887,-1431655761,2863311535
add $0,1
mov $1,-2
pow $1,... |
db 0 ; species ID placeholder
db 76, 104, 71, 108, 104, 71
; hp atk def spd sat sdf
db FIRE, FIGHTING ; type
db 45 ; catch rate
db 240 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/infernape/front.dimensions"
db GROWTH_MEDIU... |
; A130256: Minimal index k of an odd Fibonacci number A001519 such that A001519(k) = Fibonacci(2*k-1) >= n (the 'upper' odd Fibonacci Inverse).
; 0,0,2,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,... |
; ==++==
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; ==--==
.386
.model flat
option casemap:none
public _DoubleToNumber,_NumberToDouble
; NUMBER structure
nPrecision equ (dword ptr 0)
nScale equ (dword ptr 4)
nSign equ (dword ptr 8)
nDigits equ (word ptr 12)
.code
; Powers of 10 ... |
// COMP 3004 FALL 2012
// Assignment 4: cuCare Prototype #2
// Team: The Four Puppeteers
//
// ModelObject.cpp - Implementation of class ModelObject
// Function and attribute declarations are in ModelObject.h
#include "ModelObject.h"
#include "IntProperty.h"
ModelObject::ModelObject()
: properties (),
delet... |
.include "myTiny13.h"
Main:
;initial values ----------------------------
; .------Poti
; |.-----Speaker
; ||
ldi A,0b00001111
out DDRB,A
ldi A,0
out PORTB,A
MainLoop:
; toggle Sound-Bit
ldi A,0b00001000
in B,PINB
eor B,A
out PORTB,B
rcall GetADC
rcall WaiterX
rjmp MainL... |
;
; Created by Drapegnik on 16.05.15.
;
.386
.model flat
.code
@MyLen@4 proc
cld
mov edi,ecx
mov ecx,100
mov al,0
repne scasb
mov eax,100
sub eax,ecx
dec eax
ret
@MyLen@4 endp
@Count@8 proc
cld
mov edi,ecx
mov ecx,edx
mov al,' '
mov [edi][ecx], al
inc ecx
mov... |
#include <gtest/gtest.h>
#include "scheme/kinematics/Scene_io.hh"
#include "scheme/actor/ActorConcept_io.hh"
#include "scheme/numeric/X1dim.hh"
#include "scheme/objective/ObjectiveVisitor.hh"
#include "scheme/io/cache.hh"
#include "scheme/util/meta/util.hh"
#include <boost/make_shared.hpp>
#include <boost/foreach.hp... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xd086, %r8
nop
nop
nop
add %r10, %r10
movb (%r8), %al
nop
nop
nop
xor $13725, %r15
lea addresses_WC_ht+0x2d06, %rdi
add $13357, %r14
vmovups (%rdi), %ymm6
vextracti12... |
; A119900: Triangle read by rows: T(n,k) is the number of binary words of length n with k strictly increasing runs, for 0<=k<=n.
; 1,0,2,0,1,3,0,0,4,4,0,0,1,10,5,0,0,0,6,20,6,0,0,0,1,21,35,7,0,0,0,0,8,56,56,8,0,0,0,0,1,36,126,84,9,0,0,0,0,0,10,120,252,120,10,0,0,0,0,0,1,55,330,462,165,11,0,0,0,0,0,0,12,220,792,792,220,... |
; A235877: Number of (n+1) X (1+1) 0..2 arrays with the minimum plus the upper median equal to the lower median plus the maximum in every 2 X 2 subblock.
; 21,51,129,339,921,2571,7329,21219,62121,183291,543729,1618899,4832121,14447211,43243329,129533379,388206921,1163834331,3489930129,10466644659,31393642521,9416834465... |
; A345867: Total number of 0's in the binary expansions of the first n primes.
; 1,1,2,2,3,4,7,9,10,11,11,14,17,19,20,22,23,24,28,31,35,37,40,43,47,50,52,54,56,59,59,64,69,73,77,80,83,87,90,93,96,99,100,105,109,112,115,116,119,122,125,126,129,130,137,142,147,151,156,161,165,170,174,177,181,184,188,193,196,199,204,207,2... |
// Copyright 2014 Google Inc. All Rights Reserved.
//
// 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... |
;name: 5161AS-single-digit-led.asm
;assemble: avra 5161AS-single-digit-led.asm
;flash: avrdude -c arduino -p m328p -P /dev/ttyACM0 -b 115200 -U flash:w:5161AS-single-digit-led.hex
;description: small demonstration on how to deal with the 5161AS single digit led.
; the program lits ... |
ORG 32768
; === b e g i n ===
ld (Stop+1), SP ; 4:20 init storing the original SP value when the "bye" word is used
ld L, 0x1A ; 2:7 init Upper screen
call 0x1605 ; 3:17 init Open channel
ld HL, 60000 ; 3:10 init Init Return address s... |
PAGE ,132
TITLE PARSE CODE AND CONTROL BLOCKS FOR ANSI.SYS
;****************** START OF SPECIFICATIONS **************************
; MODULE NAME: PARSER.ASM
; DESCRIPTIVE NAME: PARSES THE DEVICE= STATEMENT IN CONFIG.SYS FOR
; ANSI.SYS
; FUNCTION: THE COMMAND LINE PASSED TO ANSI.SYS IN THE CONFIG.SYS... |
_Mansion4BattleText1::
text "Uh-oh. Where am"
line "I now?"
done
_Mansion4EndBattleText1::
text "Awooh!"
prompt
_Mansion4AfterBattleText1::
text "You can find stuff"
line "lying around."
done
_Mansion4BattleText2::
text "This place is"
line "ideal for a lab."
done
_Mansion4EndBattleText2::
text "What"
... |
;*******************************************************************************
; syscall.nasm - RadiOS microkernel system calls.
; Copyright (c) 2002 RET & COM Research.
;*******************************************************************************
module kernel.syscall
%include "sys.ah"
%include "errors.ah"
%inc... |
#include "ofApp.h"
#include "graphics-utils.h"
void ofApp::setup() {
ofSetWindowTitle("DEX UI");
ofBackground(COLOR_15);
ofSetFrameRate(60);
layout = Layout();
// Position components, set delays for animation
left = Left();
left.setPos(165,165);
left.setDelay(-50);
right = Right();
right.setP... |
#include "testlib.h"
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <string>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <ctime>
#include <climits>
#include <cassert>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#inclu... |
; int strncasecmp(const char *s1, const char *s2, size_t n)
SECTION code_clib
SECTION code_string
PUBLIC strncasecmp_callee
EXTERN asm_strncasecmp
strncasecmp_callee:
pop hl
pop bc
pop de
ex (sp),hl
ex de,hl
jp asm_strncasecmp
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _strncasecmp_callee
d... |
//Code at https://github.com/ozgurozmen/OptimizedPKCSuite/tree/master/ATmega2560/Signcryption
//modified for performing experiments on Raspberry Pi by
//Shubham Kumar, shubham18145@iiitd.ac.in, IIIT Delhi
//Signcryption+AQ-DBPV
#include "header/uECC_vli.h"
#include "header/uECC.c"
#include "header/types.h"
#include <st... |
include uXmx86asm.inc
option casemap:none
ifndef __X64__
.686P
.xmm
.model flat, c
else
.X64P
.xmm
option win64:11
option stackbase:rsp
endif
option frame:auto
.code
align 16
uXm_has_RDPID proto VECCALL (byte)
align 16
uXm_has_RDPID proc VECCALL (byte)
mov eax, 0
... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * Licens... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x16282, %r10
nop
nop
nop
nop
add %r13, %r13
mov (%r10), %rbx
nop
xor %rdx, %rdx
lea addresses_D_ht+0x1ba46, %r15
nop
dec %r9
movb (%r15), %dl
nop
nop
nop
add $36527, ... |
db 0 ; species ID placeholder
db 150, 80, 44, 80, 90, 54
; hp atk def spd sat sdf
db GHOST, FLYING ; type
db 60 ; catch rate
db 174 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 30 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/drifblim/... |
/*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* 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 ri... |
; A315745: Coordination sequence Gal.4.137.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,6,12,18,23,28,34,40,46,52,58,64,69,74,80,86,92,98,104,110,115,120,126,132,138,144,150,156,161,166,172,178,184,190,196,202,207,212,218,224,... |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC zx_01_output_char_64_oterm_msg_printc
EXTERN asm_zx_cxy2saddr, asm_zx_saddr2aaddr
zx_01_output_char_64_oterm_msg_printc:
; enter : c = ascii code
; b = parameter (currently unused)
; l = absolute x coordinate
; ... |
;
; 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... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2022 Intel Corporation
#include <opencv2/gapi/streaming/onevpl/device_selector_interface.hpp>
#include "s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.