text stringlengths 1 1.05M |
|---|
#include "player_sprite.h"
#include "keyboard_manager.h"
#include "image_library.h"
#include "image_sequence.h"
#include "vec2d.h"
#include "collision.h"
#include <cmath>
#include "allegro5/allegro_audio.h"
#include "allegro5/allegro_acodec.h"
using namespace std;
namespace csis3700 {
player_spri... |
org 0x7C00 ; Load into memory address 0x7c00, gives us 0x400 bytes to play with before the kernel is loaded at 0x8000
; Initialize registers and setup the stack for QEMU
; cli ; Turn off maskable interrupts
; xor ax, ax
; mov ds, ax
; mov ss, ax
; ... |
; A232637: Odious numbers of order 2: a(n) = A000069(A000069(n)).
; Submitted by Simon Strandgaard
; 1,2,7,13,14,21,25,26,31,37,41,42,49,50,55,61,62,69,73,74,81,82,87,93,97,98,103,109,110,117,121,122,127,133,137,138,145,146,151,157,161,162,167,173,174,181,185,186,193,194,199,205,206,213,217,218,223,229,233,234,241,242,... |
; A072256: a(n) = 10*a(n-1) - a(n-2) for n > 1, a(0) = a(1) = 1.
; 1,1,9,89,881,8721,86329,854569,8459361,83739041,828931049,8205571449,81226783441,804062262961,7959395846169,78789896198729,779939566141121,7720605765212481,76426118085983689,756540575094624409,7488979632860260401,74133255753507979601,7338435779022195356... |
; Copyright (c) 2004, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
; Assembly for twoargset-native.bas
; compiled with mcbasic -native
; 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 con... |
###############################################################################
# Copyright 2019 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... |
#include <GameController.h>
GameController::GameController(Keypad& keyPad, LiquidCrystal& screen, MenuItem* options, int option)
{
this->keyPad = &keyPad;
this->screen = &screen;
this->selectedOption = option;
this->options = options;
this->screen->clear();
}
void GameController::executeSelectedO... |
; A064917: a(n) is the result of beginning with n and iterating k -> A064916(k) until a prime is reached.
; 2,3,3,5,3,7,5,5,3,11,7,13,5,7,5,17,3,19,11,5,7,23,13,5,5,11,7,29,5,31,17,13,3,11,19,37,11,7,5,41,7,43,23,17,13,47,5,13,5,19,11,53,7,7,29,5,5,59,31,61,17,23,13,17,3,67,11,5,19,71,37,73,11,11,7,17,5,79,41,29,7,83,4... |
#include "Shader.h"
#include "VulkanBackend.h"
#include "Device.h"
#include "VulkanUtil.h"
#include <robin_hood.h>
namespace ze::gfx::vulkan
{
#if ZE_FEATURE(BACKEND_HANDLE_VALIDATION)
robin_hood::unordered_set<ResourceHandle> shaders;
#endif
vk::Result shader_last_result;
std::pair<Result, ResourceHandle> VulkanBa... |
/*
* FbSingleAxis.hpp
*
* Copyright 2020 (C) SYMG(Shanghai) Intelligence System Co.,Ltd
*
* 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x10b1a, %r13
nop
nop
inc %r15
movw $0x6162, (%r13)
nop
nop
nop
nop
nop
xor %rbp, %rbp
lea addresses_D_ht+0xef8, %rsi
lea addresses_UC_ht+0x146cc, %rdi
nop
cmp $51596, %r13
mov ... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
************************************************************
************************************************************
** **
** THI... |
// Written: Quan Gu and Zhijian Qiu
// Created: 2013.7
//
// Reference:JP Conte, MK. Jagannath, Seismic relibility analysis of concrete
// gravity dams, A Report on Research, Rice University, 1995.
// EA de Souza Neto, D Peri´c, DRJ Owen, Computational methods for
// plasticity, Theory and applications (se... |
; A047350: Numbers that are congruent to {1, 2, 4} mod 7.
; 1,2,4,8,9,11,15,16,18,22,23,25,29,30,32,36,37,39,43,44,46,50,51,53,57,58,60,64,65,67,71,72,74,78,79,81,85,86,88,92,93,95,99,100,102,106,107,109,113,114,116,120,121,123,127,128,130,134,135,137,141
add $0,2
mov $2,$0
lpb $2,1
add $4,1
lpb $4,1
sub $2,1
... |
;***
;* $Workfile: crctab.asm $
;* $Revision: 1.2 $
;* $Author: Dave Sewell $
;* $Date: 04 May 1990 9:12:00 $
;***
TITLE CRC table
PAGE 66, 132
COMMENT @
crctab.asm : Alan Butt : May 1, 1989 : Expansion Box Project
This module contains the CRC table and... |
; A004636: Cubes written in base 6.
; 1,12,43,144,325,1000,1331,2212,3213,4344,10055,12000,14101,20412,23343,30544,34425,43000,51431,101012,110513,121144,132155,144000,200201,213212,231043,245344,304525,325000,345531,411412,434213,501544,530255,1000000,1030301,1102012,1134343,1212144,1251025,1331000,1412031,1454212,154... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "miner.h"
#include "amount.h"
#include "primitives/transaction.h"
#incl... |
; int im2_remove_generic_callback(uint8_t vector, void *callback)
SECTION code_z80
PUBLIC im2_remove_generic_callback
EXTERN asm_im2_remove_generic_callback
im2_remove_generic_callback:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_im2_remove_generic_callback
|
; A049086: Number of tilings of 4 X 3n rectangle by 1 X 3 rectangles. Rotations and reflections are considered distinct tilings.
; 1,3,13,57,249,1087,4745,20713,90417,394691,1722917,7520929,32830585,143313055,625594449,2730863665,11920848033,52037243619,227154537661,991581805481,4328482658041,18894822411423,82480245888... |
/**
* @file
* Declares the scoped file resource for managing FILE pointers.
*/
#ifndef FACTER_UTIL_SCOPED_FILE_HPP_
#define FACTER_UTIL_SCOPED_FILE_HPP_
#include "scoped_resource.hpp"
#include <string>
#include <cstdio>
namespace facter { namespace util {
/**
* Represents a scoped file.
* Automatica... |
/*
* Automatically Generated from Mathematica.
* Thu 4 Nov 2021 11:04:01 GMT-04:00
*/
#ifndef FRIGHTTOEBOTTOM_VEC_CASSIE_HH
#define FRIGHTTOEBOTTOM_VEC_CASSIE_HH
#ifdef MATLAB_MEX_FILE
// No need for external definitions
#else // MATLAB_MEX_FILE
#include "math2mat.hpp"
#include "mdefs.hpp"
namespace RightStance... |
;@DOES Free a block of memory returned by sys_Malloc
;@INPUT HL = memory to free
;@DESTROYS AF,DE
sys_Free:
dec hl
dec hl
dec hl
ld de,(hl)
push de
ld de,0
ld (hl),de
pop de
inc hl
inc hl
inc hl
ld (hl),de
ret
|
#pragma once
#include <RmlUi/Core/FileInterface.h>
#include "VirtualFileSystem.hpp"
namespace RavEngine{
class VFSInterface : public Rml::FileInterface{
private:
struct VFShandle{
RavEngine::Vector<uint8_t> filedata;
long offset = 0;
inline size_t size_bytes() const{
return filedata.size() * sizeof(de... |
; A028146: Expansion of 1/((1-4x)(1-7x)(1-8x)(1-10x)).
; Submitted by Jon Maiga
; 1,29,535,8025,106911,1320249,15480655,174931625,1923680671,20725530969,219822814575,2303376354825,23907223188031,246285893877689,2522150397345295,25706911853867625,261029919360032991
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub ... |
;
; Grundy NewBrain startup code
;
;
; $Id: newbrain_crt0.asm,v 1.10 2015/01/21 07:05:00 stefano Exp $
;
MODULE newbrain_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
INCLUDE "zcc_opt.def"
;--------
; Some scope definitions
;--------
EXTERN _main... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 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 "rpcserver.h"
#include "main.h"
#include "kernel.h"
#include "checkpoints.h"
#... |
//
// 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 the following disclaimer.
// * Redistributions in bin... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>fchmodat(fd, file, mode, flag) -> str
Invokes the syscall fchmodat.
See 'man 2 fchmodat' for more information.
Arguments:
fd(int): fd
file(char*): file
mode(mode_t): mode
flag(int): flag... |
// (C) Copyright 2006 Douglas Gregor <doug.gregor -at- gmail.com>
// Use, modification and distribution is subject to 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)
// Authors: Douglas Gregor
/** @file communicator.cpp
*
* Th... |
_setpriority: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
//#include "defs.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
setpriority... |
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
using std::string;
/*
* vector<T>
* list<T>
* forward_list<T> // a singly linked list
* deque<T> // a double ended queue
* set<T> // a set (map with just a key and no value)
* multiset<T> // a set in which value can occur many times
* map<K,... |
/* Copyright Institute of Sound and Vibration Research - All rights reserved */
#ifndef VISR_REVERBOBJECT_LATE_REVERB_PARAMETER_HPP_INCLUDED
#define VISR_REVERBOBJECT_LATE_REVERB_PARAMETER_HPP_INCLUDED
#include "export_symbols.hpp"
#include <libvisr/detail/compile_time_hash_fnv1.hpp>
#include <libvisr/parameter_type... |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... |
; A061669: a(n) = n*(mu(n) + 1), where mu(n) is the Moebius function A008683.
; 2,0,0,4,0,12,0,8,9,20,0,12,0,28,30,16,0,18,0,20,42,44,0,24,25,52,27,28,0,0,0,32,66,68,70,36,0,76,78,40,0,0,0,44,45,92,0,48,49,50,102,52,0,54,110,56,114,116,0,60,0,124,63,64,130,0,0,68,138,0,0,72,0,148,75,76,154,0,0,80,81,164,0,84,170,172,17... |
/**
* @file d_txt.cpp
* @brief txt dialog
*/
#include "compiler.h"
#include "resource.h"
#include "dialog.h"
#include "dosio.h"
#include "np2.h"
#include "sysmng.h"
#include "misc/DlgProc.h"
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "common/strres.h"
/** フィルター */
stati... |
.intel_syntax noprefix
.test_case_enter:
LEA R14, [R14 + 28] # instrumentation
MFENCE
JMP .bb0
.bb0:
NOP
NOP
CDQ
SETZ CL
ADD EDX, 117
REX ADD BL, BL
SETNLE AL
SUB RBX, RBX
TEST AL, 29
MOV RDX, 0 # instrumentation
OR RBX, 0x6d # instrumentation
AND RAX, 0xff # instrumentation
DIV RBX
{disp32} JNO .bb1
.bb1:
AND RCX, 0b1... |
; A211522: Number of ordered triples (w,x,y) with all terms in {1,...,n} and w + 5y = 2x.
; 0,0,0,1,2,3,4,6,8,11,13,16,19,23,27,31,35,40,45,51,56,62,68,75,82,89,96,104,112,121,129,138,147,157,167,177,187,198,209,221,232,244,256,269,282,295,308,322,336,351,365,380,395,411,427,443,459,476,493,511,528,546,564,583,602,621,... |
; A011908: [ n(n-1)(n-2)/26 ].
; 0,0,0,0,0,2,4,8,12,19,27,38,50,66,84,105,129,156,188,223,263,306,355,408,467,530,600,675,756,843,936,1037,1144,1259,1380,1510,1647,1793,1946,2109,2280,2460,2649,2847
bin $0,3
mul $0,36
div $0,156
|
SECTION smc_clib
SECTION smc_sound_bit
PUBLIC _bitfx_13
INCLUDE "config_private.inc"
EXTERN asm_bit_open
_bitfx_13:
; TSpace 3
ld a,230
ld (u2_FR_1 + 1),a
xor a
ld (u2_FR_2 + 1),a
call asm_bit_open
ld b,200
u2_loop:
dec h
jr nz, u2_jump
push af
ld a,(u2_FR_1 + 1... |
;===============================================================================
; 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... |
copyright zengfr site:http://github.com/zengfr/romhack
006CB0 tst.b ($4d7,A5)
006CB4 bne $6d4a
007302 tst.b ($4d7,A5) [base+4CD]
007306 bne $7392
0073DC tst.b ($4d7,A5)
0073E0 bne $7474
copyright zengfr site:http://github.com/zengfr/romhack
|
_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
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
; A085424: Number of ones in the symmetric signed digit expansion of n with q=2 (i.e., the representation of n in the (-1,0,1)_2 number system).
; 1,1,1,1,2,1,1,1,2,2,1,1,2,1,1,1,2,2,2,2,3,1,1,1,2,2,1,1,2,1,1,1,2,2,2,2,3,2,2,2,3,3,1,1,2,1,1,1,2,2,2,2,3,1,1,1,2,2,1,1,2,1,1,1,2,2,2,2,3,2,2,2,3,3,2,2,3,2,2,2,3,3,3,3,4,1,1... |
dnl S/390-64 mpn_lshift.
dnl Copyright 2011, 2012, 2014 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 redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published ... |
lc r4, 0x00000003
lc r5, 0x00000002
ges r6, r4, r5
halt
#@expected values
#r4 = 0x00000003
#r5 = 0x00000002
#r6 = 0x00000001
#pc = -2147483632
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
#pragma once
#include <crea/chain/crea_object_types.hpp>
#include <boost/multi_index/composite_key.hpp>
namespace crea { namespace plugins { namespace smt_test {
using namespace std;
using namespace crea::chain;
#ifndef CREA_SMT_TEST_SPACE_ID
#define CREA_SMT_TEST_SPACE_ID 13
#endif
enum smt_test_object_types
{
... |
/*
* Cg shader program header
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#ifndef __SP_CG_SHADERPROGRAM_H__
#define __SP_CG_SHADERPROGRAM_H__
#include "Base/spStandard.hpp"
#if defined(SP_COMPILE_WITH_CG)
#inc... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
;; ==++==
;;
;;
;; ==--==
#include "ksarm64.h"
#include "asmconstants.h"
#include "asmmacros.h"
IMPORT ExternalMethodFixupWorker
IMPORT PreStubWorker
IMPORT NDirectImport... |
SECTION code_crt_init
PUBLIC zx_00_output_rom_rst_init
zx_00_output_rom_rst_init:
ld a,2 ; upper screen
call 5633 ; open channel
|
; Object Mappings Subtype Frame Arttile
dbglistobj Obj_Ring, Map_Ring, 0, 0, make_art_tile($6BC,1,1)
dbglistobj Obj_Monitor, Map_Monitor, 6, 0, make_art_tile($4C4,0,0)
dbglistobj Obj_PathSwap, Map_PathSwap, 9, 1, make_art_tile($6BC,1,0)
dbglistobj Obj_PathSwap, Map_PathSwap,... |
#include "Platform.inc"
#include "PollChain.inc"
radix decimal
PollAfterDoorDummy code
global POLL_AFTER_DOOR
POLL_AFTER_DOOR:
return
end
|
dnl SPARC v9 32-bit mpn_addmul_1 -- Multiply a limb vector with a limb and add
dnl the result to a second limb vector.
dnl Copyright 1998, 2000, 2001, 2003 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
d... |
; A052681: E.g.f. (1-x)/(1-x-x^2-2x^3+2x^4).
; Submitted by Christian Krause
; 1,0,2,18,48,840,9360,90720,1653120,25764480,442713600,9540115200,201659673600,4744989849600,123531638630400,3325415917824000,97123590660096000,3021564701675520000,98526128957448192000
mov $2,$0
seq $0,52546 ; Expansion of (1-x)/(1-x-x^2-2*x... |
; A016996: a(n) = (7*n + 1)^4.
; 1,4096,50625,234256,707281,1679616,3418801,6250000,10556001,16777216,25411681,37015056,52200625,71639296,96059601,126247696,163047361,207360000,260144641,322417936,395254161,479785216,577200625,688747536,815730721,959512576,1121513121,1303210000,1506138481,1731891456,1982119441,22585305... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xe180, %rsi
lea addresses_A_ht+0xaf52, %rdi
nop
nop
nop
sub $7854, %rax
mov $43, %rcx
rep movsl
nop
nop
nop
nop
nop
and $25601, %rax
lea addresses_UC_ht+0xeb52, %r10
nop
nop
no... |
; A014829: a(1)=1, a(n) = 6*a(n-1) + n.
; 1,8,51,310,1865,11196,67183,403106,2418645,14511880,87071291,522427758,3134566561,18807399380,112844396295,677066377786,4062398266733,24374389600416,146246337602515,877478025615110,5264868153690681,31589208922144108,189535253532864671,1137211521197188050,6823269127183128325,409... |
; #########################################################################
;
; lines.asm - Assembly file for EECS205 Assignment 2
;
; Modified by: Ryan Hodin (NetID rah025)
;
; #########################################################################
.586
.MODEL FLAT,STDCALL
.STACK 4096
op... |
%include "../defaults_com.asm"
cli
xor ax,ax
mov ds,ax
getInterrupt 9, oldInterrupt9
setInterrupt 9, interrupt9
mov ax,cs
mov ds,ax
; Set mode.
mov ax,4
int 0x10
; Mode 0a
; 1 +HRES 0
; 2 +G... |
#include<iostream>
#include<vector>
#include<string>
using namespace std;
string s1, s2;
void kmp()
{
string new_s = s2+"#"+s1;
vector<int> prefix_func(new_s.size());
for(int i = 1; i < new_s.size(); i++)
{
int j = prefix_func[i-1];
while(j>0&&new_s[j]!=new_s[i]) j=prefix_func[j-1];
... |
@ This file was created from a .asm file
@ using the ads2gas.pl script.
.equ DO1STROUNDING, 0
.equ ARCH_ARM , 0
.equ ARCH_MIPS , 0
.equ ARCH_X86 , 0
.equ ARCH_X86_64 , 0
.equ HAVE_EDSP , 0
.equ HAVE_MEDIA , 0
.equ HAVE_NEON , 0
.equ HAVE_NEON_ASM , 0
.equ HAVE_MIPS32 , 0
.equ HAVE_DSPR2 , 0
.equ HAVE_MSA , ... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. ... |
keep MENU
****************************************************************
* ChemiGS *
****************************************************************
* A Drawing Program for Chemical Structures *
* (c) 1992-93 by Urs Hochstrasser *
* Buendtenweg 6 *
* 5105 AUENSTEIN (... |
# bdsx-asm
# I ported it C++ to TS
# and now, I'm porting it TS to asm
# How ridiculous
# I love C++, but C++ is too slow at compiling
# And compilers are too heavy.
# I may have to make my own compiler
# It's also my own assembler compiler
const JsUndefined 0
const JsNull 1
const JsNumber 2
const JsString 3
const J... |
; A179896: Sum of the numbers between k := n-th nonprime and 2k (like a jump in a Sieve of Eratosthenes).
; 0,18,45,84,108,135,198,273,315,360,459,570,630,693,828,900,975,1053,1134,1305,1488,1584,1683,1785,1890,2109,2223,2340,2583,2838,2970,3105,3384,3528,3675,3825,3978,4293,4455,4620,4788,4959,5310,5673,5859,6048,6240... |
; A084609: Coefficients of 1/(1-4x-8x^2)^(1/2); also, a(n) is the central coefficient of (1+2x+3x^2)^n.
; Submitted by Christian Krause
; 1,2,10,44,214,1052,5284,26840,137638,710828,3692140,19266920,100932220,530479640,2795917960,14771797424,78210099718,414862155980,2204273582236,11729283976136,62496686731924,333400654... |
$NOMOD51
;------------------------------------------------------------------------------
; startup33.a51
;
; Version:
; August 2004 Ver 2.0 - Updated include file names, modified comments.
;
; Dependencies:
; uPSD_5V and FREQ_OSC are used as input parameters to set up the BUSCON
; register appropriately... |
.386
.model flat,c
.code
; Reverser(DESC, SRC, SIZE)
Reverser PROC
; Routine prolog.
push ebp
mov ebp,esp
push esi
push edi
; Routine code.
xor eax, eax ; EAX = 0
mov edi, [ebp+8] ; EDI = Destination array
mov esi, [ebp+12] ; ESI = Source array
mov ecx, [ebp+16] ; ECX = Size
test ecx, ecx
lea esi, [esi... |
#pragma once
#include <VACio/chain/types.hpp>
#include <VACio/chain/exceptions.hpp>
#include "Runtime/Linker.h"
#include "Runtime/Runtime.h"
namespace VACio { namespace chain {
class apply_context;
class wasm_runtime_interface;
class controller;
struct wasm_exit {
int32_t code = 0;
};
namesp... |
;================================================================================
; Utility Functions
;================================================================================
!PROGRESSIVE_SHIELD = "$7EF416" ; ss-- ----
!BEE_TRAP_DISGUISE = "$7F5404"
;------------------------------------------------------------... |
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> rightSideView(TreeNode* root)
{
if (!root)
return {};
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x117a2, %rax
nop
nop
dec %rsi
movw $0x6162, (%rax)
cmp %rax, %rax
lea addresses_UC_ht+0x172c2, %r11
nop
nop
nop
nop
xor $28307, %rax
movl $0x61626364, (%r11)
nop
nop
nop
nop
... |
; A041022: Numerators of continued fraction convergents to sqrt(15).
; Submitted by Jon Maiga
; 3,4,27,31,213,244,1677,1921,13203,15124,103947,119071,818373,937444,6443037,7380481,50725923,58106404,399364347,457470751,3144188853,3601659604,24754146477,28355806081,194888982963,223244789044,1534357717227,1757602506271,12... |
!IBranchItem = #$887C
!ISetItem = #$8899
!ILoadSpecialGraphics = #$8764
!ISetGoto = #$8A24
!ISetPreInstructionCode = #$86C1
!IDrawCustom1 = #$E04F
!IDrawCustom2 = #$E067
!IGoto = #$8724
!IKill = #$86BC
!IPlayTrackNow = #$8BDD
!IJSR = #$8A2E
!ISetCounter8 = #$874E
!IGotoDecrement = #$873F
!IGotoIfDoorSet = ... |
; A027618: c(i,j) is cost of evaluation of edit distance of two strings with lengths i and j, when you use recursion (every call has a unit cost, other computations are free); sequence gives c(n,n).
; Submitted by Jamie Morken(w4)
; 1,4,19,94,481,2524,13483,72958,398593,2193844,12146179,67570078,377393953,2114900428,11... |
; unsigned char esx_f_chmod(unsigned char *filename, uint8_t attr_mask, uint8_t attr)
SECTION code_esxdos
PUBLIC esx_f_chmod
EXTERN asm_esx_f_chmod
esx_f_chmod:
pop af
pop de
pop bc
pop hl
push hl
push bc
push de
push af
ld b,e
jp asm_esx_f_chmod
|
; A156164: Decimal expansion of 17 + 12*sqrt(2).
; Submitted by Jon Maiga
; 3,3,9,7,0,5,6,2,7,4,8,4,7,7,1,4,0,5,8,5,6,2,0,2,6,4,6,9,0,5,1,6,3,7,6,9,4,2,8,3,6,0,6,2,5,0,4,5,2,3,3,7,6,8,7,8,1,2,0,1,5,6,8,5,5,8,8,8,7,8,9,7,4,1,5,4,5,2,8,4,4,6,6,2,0,4,6,5,0,4,1,1,9,3,1,6,9,8,8,7
mov $2,7
mov $3,$0
mul $3,3
lpb $3
add $6... |
; int fgetpos_unlocked_callee(FILE *stream, fpos_t *pos)
SECTION code_stdio
PUBLIC _fgetpos_unlocked_callee, l0_fgetpos_unlocked_callee
EXTERN asm_fgetpos_unlocked
_fgetpos_unlocked_callee:
pop hl
pop bc
ex (sp),hl
l0_fgetpos_unlocked_callee:
push bc
ex (sp),ix
call asm_fgetpos_unlocked
... |
; A115362: Row sums of ((1,x) + (x,x^2))^(-1)*((1,x)-(x,x^2))^(-1) (using Riordan array notation).
; 1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,3,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,3,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,3,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,3,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,3,1,1,1,2,1,1,1,2,1,1,1,2,1,1... |
GLOBAL _cli
GLOBAL _sti
GLOBAL picMasterMask
GLOBAL picSlaveMask
GLOBAL haltcpu
GLOBAL _hlt
GLOBAL halt
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq02Handler
GLOBAL _irq03Handler
GLOBAL _irq04Handler
GLOBAL _irq05Handler
GLOBAL _sirqHandler
GLOBAL _exception00Handler
GLOBAL _exception06Handler
EXTERN ir... |
; A192459: Coefficient of x in the reduction by x^2->x+2 of the polynomial p(n,x) defined below in Comments.
; Submitted by Christian Krause
; 1,3,17,133,1315,15675,218505,3485685,62607195,1250116875,27468111825,658579954725,17109329512275,478744992200475,14354443912433625,459128747151199125,15604187119787140875,561558... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.7 #12017 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
// Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Runtime.InteropServices.ComTypes
// Name: IConnectionPointContainer
// C++ Typed Name: mscorlib::System::Runtime::InteropServices::ComTypes::IConnectionPointContainer
#include <gtest/gt... |
_cat: 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: ... |
;;
;; Copyright (c) 2017-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... |
/*
* 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 under the Apache License, Version 2.0 (the
* "License"); you ... |
; ---------------------------------------------------------------------------
; Sprite mappings - chaos emeralds on the ending sequence
; ---------------------------------------------------------------------------
Map_ECha_internal:
dc.w M_ECha_1-Map_ECha_internal
dc.w M_ECha_2-Map_ECha_internal
dc.w M_ECha_3-Map... |
; A318458: a(n) = n AND A001065(n), where AND is bitwise-and (A004198) & A001065 = sum of proper divisors.
; Submitted by Simon Strandgaard
; 0,0,1,0,1,6,1,0,0,8,1,0,1,10,9,0,1,16,1,20,1,6,1,0,0,16,9,28,1,10,1,0,1,0,1,36,1,6,1,32,1,34,1,40,33,10,1,0,0,34,17,36,1,2,17,0,17,32,1,44,1,34,41,0,1,66,1,0,1,66,1,72,1,8,1,64,1... |
;
; jdclrss2-64.asm - colorspace conversion (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice i... |
#simple add and sub using a template from notebook
# a=b+c+d
# e=f-a
#fileName:simpleAdd
.data
.text
main:
li $s1,7 #c
li $s2,3 #d
li $s3,1 #b
li $s5,5 #f
add $t0, $s1, $s2
add $s0, $t0, $s3
sub $s4, $s5, $s0
#exit the program
li $v0,10
syscall
|
; A140404: a(n) = binomial(n+5, 5)*7^n.
; 1,42,1029,19208,302526,4235364,54353838,652246056,7419298887,80787921214,848273172747,8636963213424,85649885199788,830145041167176,7886377891088172,73606193650156272,676256904160810749,6126091955339109138,54794489156088698401,484498640959100070072,4239363108392125613130,3674114... |
; A152223: a(n) = -4*a(n-1) + 6*a(n-2) for n > 1 with a(0) = 1 and a(1) = -6.
; 1,-6,30,-156,804,-4152,21432,-110640,571152,-2948448,15220704,-78573504,405618240,-2093913984,10809365376,-55800945408,288059973888,-1487045568000,7676542115328,-39628441869312,204573020169216,-1056062731892736,5451689048586240,-28143132585... |
COMMENT ` ---------------------------------------------------------------- )=-
-=( Natural Selection Issue #1 ----------------------------- Win32.Imports )=-
-=( ---------------------------------------------------------------------- )=-
-=( 0 : Win32.Imports Features -------------------------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r15
push %r8
push %rax
push %rsi
// Load
lea addresses_WC+0x17266, %r11
nop
nop
xor %rax, %rax
mov (%r11), %r13d
nop
nop
cmp $37623, %rsi
// Faulty Load
mov $0x4a378d0000000c66, %r15
nop
add ... |
bits 64
default rel
global inb
global outb
global memcpy
global memset
global load_gdt
section .text
inb:
xor rax, rax
mov dx, di
in al, dx
ret
outb:
mov dx, di
mov ax, si
out dx, ax
ret
memcpy:
mov rcx, rdx
rep movsb
ret
memset:
mov rax, rsi
mov rcx, rdx
rep stosb
mov rax, rdi
ret
|
include 'a32.inc'
_start:
LOAD_R0 string
CALLF print
LOAD_R1 5
XOR R1, R1
VM_DEBUG
LOAD_R0 15
LOAD_R1 25
ADDR R0, R1
VM_DEBUG
LOAD_R0 R1
CMPR R0, R1
JMPF_E .equal
;; this line wont be printed
LOAD_R0 not_equal_string
CALLF print
.equal:
LOAD_R0 fib_test
CALLF print
CALLF do_fib_test
VM_EXIT
print:
PUSH R0
PUSH R1
.ploo... |
; A272000: Coinage sequence: a(n) = A018227(n)-7.
; 3,11,29,47,79,111,161,211,283,355,453,551,679,807,969,1131,1331,1531,1773,2015,2303,2591,2929,3267,3659,4051,4501,4951,5463,5975,6553,7131,7779,8427,9149,9871,10671,11471,12353,13235,14203,15171,16229,17287,18439,19591,20841,22091,23443,24795,26253,27711,29279,30847,3... |
dnl AMD64 mpn_mulmid_basecase
dnl Based on mul_basecase.asm from GMP 4.3.1, modifications are copyright
dnl (C) 2009, David Harvey. The original mul_basecase.asm was released under
dnl LGPLv3+, license terms reproduced below. These modifications are hereby
dnl released under the same terms.
dnl ========= Origin... |
;-----------------------------------------------------------------------------;
; Author: Ty Miller @ Threat Intelligence
; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4
; Version: 1.0 (2nd December 2011)
;-----------------------------------------------------------------------------;
[BITS 32]
; Input... |
; A011842: a(n) = floor(n(n-1)(n-2)/24).
; 0,0,0,0,1,2,5,8,14,21,30,41,55,71,91,113,140,170,204,242,285,332,385,442,506,575,650,731,819,913,1015,1123,1240,1364,1496,1636,1785,1942,2109,2284,2470,2665,2870,3085
bin $0,3
div $0,4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.