text stringlengths 1 1.05M |
|---|
; Super Mario Bros. 3 Full Disassembly by Southbird 2012
; For more info, see http://www.sonicepoch.com/sm3mix/
;
; PLEASE INCLUDE A CREDIT TO THE SOUTHBIRD DISASSEMBLY
; AND THE ABOVE LINK SOMEWHERE IN YOUR WORKS :)
;
; Original disassembler source generated by DCC6502 version v1.4
; (With labels, comments, and some s... |
aci -128 ; CE 80
aci 127 ; CE 7F
aci 255 ; CE FF
adc (hl) ; 8E
adc -128 ; CE 80
adc 127 ; CE 7F
adc 255 ; CE FF
adc a ; 8F
adc a... |
ASM370A1 CSECT
***********************************************************************
* ASM370A1.MLC - This is an HLASM Program *
* Provided by SimoTime Technologies *
* (C) Copyright 1987-2019 All Rights Reserved *
* Web... |
; A136336: a(n) = a(n-1) + 4*a(n-2) - 4*a(n-3) for n>3.
; 1,2,4,7,15,27,59,107,235,427,939,1707,3755,6827,15019,27307,60075,109227,240299,436907,961195,1747627,3844779,6990507,15379115,27962027,61516459,111848107,246065835,447392427,984263339,1789569707,3937053355,7158278827,15748213419,28633115307,62992853675,11453246... |
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
/* 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/. */
#include "BrowserStreamChild.h"
#i... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1ae37, %rsi
lea addresses_normal_ht+0x11eaf, %rdi
nop
nop
nop
add $41615, %rbp
mov $63, %rcx
rep movsw
nop
nop
sub $17822, %rcx
lea addresses_UC_ht+0x10237, %rsi
lea addresse... |
/*******************************************************************************
* Copyright 2016-2020 Intel Corporation
* Copyright 2018 YANDEX LLC
*
* 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 Licen... |
; Minesweeper
; By: Kevin Chen
; Due: 11/21/2018
org 100h
.model small
.stack
.data
msg db 'Move the cursor using the arrow keys. Press spacebar to select. DO NOT MOVE CURSOR TO A KNOWN NUMBER','$'
promptlose db 'BOOM! You Lose.','$'
prompt1 db 'Minesweeper By: Kevin Chen','$'
promptwin db 'Good Game,... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r8
push %rax
push %rdx
push %rsi
// Load
lea addresses_UC+0xb28c, %r15
nop
nop
nop
inc %r8
mov (%r15), %edx
nop
nop
nop
nop
nop
sub $64536, %r13
// Store
lea addresses_UC+0x3e6a, %rax
nop
cmp... |
// Copyright (C) 2020-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "kernels/palisade/palisade_bfv_kernel_executor.h"
#include <omp.h>
#include <stdexcept>
#include <utility>
#include "kernels/palisade/palisade_omp_utils.h"
namespace intel {
namespace he {
namespace palisade {
PalisadeBFV... |
; Return integer to SuperBASIC Interpreter
section utility
xdef bi_rtint
include dev8_keys_bv
include dev8_keys_qlv
;+++
; Return integer to SuperBASIC Interpreter.
; A function using this routine should load the value into d1 and jump to it.
;
; Entry ... |
#include "milestones/SecondMilestone.h"
SecondMilestone::~SecondMilestone() {}
void SecondMilestone::generateKeyPairs()
{
/**
* Milestone2
*/
int userLenght = 1024;
int rootCaLenght = 2048;
RSAKeyPair userKeyPair (userLenght);
RSAKeyPair rootCaKeyPair (rootCaLenght);
ByteArray userK... |
COMMENT @---------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All rights reserved
PROJECT:
MODULE:
FILE: amateurPeanut.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ----... |
;
; jfmmxint.asm - accurate integer FDCT (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assem... |
GLOBAL WhateverIWantToCallIt
EXTERN ExitProcess
EXTERN GetStdHandle
EXTERN WriteFile
SECTION .text
WhateverIWantToCallIt:
; stack
and rsp, -10h
sub rsp, 020h
mov rcx, -0Bh ; -11 is STD_OUTPUT_HANDLE
call GetStdHandle; stores handle in RAX
mov rcx, rax ; RCX is first ARG, ... |
; A266216: Triangle read by rows giving successive states of cellular automaton generated by "Rule 7" initiated with a single ON (black) cell.
; 1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)bner"
.byte 0
lda #%00011011
sta db
lda #%11000110
st... |
// Copyright (C) 2018 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 applic... |
; A195179: a(n) = 5*n - floor(2*n*sqrt(2)).
; 0,3,5,7,9,11,14,16,18,20,22,24,27,29,31,33,35,37,40,42,44,46,48,50,53,55,57,59,61,63,66,68,70,72,74,77,79,81,83,85,87,90,92,94,96,98,100,103,105,107,109,111,113,116,118,120,122,124,126,129,131,133,135,137,139,142,144,146,148,150,153,155,157,159,161,163,166,168,170,172,174,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xac68, %r9
clflush (%r9)
cmp $28707, %r15
movb (%r9), %cl
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_A_ht+0x14f68, %rsi
lea addresses_normal_ht+0x1c250, %rdi
nop
nop
nop
nop
... |
;
; Amstrad CPC Graphics Functions
;
; by Stefano Bodrato - Jul 2004
;
;
; $Id: undraw.asm,v 1.3 2009/06/22 21:44:17 dom Exp $
;
XLIB undraw
LIB draw
INCLUDE "cpcfirm.def"
INCLUDE "graphics/grafix.inc"
.hlsave defw 0
.undraw ld a,bcolor
call fir... |
list p=18f4550 ;modelo del microcontrolador
#include<p18f4550.inc> ;libreria de nombre de los registros
;aqui declaramos los bits de configuracion
CONFIG FOSC = XT_XT ; Oscillator Selection bits (XT oscillator (XT))
CONFIG PWRT = ON ; Power-up Timer Enable bit (PWRT ... |
; A267036: Decimal representation of the n-th iteration of the "Rule 85" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,16,63,256,1023,4096,16383,65536,262143,1048576,4194303,16777216,67108863,268435456,1073741823,4294967296,17179869183,68719476736,274877906943,1099511627776,4398046511103,1... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 The NovaCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "miner.h"... |
// Dummy constant to bypass an assembler bug
.def Zero 0x00
// ---------------------------------------------------------------------------
// Page summary (LoROM banks; 00-3f, 80-bf)
//*00 = NES RAM range
// 01 = "
//*02 = "
//*03 = "
//*04 = "
//*05 = "
//*06 = "
//*07 = "
// 08 = Extended RAM fo... |
; CALLER linkage for function pointers
XLIB HeapCalloc
LIB HeapCalloc_callee
XREF ASMDISP_HEAPCALLOC_CALLEE
.HeapCalloc
pop af
pop de
pop hl
pop bc
push bc
push hl
push de
push af
jp HeapCalloc_callee + ASMDISP_HEAPCALLOC_CALLEE
|
#include "../test.h"
#include <rxcpp/operators/rx-concat.hpp>
#include <rxcpp/operators/rx-buffer_count.hpp>
#include <rxcpp/operators/rx-buffer_time.hpp>
#include <rxcpp/operators/rx-buffer_time_count.hpp>
#include <rxcpp/operators/rx-take.hpp>
SCENARIO("buffer count partial window", "[buffer][operators]"){
GIVEN... |
/*******************************************************************************
* Copyright (c) 2018-, UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution.
*
* Contributors:
* Alexa... |
; A065929: (x,y) = (a(n),a(n+1)) are the solutions of (t(x)+t(y))/(1+xy)) = t(3) = 6, where t(n) denotes the n-th triangular number t(n) = n(n+1)/2.
; Submitted by Christian Krause
; 3,35,416,4956,59055,703703,8385380,99920856,1190664891,14188057835,169066029128,2014604291700,24006185471271,286059621363551,340870927089... |
// graph coloring
// dfs
// O(V+E)
class Solution {
public:
bool isBipartite(vector<vector<int>>& graph) {
int n = graph.size();
vector<int> colors(n,0);
for(int i = 0; i < n; i++)
if(!colors[i] && !dfs(graph,colors,1,i))
return false;
return tru... |
#include "Cuff/Cuff.hpp"
#include "definitions.h"
#include "commands.h"
#include <chrono>
#include <iostream>
#include "qbmove_communications.h"
#define CUFF_ID 1
Cuff::Cuff() : Device("cuff"), comm_port_(0) {}
Cuff::Cuff(std::string name, mel::uint32 comm_port) : Device(name), comm_port_(comm_port) {}
Cuff::~Cuff()... |
/*
* 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, software
* distribut... |
#include "DetailScreen.h"
#include <SFML/Graphics/Rect.hpp>
void DetailScreen::loadShader() {
if (!_planetShader) {
_planetShader = std::make_unique<sf::Shader>();
_planetShader->loadFromMemory(PLANET_FRAGMENT_SHADER, sf::Shader::Type::Fragment);
}
}
void aligneList(std::vector<Text>& texts) {
for (in... |
; A064650: a(n) = floor(a(n-1)/2) + a(n-2) with a(0)=1, a(1)=2.
; Submitted by Jon Maiga
; 1,2,2,3,3,4,5,6,8,10,13,16,21,26,34,43,55,70,90,115,147,188,241,308,395,505,647,828,1061,1358,1740,2228,2854,3655,4681,5995,7678,9834,12595,16131,20660,26461,33890,43406,55593,71202,91194,116799,149593,191595,245390,314290,402535... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "QMouseEvent"
#include "QColorDialog"
QImage img(500,500,QImage::Format_RGB888);
QColor color;
QRgb black = qRgb(0,0,0);
QRgb blue = qRgb(0,0,255);
QRgb green = qRgb(0,255,0);
QRgb red = qRgb(255,0,0);
int r=0,g=0,bl=0;
int initialx, initialy;
int res... |
;
;
; Generic graphics routines
; Self modifying code version
;
; Stefano Bodrato - 4/1/2007
;
;
; Sprite Rendering Routine
; original code by Patrick Davidson (TI 85)
;
;
; $Id: putsprite_smc.asm,v 1.3 2016-07-02 09:01:35 dom Exp $
;
PUBLIC putsprite
EXTERN pixel
EXTERN pixmode
... |
#pragma once
#include "toast/library.hpp"
#include "toast/math/math.hpp"
#include <string>
namespace Toast {
namespace Math {
struct Vec2D {
double x = 0, y = 0;
API Vec2D() {}
API Vec2D(double _x, double _y) : x(_x), y(_y) {}
API inline double magnitude() const { return sqrt(x*x + y*y); }
API... |
// push constant 7:
@7
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 8:
@8
D=A
@SP
A=M
M=D
@SP
M=M+1
// add:
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=D+M
@SP
A=M
M=D
@SP
M=M+1
|
VAL = $01
OLD = $FD
NEW = $FE
JMP RESET ; Sets up the inital conditions
LOOP: ADC OLD ; Adds the old value to last value
BCS RESET ; Resets if carry flags is set
LDX NEW ; Moves the last value to old
STX OLD
STA NEW ; Stores the new numbe... |
;*****************************************************************************
;* quant-a.asm: x86 quantization and level-run
;*****************************************************************************
;* Copyright (C) 2005-2018 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Fiona Gl... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
HDMATransferAttrMapAndTileMapToWRAMBank3::
ld hl, .Function
jp CallInSafeGFXMode
.Function:
decoord 0, 0, wAttrMap
ld hl, wScratchAttrMap
call PadAttrMapForHDMATransfer
decoord 0, 0
ld hl, wScratchTileMap
call PadTilemapForHDMATransfer
ld a, $0
ldh [rVBK], a
ld hl, wScratchTileMap
call HDMATransferToWRAMBa... |
//
// LandingPage.xaml.cpp
// Implementation of the LandingPage class
//
#include "pch.h"
#include "LandingPage.xaml.h"
using namespace NavigationMenuSample::Views;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::... |
// This file implements 3d hypervolume calculations using an altered
// version of the 2d archiver by Iris Hupkens. 2d hypervolume
// calculations are also included.
// Written by Iris Hupkens, 2013.
#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include <deque>
#include <limi... |
/*
* Copyright 2018-2021 Mahdi Khanalizadeh
*
* 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 o... |
// Copyright (c) 2018 The KUmsl Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "deterministicmns.h"
#include "providertx.h"
#include "specialtx.h"
#include "base58.h"
#include "chainparams.h"
#include ... |
; BUILT-IN ASSEMBLER MACROS
; NOTES:
; Some macros might trash the F register.
; Macros dealing with memory might trash the HL registers.
; Sets HALT bit to one in STATUS REGISTER
@macro
HALT:
inb f, 0x00
or f, 0x08
outb 0x00, f
@macro
CLF:
mw f, 0x00
@macro
SUB %r0, %x1:
clb
sbb %r0, %x1... |
; A273373: Squares ending in digit 6.
; 16,36,196,256,576,676,1156,1296,1936,2116,2916,3136,4096,4356,5476,5776,7056,7396,8836,9216,10816,11236,12996,13456,15376,15876,17956,18496,20736,21316,23716,24336,26896,27556,30276,30976,33856,34596,37636,38416,41616,42436,45796,46656,50176,51076,54756,55696,59536,60516,64516,65... |
//===- InstCombineMulDivRem.cpp -------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xc34a, %rdx
clflush (%rdx)
nop
nop
nop
nop
nop
dec %rbp
vmovups (%rdx), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %rsi
nop
nop
nop
nop
cmp $39537, %r10
lea address... |
-- 7 Billion Humans (2053) --
-- 51: Identify Yourselves --
-- Author: soerface
-- Size: 24
-- Speed: 19
step s
pickup c
if w == nothing:
write 1
drop
end
else:
if e == nothing:
write 10
drop
end
else:
write 0
endif
endif
a:
if w != 0:
mem1 = calc w + 1
write mem1
drop
end
endif
if e != 0:
mem1 = c... |
/*
* author: lucas_medeiros - github.com/medeiroslucas
* team: Lo and Behold ++
* created: 08-10-2019 11:33:11
* contest: 1238
* problem: A
* solved: True
*/
#include <bits/stdc++.h>
#define DEBUG false
#define coutd if(DEBUG) cout
#define debugf if(DEBUG) printf
#define ff first
#define ss second
#define ... |
;-------------------------------------------------------------
;
; SINGLE THREAD FLOATING POINT MULTI-PRECISION CALCULATOR
;
; Calculation of Pi using Stormer Formula
;
; File: calc-pi-st.asm
; Module: calc.asm, calc.o
; Exec: calc-pi
;
; Created 11/13/2014
; Last Edit 05/25/2015
;
;------------------------------... |
; Parses the given string of digits into a signed integer (Currently only accepts decimal digits).
; Input: ESI: The length of the string in bytes
; EDI: The address of the first character
; Output: EAX: The integer value that the string represents
; EBX: Whether the parse was a success (1: success, 0: fail)
; ... |
;******************************************************************************
;
; (c) 2010 by BECK IPC GmbH
; http://www.beck-ipc.com
;
;******************************************************************************
;
; Module: bsd36.asm
; Function: Dynamic linking of TCP/IP BSD API Function
;
;
;**************... |
; A290026: Number of 3-cycles in the n-halved cube graph.
; 0,0,4,32,160,640,2240,7168,21504,61440,168960,450560,1171456,2981888,7454720,18350080,44564480,106954752,254017536,597688320,1394606080,3229614080,7428112384,16978542592,38587596800,87241523200,196293427200,439697276928,980863156224
add $0,1
mov $3,2
pow $3,$... |
DOSSEG
.MODEL small
.CODE
jmp_addr DW ?
sp_save DW ?
ss_save DW ?
PUBLIC _cga_fire2
_cga_fire2 PROC
ARG fire_arr:WORD, rand_arr:WORD
; al, ah, dl, dh: vals, bx: offset to next line
; di: cga offset, bp: temp, cl: shift, ch: loop
; si: offset into fire array
... |
#include P16F84A.INC
__config _XT_OSC & _WDT_OFF & _PWRTE_ON
;File Registers used by delay subroutine
DELAY_COUNT1 EQU H'21'
DELAY_COUNT2 EQU H'22'
DELAY_COUNT3 EQU H'23'
DELAYER EQU H'24'
ORG h'0'
bsf STATUS,5 ;select bank 1
movlw B'00000000' ;set up port B as all outputs
movwf TRISB
movlw B'00000... |
; $Id: strchr.asm $
;; @file
; IPRT - No-CRT strchr - AMD64 & X86.
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of the... |
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 48, 16)
;Char Size: ( 6, 2)
;Sort Priorities: X char, Char line, Y char
;Data Outputted: Gfx
;Interleave: Column
;Mask: No
tile6:
DEFB 48,... |
;
; this is the entry point into the kernel
;
.model small
.dosseg
.data
extrn __edata : byte
extrn __end : byte
.code
public __acrtused
__acrtused = 9876h
extrn _main : near
entry: mov dx, dgroup
mov ds, dx
;
; zero out BSS
;
mov es, dx
lea di, __edata
lea cx, __en... |
; object_struct members (see macros/wram.asm)
const_def
const OBJECT_SPRITE ; 00
const OBJECT_MAP_OBJECT_INDEX ; 01
const OBJECT_SPRITE_TILE ; 02
const OBJECT_MOVEMENTTYPE ; 03
const OBJECT_FLAGS1 ; 04
const OBJECT_FLAGS2 ; 05
const OBJECT_PALETTE ... |
; AUTHOR : TASHIN AHMED
; PROGRAM -> ONLY FOR THE GIVEN TEST CASE
; 3 6 9 -> 21 :/
.MODEL SMALL
.STACK 100h
.DATA
NEWLINE DB 0AH,0DH,'$'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
;7X - 3Y + 2Z
MOV AH,1 ;BH X
INT 21... |
#include "CondFormats/EcalObjects/interface/EcalTPGGroups.h"
#include "CondFormats/EcalObjects/interface/EcalTPGWeightGroup.h"
#include "CondFormats/EcalObjects/interface/EcalTPGWeightIdMap.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <SimCalorimetry/EcalTrigPrimAlgos/interface/EcalFenixAmplitu... |
; A321341: An unbounded sequence which is 1 infinitely often, with the property that for any four consecutive terms the maximum term is the sum of the two minimum terms.
; 1,1,1,2,2,1,3,3,4,1,4,5,5,1,6,6,7,1,7,8,8,1,9,9,10,1,10,11,11,1,12,12,13,1,13,14,14,1,15,15,16,1,16,17,17,1,18,18,19,1,19,20,20,1,21,21,22,1,22,23,2... |
db DEX_NIDORINO ; pokedex id
db 61, 72, 57, 65, 55
; hp atk def spd spc
db POISON, POISON ; type
db 120 ; catch rate
db 118 ; base exp
INCBIN "gfx/pokemon/front/nidorino.pic", 0, 1 ; sprite dimensions
dw NidorinoPicFront, NidorinoPicBack
db LEER, TACKLE, HORN_ATTACK, NO_MOVE ; level 1 learnset
... |
; The Windozz Project
; Copyright (C) 2018-2019 by the Windozz authors.
bits 64
KSTACK equ 131072
section .startup
; kernel entry from boot loader
global _start
_start:
cld
; clear the BSS
extern bss
extern bssend
mov rdi, bss
mov rcx, bssend
sub rcx, rdi
xor rax, rax
... |
;*******************************************************************************
;GRAPHICS AND PRINTING ROUTINES
;*******************************************************************************
;*******************************************************************************
;error handling
;****************************... |
; A097788: a(n)=4a(n-1)+C(n+3,3),n>0, a(0)=1.
; 1,8,42,188,787,3204,12900,51720,207045,828400,3313886,13255908,53024087,212096908,848388312,3393554064,13574217225,54296870040,217187481490,868749927500,3474999711771,13899998849108,55599995398732,222399981597528,889599926393037,3558399705575424
lpb $0,1
mov $2,$0
ca... |
addi r2 r0 70
addi r1 r0 65
sw r1 48(r0)
sw r1 64(r0)
sw r1 80(r0)
sw r1 96(r0)
sw r1 112(r0)
sw r1 128(r0)
sw r1 144(r0)
sw r1 160(r0)
sw r2 176(r0) |
ori $ra,$ra,0xf
sll $3,$5,6
sll $3,$5,7
mflo $4
mult $2,$2
sll $2,$2,5
mfhi $1
mflo $2
mtlo $5
addu $6,$5,$3
mtlo $4
divu $4,$ra
multu $4,$6
div $4,$ra
mflo $5
srav $4,$5,$4
multu $4,$4
lui $4,16860
addiu $5,$2,26255
sb $4,10($0)
addu $4,$1,$6
mfhi $5
addu $4,$4,$4
sll $4,$4,1
mthi $1
mult $2,$2
div $6,$ra
addiu $4,$1,... |
PokemonTower6F_Script:
call EnableAutoTextBoxDrawing
ld hl, PokemonTower6TrainerHeaders
ld de, PokemonTower6F_ScriptPointers
ld a, [wPokemonTower6FCurScript]
call ExecuteCurMapScriptInTable
ld [wPokemonTower6FCurScript], a
ret
PokemonTower6Script_60b02:
xor a
ld [wJoyIgnore], a
ld [wPokemonTower6FCurScript],... |
/*
* Copyright 2017 The WebRTC 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 ... |
// Copyright 2019 The Fuchsia 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 "controller-device.h"
#include <lib/fidl/cpp/binding.h>
#include <stdint.h>
#include <zircon/assert.h>
#include <zircon/threads.h>
#include <zirc... |
.MODEL SMALL
include func.inc
.CODE
; void key_beep_off(void) ;
; void key_beep_on(void) ;
; 92/11/24
func KEY_BEEP_OFF
xor AX,AX
mov ES,AX
or byte ptr ES:[500H],20h
ret
EVEN
endfunc
func KEY_BEEP_ON
xor AX,AX
mov ES,AX
and byte ptr ES:[500H],NOT 20h
ret
EVEN
endfunc
END
|
/*
* Copyright Nick Thompson, 2017
* Use, modification and distribution are 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)
*/
#define BOOST_TEST_MODULE naive_monte_carlo_test
#include <cmath>
#include <ostream>
#includ... |
; A204467: Number of 3-element subsets that can be chosen from {1,2,...,6*n+3} having element sum 9*n+6.
; 1,8,25,50,85,128,181,242,313,392,481,578,685,800,925,1058,1201,1352,1513,1682,1861,2048,2245,2450,2665,2888,3121,3362,3613,3872,4141,4418,4705,5000,5305,5618,5941,6272,6613,6962,7321,7688,8065,8450,8845,9248,9661,... |
;------------------------------------------------------------------------------
; @file
; Transition from 32 bit flat protected mode into 64 bit flat protected mode
;
; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made avai... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__char_rand_add_84_bad.cpp
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: rand Set data to result of rand()
* GoodSource:... |
; A331261: List of pairs of numbers having certain properties (see Comments).
; 0,1,4,5,24,25,144,145,840,841,4900,4901,28560,28561,166464,166465,970224,970225,5654884,5654885,32959080,32959081,192099600,192099601,1119638520,1119638521,6525731524,6525731525,38034750624,38034750625,221682772224,221682772225
mov $5,2
mo... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea rcx, [rsp-0x10]
mov dword [rcx+0x00], 0x0
mov dword [rcx+0x04], 0x0
mov dword [rcx+0x08], 0x0
mov dword [rcx+0x0C], 0xFF
;set up ecx to be 8
movdqu xmm1, [rcx]
mov dword [rcx+0x00], 0xF0FFF000
mov dword [r... |
; A289207: a(n) = max(0, n-2).
; 0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,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
trn $0,2
|
Waveforms:: ; wave channel waveforms
dw .w0 ;0
dw .w1 ;1
dw .w2 ;2
dw .w3 ;3
dw .w4 ;4
dw .w5 ;5
dw .w6 ;6
dw .w7 ;7
dw .w8 ;8
dw .w0 ;9
dw .w0 ;a
dw .w0 ;b
dw .w0 ;c
dw .w0 ;d
dw .w0 ;e
dw .w0 ;f
.w0 ; saw wave
db $00,$11,$22,$33,$44,$55,$66,$77,$88,$99,$aa,$bb,$cc,$dd,$ee,$ff
.w1 ; thingamabob
... |
db DEX_STARYU ; pokedex id
db 30 ; base hp
db 45 ; base attack
db 55 ; base defense
db 85 ; base speed
db 70 ; base special
db WATER ; species type 1
db WATER ; species type 2
db 225 ; catch rate
db 106 ; base exp yield
INCBIN "pic/ymon/staryu.pic",0,1 ; 66, sprite dimensions
dw StaryuPicFront
dw StaryuPicBack
; attack... |
; A245804: a(n) = 2*3^n - 3*2^n.
; -1,0,6,30,114,390,1266,3990,12354,37830,115026,348150,1050594,3164070,9516786,28599510,85896834,257887110,774054546,2322950070,6970423074,20914414950,62749536306,188261191830,564808741314,1694476555590,5083530330066,15250792316790,45752779603554,137259144117030,411779042963826,1235340... |
; A246697: Row sums of the triangular array A246696.
; Submitted by Jamie Morken(s3)
; 1,5,16,34,67,111,178,260,373,505,676,870,1111,1379,1702,2056,2473,2925,3448,4010,4651,5335,6106,6924,7837,8801,9868,10990,12223,13515,14926,16400,18001,19669,21472,23346,25363,27455,29698,32020,34501,37065,39796
mov $2,$0
mov $3,$0
... |
//
// Copyright (c) 2012 Peter Dimov
//
// 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 <boost/shared_ptr.hpp>
struct X
{
};
int main()
{
boost::shared_ptr<X[]> px( new X[ 1 ] );
*px;
}
|
; A245829: Szeged index of the prism graph C_n X P_2 (n >=3).
; 51,192,285,648,847,1536,1881,3000,3531,5184,5941,8232,9255,12288,13617,17496,19171,24000,26061,31944,34431,41472,44425,52728,56187,65856,69861,81000,85591,98304,103521,117912,123795,139968,146557,164616,171951,192000,200121,222264,231211,255552,265365,2920... |
; A106147: A Levy dragon -Heighway's dragon two state 4-symbol substitution : q=1 state Levy dragon : q=0 state Heighway's dragon: Characteristic Polynomial:x^4-4*x^3+6*x^2-4*x.
; 1,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,4,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,4,3,2,2,1,2,1,1,4,2,1,1,4,1,4,4,3,4,3,3,2,3,2,... |
; void __CALLEE__ sp1_InsertCharStruct_callee(struct sp1_update *u, struct sp1_cs *cs)
; 01.2008 aralbrec, Sprite Pack v3.0
; ts2068 hi-res version
PUBLIC sp1_InsertCharStruct_callee
PUBLIC ASMDISP_SP1_INSERTCHARSTRUCT_CALLEE
EXTERN SP1AddSprChar
.sp1_InsertCharStruct_callee
pop hl
pop de
ex (sp),hl
ex ... |
; A006010: Number of paraffins (see Losanitsch reference for precise definition).
; 1,5,20,52,117,225,400,656,1025,1525,2196,3060,4165,5537,7232,9280,11745,14661,18100,22100,26741,32065,38160,45072,52897,61685,71540,82516,94725,108225,123136,139520,157505,177157,198612,221940,247285,274721,304400,336400,370881,407925,4... |
%include "../../defaults_bin.asm"
residentPortionEnd equ (tempBuffer + 19)
residentPortionLength equ (residentPortionEnd - residentPortion)
; Non-resident portion
; Set up stack
cli
mov ax,0x30
mov ss,ax
mov sp,0x100
sti
cld
mov si,residentPortion
mov di,0
mov ax,0xa000 - (15 + residentPortion... |
.data
message: .asciiz "\nwhile Loop is exited\n"
space: .asciiz " , "
.text
main:
addi $t0, $zero, 0
while:
bgt $t0, 10, exit
jal printNum
addi $t0, $t0, 1 # i = i + 1
j while
exit:
li $v0, 4
la $a0, message
syscall
# Exiting the programme
li $v0, 10
s... |
; A210729: a(n) = a(n-1) + a(n-2) + n + 3 with n>1, a(0)=1, a(1)=2.
; 1,2,8,16,31,55,95,160,266,438,717,1169,1901,3086,5004,8108,13131,21259,34411,55692,90126,145842,235993,381861,617881,999770,1617680,2617480,4235191,6852703,11087927,17940664,29028626,46969326,75997989,122967353,198965381,321932774,520898196,842831012... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
%ifndef SET_CONSOLE_TITLE
%define SET_CONSOLE_TITLE
%ifndef _SETCONSOLETITLE
extern _SetConsoleTitleA@4
%endif
;1 args (string addr)
;example push string\ call setTitle
;_SetConsoleTitleA@4 in kernel32
;std_addr = ADDR TEMP STORAGE
;str_tmp = 16 byte reserved
;std_handle = STD OUTPUT HANDLE
setConsoleTitle:
... |
; A211266: Number of integer pairs (x,y) such that 0<x<y<=n and x*y<=2n.
; 0,1,3,5,7,10,12,15,18,21,24,28,30,34,38,41,44,49,51,56,60,63,67,72,75,79,83,88,91,97,99,104,109,112,117,123,125,130,135,140,143,149,152,157,163,167,170,177,180,186,190,194,199,205,209,215,219,223
mov $2,$0
mov $5,$0
lpb $2
mov $0,$5
sub $2,... |
;=======================================================================================================================
; ;
; Name: socOS (System On Chip Operation System) ... |
asect 0
main:
ldi r2,3
ld r2,r1
while # waiting for the button to be pressed
tst r1
stays mi
ld r2,r1
wend
ld r1,r0
if # check if the cell is busy
tst r0
is nz
br main
fi
ldi r0,2
st r1,r0 # save the cross at the address of the pressed cell
cmp r1,r1
shla r1 # we form a request that the cross is ... |
;;
;; Copyright (c) 2012-2020, 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.