text stringlengths 1 1.05M |
|---|
%define BOOTLOADER
%ifdef BOOTLOADER
org 7c00h
%else
org 100h
%endif
section .bss
length resw 1
tmp resw 1
op equ 10h
op2 equ 1000h
section .text
start:
xor ax, ax
%ifdef BOOTLOADER
mov ds, ax
mov es, ax
%endif
;; 设置显示模式(可选)
;; 看起来很酷的一个模式
mov ax, 000Eh
int 10h
;; ... |
; A290631: a(n) = (n^2 + 1) * (2*n - 1).
; 2,15,50,119,234,407,650,975,1394,1919,2562,3335,4250,5319,6554,7967,9570,11375,13394,15639,18122,20855,23850,27119,30674,34527,38690,43175,47994,53159,58682,64575,70850,77519,84594,92087,100010,108375,117194,126479,136242,146495,157250,168519,180314,192647,205530,218975,232994... |
// (c) Copyright 1995-2019 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... |
; A004657: Expansion of g.f.: (1+x^3)*(1+x^4)/((1-x)*(1-x^2)^2*(1-x^4)).
; 1,1,3,4,9,11,19,24,37,45,63,76,101,119,151,176,217,249,299,340,401,451,523,584,669,741,839,924,1037,1135,1263,1376,1521,1649,1811,1956,2137,2299,2499,2680,2901,3101,3343,3564,3829,4071,4359,4624,4937,5225,5563,5876,6241,6579,6971,7336,7757,8149,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1af34, %rax
clflush (%rax)
nop
xor $32937, %rdi
and $0xffffffffffffffc0, %rax
vmovaps (%rax), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rbp
nop
nop
nop
add %rax, ... |
; A195015: Main axis of the square spiral whose edges have length A195013 and whose vertices are the numbers A195014.
; 0,2,12,24,44,66,96,128,168,210,260,312,372,434,504,576,656,738,828,920,1020,1122,1232,1344,1464,1586,1716,1848,1988,2130,2280,2432,2592,2754,2924,3096,3276,3458,3648,3840,4040,4242,4452,4664,4884,5106... |
;
; This file is automatically generated
;
; Do not edit!!!
;
; djm 12/2/2000
;
; ZSock Lib function: inet_ntoa
SECTION code_clib
PUBLIC inet_ntoa
PUBLIC _inet_ntoa
EXTERN no_zsock
INCLUDE "packages.def"
INCLUDE "zsock.def"
.inet_ntoa
._inet_ntoa
ld a,r_inet_ntoa
call_pkg(tcp_all)
ret nc
; We failed... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, Fall 2013
;
; int get_psg(int reg);
;
; Get a PSG register
;
;
; $Id: get_psg.asm,v 1.2 2015/01/19 01:33:04 pauloscustodio Exp $
;
PUBLIC get_psg
PUBLIC psg_patch2
PUBLIC psg_patch3
get_psg:
psg_patch2:
LD BC,$fffd
OUT (C),l
psg_patch3:
nop
nop... |
// Copyright (c) 2012-2015 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 "key.h"
#include "base58.h"
#include "script/script.h"
#include "uint256.h"
#include "util.h"
#include "utilstrenco... |
TrainerAIPointers:
table_width 3, TrainerAIPointers
; one entry per trainer class
; first byte, number of times (per Pokémon) it can occur
; next two bytes, pointer to AI subroutine for trainer class
; subroutines are defined in engine/battle/trainer_ai.asm
dbw 3, GenericAI
dbw 3, GenericAI
dbw 3, GenericAI
db... |
// Copyright 2020-2021, NVIDIA CORPORATION & AFFILIATES. 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... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "transformations/convert_precision.hpp"
#include <memory>
#include <vector>
#include <ngraph/opsets/opset4.hpp>
#include <ngraph/opsets/opset3.hpp>
#include <ngraph/opsets/opset1.hpp>
using namespace ngraph;
bool fuse_t... |
#include "of_message_packet_in.h"
using namespace std;
bool of_message_packet_in::display_payload = false;
// constructor
of_message_packet_in::of_message_packet_in() {
clear();
}
// clears the object
void of_message_packet_in::clear() {
buffer_id = 0;
in_port = 0;
reason_no_match = false;
reason_action = false... |
; A053438: Expansion of (1+x+2*x^3)/((1-x)*(1-x^2)).
; 1,2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,50,51,54,55,58,59,62,63,66,67,70,71,74,75,78,79,82,83,86,87,90,91,94,95,98,99,102,103,106,107,110,111,114,115,118,119,122,123,126,127,130,131,134,135,138,139,142,143,146,147,150,151,154,155,158,1... |
// 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/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
//for i = RO; i > 0; i--
// n... |
include stdmacro.i
_TEXT segment
public pj_copy_bytes
public pj_copy_structure
;*****************************************************************************
;* void pj_copy_bytes(void *src, void *dst, unsigned count)
;* void pj_copy_structure(void *src, void *dst, unsigned count)
;*
;* (note: pj_co... |
; A014283: a(n) = Fibonacci(n) - n^2.
; 0,0,-3,-7,-13,-20,-28,-36,-43,-47,-45,-32,0,64,181,385,731,1308,2260,3820,6365,10505,17227,28128,45792,74400,120717,195689,317027,513388,831140,1345308,2177285,3523489,5701731,9226240,14929056,24156448,39086725,63244465,102332555,165578460,267912532,433492588,701406797,1134901145... |
//*****************************************************************************
// Copyright 2017-2020 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://w... |
;*******************************************************************************
; mem.nasm - routines related to kernel memory management.
; Copyright (c) 2003 RET & COM Research.
;*******************************************************************************
module kernel.mem
%include "sys.ah"
%include "errors.ah"... |
# 操作系统启动时所需的指令以及字段
#
# 我们在 linker.ld 中将程序入口设置为了 _start,因此在这里我们将填充这个标签
# 它将会执行一些必要操作,然后跳转至我们用 rust 编写的入口函数
#
# 关于 RISC-V 下的汇编语言,可以参考 https://github.com/riscv/riscv-asm-manual/blob/master/riscv-asm.md
# %hi 表示取 [12,32) 位,%lo 表示取 [0,12) 位
.section .text.entry
.globl _start
# 目前 _start 的功能:将预留的栈空间写入 $sp,然后跳转至 rust... |
;
; MicroBEE pseudo graphics routines
; High Resolution version
;
; cls () -- clear screen
;
; Stefano Bodrato - 2016
;
;
; $Id: w_clsgraph.asm,v 1.3 2017/01/02 21:51:24 aralbrec Exp $
;
SECTION code_clib
PUBLIC cleargraphics
PUBLIC _cleargraphics
EXTERN swapgfxbk
... |
; carrega x"FF" em S (todos pxs em '1')
leaw $0, %A
movw %A, %S
notw %S
; linha 1
leaw $17389, %A ;16384
movw %S, (%A)
incw %A
movw %S, (%A)
incw %A
movw %S, (%A)
incw %A
movw %S, (%A)
leaw $17409, %A
movw %S, (%A)
incw %A
movw %S, (%A)
incw %A
movw %S, (%A)
i... |
#include <iostream>
using namespace std;
void rankSort(int A[], int n)
{
int U[n],R[n];
for(int i=0;i<n;i++)
{
R[i]=0;
}
for(int i=1;i<n;i++)
{
for(int j=0;j<i;j++)
{
if(A[j]<=A[i])
R[i]=R[i]+1;
else
R[j]=R[j]+1;
}
}
for(int j=0;j<n;j++)
{
U[R[j]]=A[j];
}
for(int j=0;j<n;j++)
{
A[j]=... |
; A175044: Lengths of runs of consecutive values in A168389(n).
; 1,1,1,2,1,2,1,2,2,1,2,2,1,2,2,2,1,2,2,1,2,2,2,2,2,1,2,1,2,2,2,2,1,2,1,2,2,2,2,2,1,2,1,2,1,2,2,2,1,2,2,1,2,2,2,2,1,2,2,1,2,2,2,1,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,2,2,1,2,2,2,2,2,2,2,2,1,2,2,2,2,2,1,2
lpb $0
mov $2,$0
sub $0,$0
cal $2,100... |
; branch if zero
LDI #0 ; 00010000 00000000 0x1000
ADI #1 ; 10000000 00000001 0x8001
BRZ #0x0 ; 01100000 00000000 0x6000
LDI #0 ; 00010000 00000000 0x1000
ADI #0 ; 10000000 00000000 0x8000
BRZ #0x0 ; 01100000 00000000 0x6000
|
/*
* Copyright 2010-2017 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" fil... |
/*
* Copyright (C) 1997 Martin Jones (mjones@kde.org)
* (C) 1997 Torben Weis (weis@kde.org)
* (C) 1998 Waldo Bastian (bastian@kde.org)
* (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009... |
title "Thunks"
;++
;
; Copyright (c) 1989 Microsoft Corporation
;
; Module Name:
;
; thunk.asm
;
; Abstract:
;
; This module implements all Win32 thunks. This includes the
; first level thread starter...
;
; Author:
;
; Mark Lucovsky (markl) 28-Sep-1990
;
; Revision History:
;
;--... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2010 Klaus Spanderen
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and... |
/* Copyright (c) 2010-2019, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QTextStream>
#include <QDateTime>
#include <QFileInfo>
#include <QSet>
#include "viewconverter.h... |
; Copyright 1990 Central Point Software, Inc.
; All rights reserved.
;-----------------------------------------------------------------------------
; Modified April 19, 1988. Removed dumb 'stand_alone' stuff. GWD.
; Modified main warning msg to recommend DISKFIX. 6.0 BETA 02-14-90 GWD.
; Tiny changes for easier tra... |
;
; NASCOM Graphics Functions
;
; swapgfxbk () -- foo routine for fake swapping
;
; Stefano Bodrato - June 2003
;
;
; $Id: swapgfxbk.asm,v 1.4 2017-01-02 22:57:58 aralbrec Exp $
;
SECTION code_clib
PUBLIC swapgfxbk
PUBLIC _swapgfxbk
PUBLIC swapgfxbk1
... |
;###############################################################################
;# File name: KERNEL/CPU.ASM
;# DESCRIPTION: CPU CORE SETUP PROCEDURE
;# AUTHOR: RAMSES A.
;###############################################################################
;#
;# UPCR OPERATING SYSTEM FOR X86_64 ARCHITECTURE
;# CO... |
/* Copyright 2019 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... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
Arr DB 10
PrefixArr DB 10
MOV BX,OFFSET Arr
MOV [BX],1H
MOV [BX+1],1H
MOV DI,2
MOV SI,0H
MOV CX,8
LOOP:
MOV DX,[BX+SI]
INC SI
ADD DX,[BX+SI]
MOV [B... |
; A192430: Constant term of the reduction by x^2->x+1 of the polynomial p(n,x) defined below in Comments.
; Submitted by Christian Krause
; 1,1,3,9,33,113,403,1409,4977,17489,61619,216809,763377,2686881,9458787,33295297,117206177,412579681,1452347043,5112464521,17996645761,63350804881,223004208243,785007489729,27633419... |
// STL-like templated tree class.
//
// Copyright (C) 2001-2014 Kasper Peeters <kasper@phi-sci.com>
// Distributed under the GNU General Public License version 3.
//
// Special permission to use tree.hh under the conditions of a
// different license can be requested from the author.
/** \mainpage tree.hh
\author ... |
; A061253: Let G_n be the elementary Abelian group G_n = (C_3)^n; a(n) is the number of times the number 1 appears in the character table of G_n.
; 5,33,261,2241,19845,177633,1595781,14353281,129153285,1162300833,10460471301,94143533121,847289672325,7625600673633,68630386930821,617673424981761,5559060652648965,50031545... |
; A080468: a(n) = A080578(n)-2n.
; 0,1,0,1,2,1,0,1,2,1,2,3,2,1,0,1,2,1,2,3,2,1,2,3,2,3,4,3,2,1,0,1,2,1,2,3,2,1,2,3,2,3,4,3,2,1,2,3,2,3,4,3,2,3,4,3,4,5,4,3,2,1,0,1,2,1,2,3,2,1,2,3,2,3,4,3,2,1,2,3,2,3,4,3,2,3,4,3,4,5,4,3,2,1,2,3,2,3,4,3,2,3,4,3,4
mov $3,2
mov $5,$0
lpb $3,1
mov $0,$5
sub $3,1
add $0,$3
cal $0,87... |
TITLE lab01
;Programmer: Marcus Ross
;Due: 21 Feb, 2014
;Description: This program uses hardcoded values for expenses and sales to calculate profit.
.MODEL SMALL
.286
.STACK 64
;==========================
.DATA
moSale DW 785, 842, 518 ;monthly sales
moOpExp DW 268, 304, 243 ;monthly operating expenses... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "MergerType.h"
#include <sstream>
#include <string>
/**
* Extract a minimal but identifiable name tag from the given r... |
; A007421: Liouville's function: parity of number of primes dividing n (with multiplicity).
; 2,1,1,2,1,2,1,1,2,2,1,1,1,2,2,2,1,1,1,1,2,2,1,2,2,2,1,1,1,1,1,1,2,2,2,2,1,2,2,2,1,1,1,1,1,2,1,1,2,1,2,1,1,2,2,2,2,2,1,2,1,2,1,2,2,1,1,1,2,1,1,1,1,2,1,1,2,1,1,1,2,2,1,2,2,2,2,2,1,2,2,1,2,2,2,2,1,1,1,2,1,1,1,2,1,2,1,1,1,1,2,1,1,... |
; A135179: p^5 - p^3 - p^2. Exponents are the prime numbers in decreasing order and p is the n-th prime.
; 20,207,2975,16415,159599,368927,1414655,2468879,6423647,20485919,28598399,69291935,115785599,146927087,229238975,418043807,714715439,844365599,1349819855,1803866399,2072677247,3076557119,3938461967,5583346559,8586... |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef NNTI_STATE_MACHINE_HPP_
#define NNTI_STATE_MACHINE_HPP_
namespace nnti {
namespace core {
class state_... |
; A057655: The circle problem: number of points (x,y) in square lattice with x^2 + y^2 <= n.
; Submitted by Jon Maiga
; 1,5,9,9,13,21,21,21,25,29,37,37,37,45,45,45,49,57,61,61,69,69,69,69,69,81,89,89,89,97,97,97,101,101,109,109,113,121,121,121,129,137,137,137,137,145,145,145,145,149,161,161,169,177,177,177,177,177,185,... |
%ifndef EXE_LENGTH
%include "../UltimaPatcher.asm"
%include "include/uw1.asm"
defineAddress 134, 0x0ED0, pushCrystalBallPitchBound
defineAddress 134, 0x0EDB, pushPlayerPitchBound
%endif
[bits 16]
startPatch EXE_LENGTH, \
change how far up or down the player may look using keys
; pitchBound is now defined i... |
; Z88 Small C+ Run Time Library
; Long functions
; "8080" mode
;
SECTION code_crt0_sccz80
PUBLIC l_long_asr
PUBLIC l_long_asro
; Entry: dehl = long
; c = shift couter
.l_long_asro
ld a,c
jp entry
; Entry: l = counter
; sp + 2 = long to shift
.l_long_asr
... |
//
// Copyright yutopp 2013 - .
//
// 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)
//
#ifndef RILL_SEMANTIC_ANALYSIS_ANALYZER_HPP
#define RILL_SEMANTIC_ANALYSIS_ANALYZER_HPP
#include <memory>
#include <vector>
... |
; FILE *open_memstream_callee(char **bufp, size_t *sizep)
SECTION code_stdio
PUBLIC _open_memstream_callee, l0_open_memstream_callee
EXTERN asm_open_memstream
_open_memstream_callee:
pop hl
pop de
ex (sp),hl
l0_open_memstream_callee:
push ix
call asm_open_memstream
pop ix
ret
|
/*
* Copyright (C) 2011 Google 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 condit... |
#include "../include/Timing.h"
#include <SDL\SDL_timer.h>
namespace cogs
{
/*********** High-resolution Timer ***********/
HRTimer::HRTimer()
{
start();
}
HRTimer::~HRTimer()
{
}
void HRTimer::start(bool _reset /*= true*/)
{
if (_reset)
{
m_start = HRTimePoint::clock::now();
... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
f1C00
.BYTE $18,$18,$18,$FF,$FF,$18,$18,$18 ;.BYTE $18,$18,$18,$FF,$FF,$18,$18,$18
; CHARACTER $00, GRID
; 00011000 **
; 00011000 **
... |
; A117412: Sum of the interior angles of an n-sided polygon, in gradians.
; 200,400,600,800,1000,1200,1400,1600,1800,2000,2200,2400,2600,2800,3000,3200,3400,3600,3800,4000,4200,4400,4600,4800,5000,5200,5400,5600,5800,6000,6200,6400,6600,6800,7000,7200,7400,7600,7800,8000,8200,8400,8600
mul $0,200
add $0,200
|
; $Id: ceill.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; IPRT - No-CRT ceill - 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/o... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xa25a, %rsi
lea addresses_D_ht+0x147e2, %rdi
clflush (%rsi)
nop
nop
inc %r13
mov $109, %rcx
rep movsl
xor %r8, %r8
lea addresses_D_ht+0x10aaa, %r11
nop
nop
nop
nop
nop
xor... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018, The Parsicoin developers
//
// Bytecoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either ver... |
; A106825: Trajectory of 1 under the morphism 1->1222, 2->2111.
; 1,2,2,2,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,1,2,2,2,1,2,2,2,1,2,2,2,2,1,1,1,1,2,2,2,1,2,2,2,1,2,2,2,2,1,1,1,1,2,2,2,1,2,2,2,1,2,2,2,2,1,1,1,1,2,2,2,1,2,2,2,1,2,2,2,1,2,2,2,2,1,1,1,2,1,1,1,2,1,1,1,1,2,2,2
lpb $0
lpb $0
dif $0,4
lpe
div $0,4
cmp $... |
; A147748: Row sums of Riordan array ((1-3x+x^2)/(1-4x+3x^2), x(1-2x)/(1-4x+3x^2)).
; 1,2,6,20,70,250,900,3250,11750,42500,153750,556250,2012500,7281250,26343750,95312500,344843750,1247656250,4514062500,16332031250,59089843750,213789062500,773496093750,2798535156250,10125195312500
seq $0,189315 ; Expansion of 5*(1-3*x... |
; A292540: Number of 3-cycles in the n-Sierpinski tetrahedron graph.
; 4,20,80,320,1280,5120,20480,81920,327680,1310720,5242880,20971520,83886080,335544320,1342177280,5368709120,21474836480,85899345920,343597383680,1374389534720,5497558138880,21990232555520,87960930222080,351843720888320,1407374883553280
mov $1,4
pow ... |
; void *memrchr(const void *s, int c, size_t n)
SECTION code_clib
SECTION code_string
PUBLIC memrchr_callee, l0_memrchr_callee
EXTERN asm_memrchr
memrchr_callee:
pop hl
pop bc
pop de
ex (sp),hl
l0_memrchr_callee:
ld a,e
jp asm_memrchr
|
; void sp1_IterateUpdateSpr(struct sp1_ss *s, void *hook2)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_IterateUpdateSpr_callee
EXTERN asm_sp1_IterateUpdateSpr
_sp1_IterateUpdateSpr_callee:
pop af
pop hl
pop ix
push af
jp asm_sp1_IterateUpdateSpr
|
// 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 may... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Font Driver
FILE: nimbus.asm
AUTHOR: Gene Anderson
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 11/03/89 Initial r... |
#include"../localedef.h"
namespace fast_io_i18n
{
namespace
{
inline constexpr std::size_t numeric_grouping_storage[]{3};
inline constexpr lc_all lc_all_global{.identification={.name=tsc("dv_MV"),.encoding=tsc(FAST_IO_LOCALE_ENCODING),.title=tsc("Dhivehi Language Locale for Maldives"),.source=tsc("fast_io"),.addres... |
format ELF64 executable 3
entry start
include 'procs.inc'
segment readable writable
buffer rb 255
segment readable executable
start:
xorc rax
xorc rdx
xorc rdi
xorc rsi
xorc rbx
.socket:
mov rdx, 6 ; IPPROTO_TCP
mov rsi, 1 ; SOCK_STREAM
mov rdi, 2 ; PF... |
// Copyright 2020 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 <lib/syslog/cpp/macros.h>
// clang-format off
#include <Weave/DeviceLayer/internal/WeaveDeviceLayerInternal.h>
#include <Weave/DeviceLayer/intern... |
andi $1,$4,28922
subu $6,$4,$3
sh $6,10($0)
srav $3,$4,$3
sll $5,$5,16
addiu $4,$0,2122
xor $6,$4,$3
xor $3,$3,$3
xori $3,$4,1199
srav $1,$5,$3
srlv $5,$5,$3
andi $1,$2,40285
sltiu $3,$1,-18447
sw $4,8($0)
or $3,$5,$3
lhu $3,0($0)
addiu $0,$5,-31873
addiu $3,$4,-28804
srlv $3,$3,$3
sb $4,4($0)
slti $3,$5,-15108
addiu $... |
;
; TIKI-100 graphics routines
; by Stefano Bodrato, Fall 2015
;
; Modified by Frode van der Meeren
;
; void __FASTCALL__ gr_defmod(uchar mode)
;
; Set graphics mode
; (1 = BW mode, 2 = four color mode, 3 = 16 color mode)
;
; Changelog:
;
; v1.3 - FrodeM
; * Use address $F04D to store graphics mode instead of dedica... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
; uint8_t z80_inp(uint16_t port)
SECTION code_z80
PUBLIC _z80_inp_fastcall
EXTERN asm_z80_inp
defc _z80_inp_fastcall = asm_z80_inp
|
; A100776: a(n) = 997 * n + 1009.
; 1009,2006,3003,4000,4997,5994,6991,7988,8985,9982,10979,11976,12973,13970,14967,15964,16961,17958,18955,19952,20949,21946,22943,23940,24937,25934,26931,27928,28925,29922,30919,31916,32913,33910,34907,35904,36901,37898,38895,39892,40889,41886,42883,43880,44877,45874,46871,47868,48865,... |
li s0, 0x10000000
li t0, 91
li t1, 22
sw t0, 0x4(s0)
sw t1, 0x8(s0)
flw f1,0x4(s0)
flw f2,0x8(s0)
fsqrt.s t2,f2
fadd.s f6,f2,f2
fsgnj.s f3,f2,f1
fsgnjn.s f4,f3,f2
fsgnjx.s f5,f2,f4
fmin.s f7, f5,f6
fmax.s f7, f5,f6 |
#include "SampleAnalyzer/User/Analyzer/user.h"
using namespace MA5;
bool user::Initialize(const MA5::Configuration& cfg,
const std::map<std::string,std::string>& parameters)
{
// Initializing PhysicsService for MC
PHYSICS->mcConfig().Reset();
// definition of the multiparticle "hadronic"
... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
MOV AX, 2
ADD AX, 4
ADD AX, 6
ADD AX, 8
ADD AX, 10
ADD CX, AX
ret
|
//------------------------------------------------------------------------------
//
// Copyright (c) 2008 - 2009, Apple Inc. 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 distribut... |
; A072352: a(n) is the largest n-digit Fibonacci number.
; Submitted by Jamie Morken(s3)
; 8,89,987,6765,75025,832040,9227465,63245986,701408733,7778742049,86267571272,956722026041,6557470319842,72723460248141,806515533049393,8944394323791464,99194853094755497,679891637638612258,7540113804746346429,83621143489848422977... |
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYING, ... |
; A285073: 0-limiting word of the morphism 0->10, 1-> 010.
; 0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0... |
/*******************************************************************\
Module: Symbolic Execution
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
/// \file
/// Symbolic Execution
#include "goto_symex.h"
#include "expr_skeleton.h"
#include "symex_... |
/*
All modification made by Intel Corporation: © 2016 Intel Corporation
All contributions by the University of California:
Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
All rights reserved.
All other contributions:
Copyright (c) 2014, 2015, the respective contributors
All rights rese... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %rax
push %rbp
push %rcx
push %rdi
// Faulty Load
lea addresses_US+0x197b9, %rbp
nop
nop
sub $33371, %rax
mov (%rbp), %rcx
lea oracles, %r10
and $0xff, %rcx
shlq $12, %rcx
mov (%r10,%rcx,1), %rcx
pop %rdi
pop %rcx... |
; A285054: Numbers whose sum of digits are congruent (mod 10) to the string 1,2, ..., 9.
; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20,21,22,23,24,25,26,27,38,39,30,31,32,33,34,35,36,47,48,49,40,41,42,43,44,45,56,57,58,59,50,51,52,53,54,65,66,67,68,69,60,61,62,63,74,75,76,77,78,79,70,71,72,83
mov $2,$0
div $0,9... |
HoOhChamber:
ld hl, wPartySpecies
ld a, [hl]
cp HO_OH ; is Ho-oh the first Pokémon in the party?
jr nz, .done ; if not, we're done
call GetMapAttributesPointer ; pointless?
ld de, EVENT_WALL_OPENED_IN_HO_OH_CHAMBER
ld b, SET_FLAG
call EventFlagAction
.done
ret
OmanyteChamber:
call GetMapAttributesPointer ; p... |
; https://adventofcode.com/2020/day/2 (part 1)
OPT listoff : DEVICE ZXSPECTRUMNEXT : MMU 0 7, 0, $0000
inputFile: ; load the input.txt into virtual device memory for processing
INCBIN "input.txt"
DB 10 ; fake <EOL> to make sure there's one
inputEnd:
PHASE_NUM1 EQU 0 ; reading policy number1
P... |
; A253715: Indices of centered heptagonal numbers (A069099) which are also hexagonal numbers (A000384).
; Submitted by Christian Krause
; 1,2160,34417,139317984,2220346081,8987960385360,143243407002961,579849276161764800,9241205157168647617,37408396193312133889584,596187109366334725327921,2413365271435489729590825120,3... |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
printf(1, "fork test OK\n");
}
int main(void) {
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
;--------------------------------------------------------
; Category 4 Function 77H Get Keyboard Type
;--------------------------------------------------------
;
;
;
IOKGETKEYBOARDTYPE PROC NEAR
RET
IOKGETKEYBOARDTYPE ENDP
|
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: w_circle_callee.asm $
;
; Usage: circle(int x, int y, int radius, int skip);
SECTION code_graphics
PUBLIC circle_callee
PUBLIC _c... |
; uchar __FASTCALL__ *zx_aaddrcup(void *attraddr)
; Stefano, 2014.12
SECTION code_clib
PUBLIC zx_aaddrcup
PUBLIC _zx_aaddrcup
EXTERN HRG_LineStart
.zx_aaddrcup
._zx_aaddrcup
; enter : hl = valid attribute address
; exit : hl = new attribute address up one character
; TODO: carry set if off screen
IF FORlam... |
;
;
; Z88 Maths Routines
;
; C Interface for Small C+ Compiler
;
; 7/12/98 djm
;double cos(double)
;Number in FA..
SECTION code_fp
IF FORz88
INCLUDE "target/z88/def/fpp.def"
ELSE
INCLUDE "fpp.def"
ENDIF
PUBLIC cos
EXTERN fsetu... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1693, %rsi
nop
nop
nop
xor %r13, %r13
movl $0x61626364, (%rsi)
nop
nop
nop
nop
nop
and $4074, %r10
lea addresses_A_ht+0x104d3, %r8
nop
nop
nop
sub %rbp, %rbp
mov (%r8), %si
ad... |
MODULE console_vars
PUBLIC __zx_screenmode
PUBLIC __zx_32col_font
PUBLIC __zx_32col_udgs
PUBLIC __zx_64col_font
EXTERN CRT_FONT
EXTERN CRT_FONT_64
SECTION data_clib
__zx_32col_font: defw CRT_FONT
__zx_64col_font: defw CRT_FONT_64
__zx_32col_udgs: defw 65368
SECTION bss_clib
; TS2068 s... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rax
push %rbx
push %rcx
push %rdx
lea addresses_A_ht+0x1eca5, %r14
nop
xor %rax, %rax
mov $0x6162636465666768, %r11
movq %r11, (%r14)
and %r14, %r14
lea addresses_D_ht+0x158f1, %r12
nop
nop
nop
nop
cmp %rbx, %rbx
mov (%r12), %r11
nop
nop
n... |
; A291778: a(n) = 2^floor(2*n/3).
; 1,1,2,4,4,8,16,16,32,64,64,128,256,256,512,1024,1024,2048,4096,4096,8192,16384,16384,32768,65536,65536,131072,262144,262144,524288,1048576,1048576,2097152,4194304,4194304,8388608,16777216,16777216,33554432,67108864,67108864,134217728,268435456,268435456,536870912,1073741824,107374182... |
; A250751: Number of (n+1) X (4+1) 0..2 arrays with nondecreasing x(i,j)-x(i,j-1) in the i direction and nondecreasing x(i,j)+x(i-1,j) in the j direction.
; 203,663,2123,6663,20603,63063,191723,580263,1751003,5273463,15861323,47665863,143161403,429811863,1290090923,3871583463,11617371803,34857358263,104582560523,313768... |
; int ffs_fastcall(int i)
SECTION code_string
PUBLIC _ffs_fastcall
EXTERN asm_ffs
defc _ffs_fastcall = asm_ffs
|
//===------- SemaTemplateVariadic.cpp - C++ Variadic Templates ------------===/
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//===-----------------------------------------------------------... |
; A140724: Period 10: 1, 5, 9, 7, 7, 9, 5, 1, 3, 3 repeated.
; 1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7,9,5,1,3,3,1,5,9,7,7
add $0,1
mov $1,1
lpb $0
sub $0,1
mod $1,1... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/parser/expression/constant_expression.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/common/types/value.hpp"
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.