text stringlengths 1 1.05M |
|---|
; ***********************************************************
; * *
; * Copyright, (C) Honeywell Bull Inc., 1987 *
; * *
; * Copyright, (C) Honeywell Information Systems Inc., 1986 *
; * ... |
//Language: GNU C++
/*
ID: roben_71
PROG: acrobat
LANG: C++
*/
#include <iostream>
#include<stdio.h>
#include<stdlib.h>
#include <cmath>
#include<set>
#include<algorithm>
#include<vector>
#include<string>
#include<string.h>
#include<fstream>
#include<queue>
#include<deque>
#include<stack>
#define pb... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\scottsdocs\sourcecode\OpenGLboxes\code\glfwwrapper.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
PUBLIC ?__empty_global_delete@@YAXPAX@Z ; __empty_global_delete
PUBLIC ?__empty_globa... |
_ProcEhPrepare:
sub rsp, 0x1f8
vmovdqa [rsp+0x180], xmm6
vmovdqa [rsp+0x190], xmm7
vmovdqa [rsp+0x1a0], xmm8
vmovdqa [rsp+0x1b0], xmm9
vmovdqa [rsp+0x1c0], xmm10
vmovdqa [rsp+0x1d0], xmm11
vmovdqa xmm10, xword [xshufb_ror24]
vmovdqa xmm11, xword [xshufb_ror16]
vmovdqa xmm0, xword [s0]
vmovdqa xmm1, xword... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
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 %eb... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
/////////////////////////////////////////////////////////... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rax
lea addresses_A_ht+0x19ee, %r10
nop
nop
and %r8, %r8
mov (%r10), %rax
nop
nop
nop
nop
nop
mfence
pop %rax
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %rax
push %rbx
push %rsi
// Sto... |
#include <list>
#include "CostHeuristic.h"
bool CostHeuristic::calculateGreedy1Solution(AdjacencyListGraph<Stop, Link>* ptn, LinePool* linePool){
/**
* Sort lines due to greedy objective function
*/
struct LineSorter{
inline bool operator() (Line line1, Line line2){
return ((line1.getCost()/line1.getLength(... |
INCLUDE "config_private.inc"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_ERROR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; verbose mode
SECTION code_clib
SECTION code_error
PUBLIC error_enomem_mc
EXTERN __ENOMEM, errno_mc
pop hl
error_enomem_mc:
; set hl = -1
; set ca... |
#include "aquatroll.h"
#include "utils.h"
#include "rtc.h"
#include "log.h"
#include "sdi12_sensor.h"
#include "common.h"
namespace Aquatroll
{
/******************************************************************************
* Initialization
*****************************************************... |
#include <catch/catch.hpp>
#include <world/core.h>
using namespace world;
TEST_CASE("WorldFile", "[serialize]") {
WorldFile wf;
wf.addString("1", "1s");
wf.addInt("2", 1);
wf.addDouble("3", 3.2);
wf.addBool("4", true);
WorldFile a1, a2, a3, a4;
a1.addString("0", "0s");
a2.addStrin... |
; A009945: Coordination sequence for NiAs(2), As position.
; 1,6,18,42,74,114,162,222,290,366,450,546,650,762,882,1014,1154,1302,1458,1626,1802,1986,2178,2382,2594,2814,3042,3282,3530,3786,4050,4326,4610,4902,5202,5514,5834,6162,6498,6846,7202,7566,7938,8322,8714,9114,9522,9942,10370,10806,11250,11706,12170,12642,13122... |
/*
* Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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... |
INCLUDE "constants/SoundSystemNotes.inc"
INCLUDE "constants/SoundSystem.def"
INCLUDE "constants/SoundSystem.inc"
; tabs=8,hard
;***************************************************************************************************************************
;* default behaviors
;********************************************... |
//===--- CGBlocks.cpp - Emit LLVM Code for declarations ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
LMMasks label byte
word C_BLACK
Bitmap <71,100,0,BMF_MONO>
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0c
db 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xfc
db 0xaa, 0xb8, 0x1f, 0xfc, 0x0e, 0xaa, 0xaa, 0xaa,
0xa8
db 0xd5... |
.include "defaults_mod.asm"
table_file_jp equ "exe4-utf8.tbl"
table_file_en equ "bn4-utf8.tbl"
game_code_len equ 3
game_code equ 0x4234574A // B4WJ
game_code_2 equ 0x42345745 // B4WE
game_code_3 equ 0x42345750 // B4WP
card_type equ 1
card_id equ 32
card_no equ "032"
card_sub equ "Mod Card 032"
card_sub_x ... |
/**
* @file fontutils.cpp
* @brief help functions for font and char
* @author Yunhui Fu (yhfudev@gmail.com)
* @version 1.0
* @date 2016-08-19
* @copyright GPL/BSD
*/
#include "../inc/MarlinConfig.h"
#if HAS_SPI_LCD
#include "ultralcd.h"
#include "../MarlinCore.h"
#endif
#include "fontutils.h"
ui... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: egaLoader.asm
AUTHOR: Gene Anderson, Feb 24, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Desc... |
//
// $Id: proctran.cpp 1195 2009-08-14 22:12:04Z chambm $
//
//
// Darren Kessner <darren@proteowizard.org>
//
// Copyright 2009 Spielberg Family Center for Applied Proteomics
// Cedars Sinai Medical Center, Los Angeles, California 90048
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you... |
; A086275: Number of distinct Gaussian primes in the factorization of n.
; Submitted by Christian Krause
; 0,1,1,1,2,2,1,1,1,3,1,2,2,2,3,1,2,2,1,3,2,2,1,2,2,3,1,2,2,4,1,1,2,3,3,2,2,2,3,3,2,3,1,2,3,2,1,2,1,3,3,3,2,2,3,2,2,3,1,4,2,2,2,1,4,3,1,3,2,4,1,2,2,3,3,2,2,4,1,3,1,3,1,3,4,2,3,2,2,4,3,2,2,2,3,2,2,2,2,3
seq $0,33247... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x187e5, %rdx
nop
nop
add $61354, %r15
mov (%rdx), %r13w
nop
nop
sub $52950, %r10
lea addresses_WT_ht+0x1a011, %rsi
lea addresses_WC_ht+0xfe69, %rdi
nop
nop
dec %rbp
mov $45, ... |
/*
* This test verifies that basic logical operations
* (and, xor, or, not) work.
*/
lc r100, 0x10000000 // test result output pointer
lc r101, halt
lc r102, failure
lc r0, 0xD54B65C0
lc r1, 0xCE8870A8
lc r16, 0x10000004 // destination pointer
and r2, r0, r1
sw r16, r2
lc r3, 0xC4086080
cjmpne r102, r2... |
;-------------------
; test for in/out
;-------------------
.equ ioreg0 = 0x00 ; i/o register dummy
.equ ioreg1 = 0x01 ; i/o register dummy
.equ ioreg2 = 0x02 ; i/o register dummy
.equ ioreg3 = 0x1f ; i/o register dummy
.equ ioreg4 = 0x3c ; i/o register dummy
.equ spl = 0x3d ; stack po... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/behavior/TreeNodeDefinition.hpp>
namespace RED4ext
{
namespace AI::behavior { struct TreeNodeDefinition; }
namespace ... |
; A021979: Decimal expansion of 1/975.
; 0,0,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1,0,2,5,6,4,1
mov $2,1
lpb $0
sub $0,1
trn $0,1
sub $3,3
add $2,$3
mov $4,$2
add $... |
; A062953: Multiplicative with a(p^e) = -p.
; 1,-2,-3,-2,-5,6,-7,-2,-3,10,-11,6,-13,14,15,-2,-17,6,-19,10,21,22,-23,6,-5,26,-3,14,-29,-30,-31,-2,33,34,35,6,-37,38,39,10,-41,-42,-43,22,15,46,-47,6,-7,10,51,26,-53,6,55,14,57,58,-59,-30,-61,62,21,-2,65,-66,-67,34,69,-70,-71,6,-73,74,15,38,77,-78,-79,10,-3,82,-83,-42,85,86... |
// COMMAND #0A: BOOTSTRAP THE SYSTEM
@256 // set the start of the stack to addr 256
D=A // store the current address as a value
@SP // write value of D to "SP"
M=D // write value of D to current location
// COMMAND #0B: CALL Sys.init
@Sys.init$ret.11
D=A ... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; char *stpncpy(char * restrict s1, const char * restrict s2, size_t n)
;
; Copy at most n chars from string s2 to string s1, return address
; of first NUL char written to s... |
; A056653: Composite numbers together with 1 but excluding 4.
; Submitted by Jon Maiga
; 1,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104,105,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x483e, %r13
nop
nop
nop
sub $10350, %rbx
mov (%r13), %r14d
nop
nop
nop
nop
nop
xor $19629, %r10
lea addresses_WC_ht+0x1404b, %r15
nop
nop
nop
nop
nop
inc %rdx
m... |
; A077885: Expansion of (1-x)^(-1)/(1-2*x^3).
; 1,1,1,3,3,3,7,7,7,15,15,15,31,31,31,63,63,63,127,127,127,255,255,255,511,511,511,1023,1023,1023,2047,2047,2047,4095,4095,4095,8191,8191,8191,16383,16383,16383,32767,32767,32767,65535,65535,65535,131071,131071,131071,262143
div $0,3
mov $1,2
pow $1,$0
mul $1,2
sub $1,1
mo... |
; 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 ... |
Name: kart-drive-bak.asm
Type: file
Size: 13387
Last-Modified: '1991-11-07T08:14:06Z'
SHA-1: 0EFF95402AF37F1BD2226E7626B6942707142C23
Description: null
|
; Program to add two numbers without carry, uses memory address for A& variable
; You can use the BASIC loader below to POKE it into memory, and RUN it
; Compare assembled program to BASIC loader values
; Program from Pocket Computer Newsletter, Machine Language Programming, 1983
;
; 10:POKE &78C0,&B5,&03,&AE,&78,&D0,... |
; A193581: Sort-and-subtract: a(n) = n - A004185(n).
; Submitted by Simon Strandgaard
; 0,0,0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,18,9,0,0,0,0,0,0,0,0,27,18,9,0,0,0,0,0,0,0,36,27,18,9,0,0,0,0,0,0,45,36,27,18,9,0,0,0,0,0,54,45,36,27,18,9,0,0,0,0,63,54,45,36,27,18,9,0,0,0,72,63,54,45,36,27,18,9,0,0,81,72,63,54,45,36,27,18,... |
; Find the summation of primes below 2 Million
global _start
extern printf
extern asm_prime
section .text
_start:
; rbx represents our running summation, rcx is our counter
mov rbx, 2
mov rcx, 3
_trial_iter:
cmp rcx, 2000000
jg _com... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPointLocator.cxx
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 ... |
; A314886: Coordination sequence Gal.5.114.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.
; Submitted by Jamie Morken(l1)
; 1,5,9,14,19,23,27,32,37,41,46,51,55,60,65,69,73,78,83,87,92,97,101,106,111,115,119,124,129,133,138,143,147,1... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_memcpy_14.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml
Template File: sources-sink-14.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Initia... |
; Options:
; startup=1 --> RAM mode
; startup=2 --> ROM mode (position code at location 0 and provide minimal interrupt services)
;
; CRT_ORG_CODE = start address
; CRT_ORG_BSS = address for bss variables
; CRT_MODEL = 0 (RAM), 1 = (ROM, code copied), 2 = (ROM, code comp... |
; 0107 - STX Absolute
.segment "VECTORS"
.word $eaea
.word init
.word $eaea
.code
init:
stx $4000 ; Positive number, X will be $42.
stx $4000 ; Zero, X will be $00.
stx $4000 ; Negative number, X will be %10010101. |
; A022267: a(n) = n*(9*n + 1)/2.
; 0,5,19,42,74,115,165,224,292,369,455,550,654,767,889,1020,1160,1309,1467,1634,1810,1995,2189,2392,2604,2825,3055,3294,3542,3799,4065,4340,4624,4917,5219,5530,5850,6179,6517,6864,7220,7585,7959,8342,8734,9135,9545,9964,10392,10829,11275,11730,12194,12667,13149,13640,14140,14649,15167,1... |
_MuseumChallenge::
text "MOON STONE?"
para "I gotta steal-"
line "!"
para "You didn't hear"
line "that, right?"
para "I'm just an"
line "ordinary citizen!"
done
_MuseumPre::
text "You'll regret that!"
line "I'm calling backup!"
done
_MuseumDefeat::
text "Buzz off!"
done
_MuseumVictory::
text "I... |
; ::: include
#subruledef inner
{
a => 0x11
b => 0x22
c.w => 0x33
}
#ruledef test
{
ld {reg: inner}, {x} => 0x55 @ reg`8 @ x`8
}
; :::
ld a, 0xaa ; = 0x5511aa
; :::
ld b, 0xaa ; = 0x5522aa
; :::
ld c.w, 0xaa ; = 0x5533aa
; :::
ld ; error: no match
; :::
ld 0xaa; error: no match
; :::
ld a; error:... |
//============================================================================
// Copyright 2017 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privileges ... |
; double hypot(double x, double y)
SECTION code_fp_math48
PUBLIC am48_hypot
EXTERN am48_fabs, am48_dequate, am48_dmul, am48_dadd, am48_sqrt
am48_hypot:
; compute hypotenuse sqrt(x^2+y^2)
;
; enter : AC = double x
; AC' = double y
;
; exit : success
;
; AC' = sqrt(x^2+y... |
/*
Copyright (c) 2006-2014, Arvid Norberg & Daniel Wallin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.0 #11528 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
; A173191: a(n) = binomial(n + 6, 6)*9^n.
; 1,63,2268,61236,1377810,27280638,491051484,8207574804,129269303163,1939039547445,27922169483208,388371993720984,5243021915233284,68965903654222428,886704475554288360,11172476391984033336,138259395350802412533,1683511461036241140843,20202137532434893690116,23923583919988689896... |
; A046992: a(n) = Sum_{k=1..n} pi(k) (cf. A000720).
; 0,1,3,5,8,11,15,19,23,27,32,37,43,49,55,61,68,75,83,91,99,107,116,125,134,143,152,161,171,181,192,203,214,225,236,247,259,271,283,295,308,321,335,349,363,377,392,407,422,437,452,467,483,499,515,531,547,563,580,597,615,633,651,669,687,705,724,743,762,781,801,821,842,... |
; A173781: a(n) is the smallest entry of the n-th column of the matrix of Super Catalan numbers S(m,n).
; Submitted by Jon Maiga
; 1,2,4,10,28,72,198,572,1560,4420,12920,36176,104006,305900,869400,2521260,7443720,21360240,62300700,184410072,532740208,1560167752,4626704368,13432367520,39457579590,117177054540,3414874160... |
; A041057: Denominators of continued fraction convergents to sqrt(34).
; Submitted by Christian Krause
; 1,1,5,6,65,71,349,420,4549,4969,24425,29394,318365,347759,1709401,2057160,22281001,24338161,119633645,143971806,1559351705,1703323511,8372645749,10075969260,109132338349,119208307609,585965568785,705173876394,763770... |
; A217693: Numbers of distinct integers obtained from summing up subsets of {1, 1/2, 1/3, ..., 1/n}.
; 1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
lpb $0,1
sub $0,1
add $1,9
mov $2,1
... |
; $Id: bit_fx_mwr.asm,v 1.4 2016-04-23 21:06:32 dom Exp $
;
; 1 bit sound library - version for "memory write" I/O architectures
; sound effects module.
;
; Original code by Dominic Morris
; Adapted by Stefano Bodrato
;
SECTION code_clib
PUBLIC bit_fx
PUBLIC _bit_fx
I... |
;----------------------------------------------------------------------
; Nach: http://en.wikipedia.org/wiki/Assembly_language#Example_listing_of_assembly_language_source_code
; zstr_count:
; Speichere die Länge eines Strings, der sich an Adresse 'eax'
; befindet, in Register ecx. Der String muss mit einem Nullbyte
; ... |
DEVICE ZXSPECTRUM48
speed: EQU $00ff
start: EQU $8000
DISPLAY_FILE: EQU $4000
ORG start
ld hl,DISPLAY_FILE ; point to the beginning of DISPLAY_FILE (screen)
ld (hl),$80 ; draw pixel on screen
move:
ld a,(hl) ... |
// Copyright 2014 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 "extensions/browser/guest_view/web_view/web_view_apitest.h"
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/strings... |
/******************************************************************
* Copyright (C) 2015-2021 Henrik Holmdahl <henrikh.git@gmail.com>
******************************************************************/
.filenamespace Camera
//
.segment Zeropage "Camera zeropage data"
// Sprites with world x <= sprite c... |
; A314164: Coordination sequence Gal.5.302.2 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,5,11,16,22,28,34,40,45,51,56,61,67,72,78,84,90,96,101,107,112,117,123,128,134,140,146,152,157,163,168,173,179,184,190,196,202,208,213,219,... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Lcd.inc"
#include "TestFixture.inc"
radix decimal
extern lcdState
udata
global initialLcdState
global expectedIsLcdIdle
initialLcdState res 1
expectedIsLcdIdle res 1
IsLcdIdleTest code
global testArrange
testArrange:
fcall initialiseLcd
testAct... |
; A256137: a(2) = 1; a(3) = 4; for n >= 4, a(n) = 2 + Sum_{i=4..n} d(i), where d(i) = i for even i, d(i) = i-3 for odd i.
; 1,4,6,8,14,18,26,32,42,50,62,72,86,98,114,128,146,162,182,200,222,242,266,288,314,338,366,392,422,450,482,512,546,578,614,648,686,722,762,800,842,882,926,968,1014,1058,1106,1152,1202,1250,1302,135... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
; A021359: Decimal expansion of 1/355.
; 0,0,2,8,1,6,9,0,1,4,0,8,4,5,0,7,0,4,2,2,5,3,5,2,1,1,2,6,7,6,0,5,6,3,3,8,0,2,8,1,6,9,0,1,4,0,8,4,5,0,7,0,4,2,2,5,3,5,2,1,1,2,6,7,6,0,5,6,3,3,8,0,2,8,1,6,9,0,1,4,0,8,4,5,0,7,0,4,2,2,5,3,5,2,1,1,2,6,7
seq $0,173833 ; 10^n - 3.
div $0,355
mod $0,10
|
; A345488: Numbers that are the sum of eight squares in one or more ways.
; Submitted by Jon Maiga
; 8,11,14,16,17,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,8... |
;
; MSX specific routines
; by Stefano Bodrato, December 2007
;
; Internal function, call an EXTROM subroutine
;
;
; $Id: msxextrom.asm,v 1.1 2007/12/13 11:28:42 stefano Exp $
;
XLIB msxextrom
LIB msxrompage
defc EXTROM = $015f
msxextrom:
exx
ex af,af' ; store all regi... |
; A142069: Period length 9: repeat 3, 7, 2, 6, 1, 5, 0, 4, 8 .
; 3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5,0,4,8,3,7,2,6,1,5
mul $0,4
add $0,3
mod $0,9
mov $1,$0
|
TITLE 'bfp-021-multadd.asm: Test IEEE Multiply And Add'
***********************************************************************
*
*Testcase IEEE MULTIPLY AND ADD
* Test case capability includes IEEE exceptions trappable and
* otherwise. Test results, FPCR flags, the Condition code, and any
* DXC are saved for all... |
; A021191: Decimal expansion of 1/187.
; Submitted by Jon Maiga
; 0,0,5,3,4,7,5,9,3,5,8,2,8,8,7,7,0,0,5,3,4,7,5,9,3,5,8,2,8,8,7,7,0,0,5,3,4,7,5,9,3,5,8,2,8,8,7,7,0,0,5,3,4,7,5,9,3,5,8,2,8,8,7,7,0,0,5,3,4,7,5,9,3,5,8,2,8,8,7,7,0,0,5,3,4,7,5,9,3,5,8,2,8,8,7,7,0,0,5
seq $0,83812 ; 4n-1 is the digit reversal of n-1.
div $... |
#include<cstdio>
#include<algorithm>
using namespace std;
int s[1000000];
main()
{
int i,k,n;
while(scanf("%d",&n)==1)
{
for(i=0;i<n;i++)
scanf("%d",&s[i]);
scanf("%d",&k);
nth_element(s,s+k-1,s+n);
printf("%d\n",s[k-1]);
}
}
|
##################################################################
# The program performs insertion sort and statistical operations.
# Only $s registers have been used.
##################################################################
#######################
# Text Segment
#######################
.text
.glob... |
; A047615: Numbers that are congruent to {0, 5} mod 8.
; 0,5,8,13,16,21,24,29,32,37,40,45,48,53,56,61,64,69,72,77,80,85,88,93,96,101,104,109,112,117,120,125,128,133,136,141,144,149,152,157,160,165,168,173,176,181,184,189,192,197,200,205,208,213,216,221,224,229,232,237,240,245,248,253,256,261,264,269,272,277,280,285,288... |
; A142654: Primes congruent to 31 mod 56.
; Submitted by Jon Maiga
; 31,199,311,367,479,647,983,1039,1151,1319,1487,1543,1823,1879,2383,2551,2663,2719,2887,2999,3167,3391,3559,3671,3727,4007,4231,4567,4679,4903,5351,5407,5519,5743,6079,6247,6359,6863,7591,7703,7759,7927,8039,8263,8431,8543,8599,9103,9439,9551,9719,9887... |
#include <bits/stdc++.h>
using namespace std;
using ElementType = char;
struct TNode {
char data;
struct TNode *left;
struct TNode *right;
};
struct TNode *BinTreeFromOderings(char PreOder[], char InOder[], int n)
{
if (n == 0) {
return NULL;
}
struct TNode *BT = new (stru... |
_mkdir: 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 ... |
#include "controller.h"
//---------------------------------------------------------------------
t_eq2_controller::t_eq2_controller(t_eq2_model* eq2_model, t_eq2_view* eq2_view)
{
this->eq2_model = eq2_model;
this->eq2_view = eq2_view;
}
//---------------------------------------------------------------------
void t_e... |
//===- ThreadSafetyCommon.cpp -----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A267921: Decimal representation of the n-th iteration of the "Rule 243" elementary cellular automaton starting with a single ON (black) cell.
; 1,5,29,125,509,2045,8189,32765,131069,524285,2097149,8388605,33554429,134217725,536870909,2147483645,8589934589,34359738365,137438953469,549755813885,2199023255549,8796093022... |
; A047281: Numbers that are congruent to {0, 3, 6} mod 7.
; 0,3,6,7,10,13,14,17,20,21,24,27,28,31,34,35,38,41,42,45,48,49,52,55,56,59,62,63,66,69,70,73,76,77,80,83,84,87,90,91,94,97,98,101,104,105,108,111,112,115,118,119,122,125,126,129,132,133,136,139,140,143,146,147,150,153,154,157,160,161,164,167,168,171,174,175,178... |
RocketHideoutB1F_Script:
call RocketHideout1Script_44be0
call EnableAutoTextBoxDrawing
ld hl, RocketHideout1TrainerHeader0
ld de, RocketHideoutB1F_ScriptPointers
ld a, [wRocketHideoutB1FCurScript]
call ExecuteCurMapScriptInTable
ld [wRocketHideoutB1FCurScript], a
ret
RocketHideout1Script_44be0:
ld hl, wCurren... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x3335785C36350000",
"RBX": "0x3465785C33350000",
"RCX": "0x6663785C34650332",
"RDX": "0x3234785C66630F0B",
"RDI": "0x3234785C32340000",
"RSI": "0x3035785C32340000",
"RSP": "0x3564785C30350000",
"R8": "0x6532785C35640785",
"R9": "0x6435785C653... |
###############################################################################
# File : sllv.asm
# Project : MIPS32 MUX
# Author: : Grant Ayers (ayers@cs.stanford.edu)
#
# Standards/Formatting:
# MIPS gas, soft tab, 80 column
#
# Description:
# Test the functionality of the 'sllv' instruction.
#
... |
; A101102: Fifth partial sums of cubes (A000578).
; 1,13,82,354,1200,3432,8646,19734,41613,82225,153868,274924,472056,782952,1259700,1972884,3016497,4513773,6624046,9550750,13550680,18944640,26129610,35592570,47926125,63846081,84211128,110044792,142559824,183185200,233595912,295745736,371903169,464690733,577127850,7126... |
; A007925: a(n) = n^(n+1) - (n+1)^n.
; -1,-1,-1,17,399,7849,162287,3667649,91171007,2486784401,74062575399,2395420006033,83695120256591,3143661612445145,126375169532421599,5415486851106043649,246486713303685957375,11877172892329028459041,604107995057426434824791,32347093457545958193355601,1818933570553048451362803599,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x14bfe, %rsi
lea addresses_WC_ht+0x7a7e, %rdi
nop
xor %r15, %r15
mov $45, %rcx
rep movsl
nop
nop
nop
nop
add %r9, %r9
lea addresses_UC_ht+0x56fe, %rdx
nop
cmp %r14, %r14
m... |
title "Interlocked Support"
;++
;
; Copyright (c) 1989 Microsoft Corporation
;
; Module Name:
;
; intrlfst.asm
;
; Abstract:
;
; This module implements functions to support interlocked operations.
; Interlocked operations can only operate on nonpaged data.
;
; This module implements ... |
; A118304: Start with 25 and repeatedly reverse the digits and add 1 to get the next term.
; 25,53,36,64,47,75,58,86,69,97,80,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2
mov $2,$0
mov $... |
; void outp_callee(uint port, uchar byte)
; 09.2005 aralbrec
SECTION code_clib
PUBLIC outp_callee
PUBLIC _outp_callee
PUBLIC ASMDISP_OUTP_CALLEE
.outp_callee
._outp_callee
pop af
pop de
pop bc
push af
.asmentry
; bc = port
; e = byte
IF __CPU_R2K__|__CPU_R3K__
ld h,b
ld l,c
ld a,e
d... |
;
; file: sub1.asm
; Subprogram example program
;
; To create executable:
; Using djgpp:
; nasm -f coff sub1.asm
; gcc -o sub1 sub1.o driver.c asm_io.o
;
%include "asm_io.inc"
segment .data
prompt1 db "Enter a number: ", 0 ; don't forget nul terminator
prompt2 db "Enter another number: ", 0
outmsg1 db ... |
; sprite ids
; OverworldSprites indexes (see data/sprites/sprites.asm)
const_def
const SPRITE_NONE ; 00
const SPRITE_LUCAS ; 01
const SPRITE_LUCAS_BIKE ; 02
const SPRITE_GAMEBOY_KID ; 03
const SPRITE_RIVAL ; 04
const SPRITE_OAK ; 05
const SPRITE_RED ; 06
const SPRITE_BLUE ; 07
const SPRITE_BILL ; 08
const SP... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The GoByte Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coincontr... |
int OKG
,/*FR*/
P ,
q,Y
, hRN,
Ha4 ,
T , YvD8 ,W7YF, QT,t5D,
JFYc ,tPj,rBSJ , wtnD ,UEWT17,
Y9c
,
xFNC,
Y5 , faID,zA,wJxBJ9
,WrdVWfn ,YbI,
zM,c1i ,J ,MzwIcE0, V0N , vUtff , K4 , EJV/*JI*//*gS*/,jmr, C2x , qZH , z ,XY,e1R,//GW
UOS
, X2Nx
,tCp ,
Va,OcMm/*G4XS*/, /*L*/V ; void f_f0() {
{ volatile ... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Experimental.TerrainAPI... |
/*
* Copyright (c) 2013 Opposite Renderer
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
#pragma once
#include <vector>
#include <QObject>
class RenderServerConnection;
class QThread;
class RenderServerConnections : public QObje... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Structure_PlantSpeciesR_SpoiledMeat_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------------------... |
; void *w_array_pop_back(w_array_t *a)
SECTION code_adt_w_array
PUBLIC _w_array_pop_back
EXTERN asm_w_array_pop_back
_w_array_pop_back:
pop af
pop hl
push hl
push af
jp asm_w_array_pop_back
|
#ifndef GRABBER_VIDEO_SOURCE_H_
#define GRABBER_VIDEO_SOURCE_H_
#include "lepp3/Typedefs.hpp"
#include "lepp3/FrameData.hpp"
#include "lepp3/RGBData.hpp"
#include "VideoSource.hpp"
#include <pcl/io/openni2_grabber.h>
#ifdef LEPP3_ENABLE_TRACING
#include "lepp3/util/lepp3_tracepoint_provider.hpp"
#endif
namespace le... |
section .bss
resb 2 * 32
section file1data ; 自定义的数据段,未使用“传统”的.data
strHello db "Hello,world!", 0Ah
STRLEN equ $ - strHello
section file1text ; 自定义的代码段,未使用“传统“的.text
extern print ; 声明此函数在别的文件中,
; 告诉编译器在编译本文件时找不到此符号也没关系,在链接时会找到
global _start ; 连接器把_start当作程序的入口
... |
.data
vertex: .space 32
map: .space 256
.text
main:
li $v0, 5
syscall
move $s0, $v0
li $v0, 5
syscall
move $s1, $v0
li $t0, 0
initial:
beq $t0, $s0, initial_end
sll $t1, $t0, 2
li $t2, 1
sw, $t2, vertex($t1)
addi, $t0, $t0, 1
j initial
initial_end:
li $t0, 0
make_map:
beq $t0, $s1, make_end
li $v0, 5... |
.xlist
include kernel.inc
include gpfix.inc
include pdb.inc
include tdb.inc
include newexe.inc
include protect.inc
.list
.386
ERROR_NO_MORE_ITEMS EQU 259
;-----------------------------------------------------------------------
;----------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.