text stringlengths 1 1.05M |
|---|
; A030859: [ exp(1/20)*n! ].
; 1,2,6,25,126,756,5298,42387,381485,3814852,41963378,503560537,6546286983,91648017770,1374720266550,21995524264802,373923912501650,6730630425029702,127881978075564346,2557639561511286935
add $0,1
mov $2,1
lpb $0
mul $2,$0
sub $0,1
div $1,20
add $1,$2
lpe
mov $0,$1
|
; A178875: Partial sums of round(4^n/9).
; 0,0,2,9,37,151,606,2426,9708,38835,155343,621377,2485512,9942052,39768214,159072861,636291449,2545165803,10180663218,40722652878,162890611520,651562446087,2606249784355,10424999137429,41699996549724,166799986198904,667199944795626,2668799779182513,10675199116730061,42700796466... |
//===- JITLoaderGDB.h - Register objects via GDB JIT interface -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6ba2, %r11
xor $61083, %r8
movl $0x61626364, (%r11)
dec %rdi
lea addresses_D_ht+0x14782, %rbp
dec %rdi
mov $0x6162636465666768, %r12
movq %r12, (%rbp)
nop
nop
and $14683, %r11
lea addr... |
; char __FASTCALL__ *strupr(char *s)
; change string to upper case
; 01.2007 aralbrec
; enter: hl = char *s
; exit : hl = char *s
; uses : af
PUBLIC strupr
PUBLIC ASMDISP_STRUPR
EXTERN asm_toupper
.strupr
push hl
.loop
ld a,(hl)
or a
jr z, exit
call asm_toupper
ld (hl),a
inc hl
jp lo... |
;/*
; * FreeRTOS Kernel V10.2.0
; * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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 restri... |
; A120178: a(n)=ceiling( sum_{i=1..n-1} a(i)/6), a(1)=1.
; 1,1,1,1,1,1,1,2,2,2,3,3,4,4,5,6,7,8,9,11,13,15,17,20,23,27,32,37,43,50,59,69,80,93,109,127,148,173,202,235,275,320,374,436,509,594,693,808,943,1100,1283,1497,1747,2038,2377,2774,3236,3775,4404,5138,5995,6994
seq $0,279077 ; Maximum starting value of X such tha... |
;;
;; Copyright (c) 2012-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... |
//===-- Driver.cpp ----------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
; (C) Pedro Reis dos Santos, 2003
; Linux system calls:
; user-visible error numbers are in the range -1 - -124: see <asm-i386/errno.h>
; if ((unsigned long)(res) >= (unsigned long)(-125)) {
; errno = -(res);
; res = -1;
; }
segment .data
global errno
errno dd 0
segment .text
sys5:
mov edi, [esp+20]
sys4:
mov e... |
# Paul McKenney's Statistical Counter (PerfBook 5.2)
#
# Summation (checker) thread: EXIT 1 if global counter is not incremented 2
# times by 2 threads (heap[0] != 2 * 2).
#
# steps:
# * total = 5
#
# template parameter:
# * 4 = expected global counter value
#
CHECK 0 # start checker thread
ADDI 4 # expected r... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1764c, %rsi
lea addresses_UC_ht+0x1cc68, %rdi
nop
nop
nop
sub %r14, %r14
mov $108, %rcx
rep movsb
nop
and %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push... |
class Solution {
public:
vector<vector<int>> merge(vector<vector<int>> &intervals) {
sort(intervals.begin(), intervals.end());
vector<vector<int>> ans;
if (intervals.empty()) {
return ans;
}
ans.push_back(intervals[0]);
for (int i = 1; i < intervals.size(); i++) {
if (ans.back()[1] >= intervals[i]... |
; int esxdos_f_close(uchar handle)
SECTION code_clib
SECTION code_esxdos
PUBLIC _esxdos_f_close
EXTERN _esxdos_f_close_fastcall
_esxdos_f_close:
pop af
pop hl
push hl
push af
jp _esxdos_f_close_fastcall
|
;-------------------------------------------------------------------------------
;
; qSMW - Macro/Remap.asm
;
;-------------------------------------------------------------------------------
macro RemapByte(address, old, new)
if read1(<address>) == <old>
pushpc
org <address> : db <new>
pullpc
else
print "War... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2022, the Ginkgo authors
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 co... |
OUTPUT "op_BIT_CB.bin"
;;; generate shift instructions: #CB00 .. #CB3F
LUA ALLPASS
instructions = { 'rlc', 'rrc', 'rl', 'rr', 'sla', 'sra', 'sli', 'srl' }
registers = { 'b', 'c', 'd', 'e', 'h', 'l', '(hl)', 'a' }
for ii = 1, #instructions do
for rr = 1, #registers do
... |
; The MIT License (MIT)
;
; Copyright (c) 2014 Microsoft
;
; 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 rights
; to use, copy, modify... |
.ORIG x3000
THIS_IS_JUST_A_LABEL
BR LABEL ;
AND R4, R3, R2 ;
LABEL
RET
DATA .FILL x3000 ;
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x0000
x000... |
// Copyright (c) 2018 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 <interfaces/wallet.h>
#include <amount.h>
#include <consensus/validation.h>
#include <interfaces/chain.h>
#include <inte... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
/*
* Copyright (c) 2008 Radu Bogdan Rusu <rusu -=- cs.tum.edu>
*
* 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
*... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../rwbase.h"
#include "../rwerror.h"
#include "../rwplg.h"
#include "../rwpipeline.h"
#include "../rwobjects.h"
#include "../rwengine.h"
#include "../rwanim.h"
#include "../rwplugins.h"
#include "rwps2.h"
#include "rwps2plg.h"
#i... |
; $Id: memchr.asm $
;; @file
; IPRT - No-CRT memchr - 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... |
Name: c-select.asm
Type: file
Size: 515
Last-Modified: '1992-02-13T07:47:48Z'
SHA-1: FA2EA0217526552D1F8E01A3B83BEA60D25E9836
Description: null
|
; A192491: Molecular topological indices of the complete tripartite graphs K_{n,n,n}.
; 24,240,864,2112,4200,7344,11760,17664,25272,34800,46464,60480,77064,96432,118800,144384,173400,206064,242592,283200,328104,377520,431664,490752,555000,624624,699840,780864,867912,961200
add $0,1
mul $0,3
mov $1,$0
bin $1,2
mul $0,$... |
; A047296: Numbers that are congruent to {3, 4, 6} mod 7.
; Submitted by Christian Krause
; 3,4,6,10,11,13,17,18,20,24,25,27,31,32,34,38,39,41,45,46,48,52,53,55,59,60,62,66,67,69,73,74,76,80,81,83,87,88,90,94,95,97,101,102,104,108,109,111,115,116,118,122,123,125,129,130,132,136,137,139,143
mul $0,36
div $0,27
mul $0,6... |
;
; Copyright (c) 2022 Phillip Stevens
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
; feilipu, January 2022
;
;----------------------------------------------... |
#include <string_view>
#include <optional>
#include <exception>
#include "mailio/message.hpp"
#include "mailio/smtp.hpp"
#include "spdlog/spdlog.h"
#include "config.h"
using namespace std;
using mailio::dialog_error;
using mailio::mail_address;
using mailio::message;
using mailio::smtp_error;
using ma... |
// Copyright (C) 2002-2007 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CFPSCounter.h"
#include "irrMath.h"
namespace irr
{
namespace video
{
CFPSCounter::CFPSCounter()
: FPS(60), Primitive(0)... |
; A249735: Odd bisection of A003961: Replace in 2n-1 each prime factor p(k) with prime p(k+1).
; 1,5,7,11,25,13,17,35,19,23,55,29,49,125,31,37,65,77,41,85,43,47,175,53,121,95,59,91,115,61,67,275,119,71,145,73,79,245,143,83,625,89,133,155,97,187,185,161,101,325,103,107,385,109,113,205,127,203,425,209,169,215,343,131,235... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1cb88, %rbx
nop
nop
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %r9
movq %r9, %xmm6
movups %xmm6, (%rbx)
nop
nop
nop
nop
nop
inc %r9
lea addresses_UC_ht+0xeb06, %rsi
nop
i... |
// Copyright (c) 2018, The Monero Project
// 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
// con... |
; A045506: Inscribe 2 spheres of curvature 2 inside sphere of curvature -1, continue to inscribe spheres where possible; sequence gives list of curvatures.
; -1,2,3,5,6,8,9,11,12,14,15,17,18,20,21,23,24,26,27,29,30,32,33,35,36,38,39,41,42,44,45,47,48,50,51,53,54,56,57,59,60,62,63,65,66,68,69,71,72,74,75,77,78,80,81,83,... |
; A154617: Eleven times hexagonal numbers: 11*n*(2*n-1).
; 0,11,66,165,308,495,726,1001,1320,1683,2090,2541,3036,3575,4158,4785,5456,6171,6930,7733,8580,9471,10406,11385,12408,13475,14586,15741,16940,18183,19470,20801,22176,23595,25058,26565,28116,29711,31350,33033,34760,36531,38346,40205,42108,44055,46046,48081,50160,... |
//===-- PPCHazardRecognizers.cpp - PowerPC Hazard Recognizer Impls --------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonDesktop/CMain
FILE: cmainManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 8/89 Initial version
DESCR... |
#include "ur_modern_driver/ros/controller.h"
ROSController::ROSController(URCommander& commander, TrajectoryFollower& follower,
std::vector<std::string>& joint_names, double max_vel_change, std::string tcp_link)
: controller_(this, nh_)
, robot_state_received_(false)
, joint_interfac... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x116cc, %r13
and $15186, %r11
vmovups (%r13), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r9
nop
and %r8, %r8
lea addresses_WC_ht+0x2fec, %rsi
nop
xor $28532, %r12
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x19cd6, %rsi
lea addresses_WC_ht+0x3796, %rdi
nop
nop
and %r12, %r12
mov $29, %rcx
rep movsq
nop
nop
nop
nop
xor %r14, %r14
lea addresses_WT_ht+0x11562, %r8
nop
nop
nop
nop
no... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D22 move.l D0, (A4)+
004D24 move.l D0, (A4)+
022CFE move.w ($8,A0), ($48,A6)
022D04 move.w ($46,A6), ($5a,A6) [base+824]
022D3A move.w ($48,A6), D1
022D3E tst.w D0 [base+824]
022D66 move.w (... |
; size_t getline_unlocked(char **lineptr, size_t *n, FILE *stream)
SECTION code_clib
SECTION code_stdio
PUBLIC _getline_unlocked
EXTERN asm_getline_unlocked
_getline_unlocked:
pop af
pop hl
pop de
pop ix
push hl
push de
push hl
push af
jp asm_getline_unlocked
|
; A258810: a(n) = n^9 - 1.
; 0,511,19682,262143,1953124,10077695,40353606,134217727,387420488,999999999,2357947690,5159780351,10604499372,20661046783,38443359374,68719476735,118587876496,198359290367,322687697778,511999999999,794280046580,1207269217791,1801152661462
add $0,1
mov $1,$0
pow $1,9
sub $1,1
|
; uint8_t hbios_a_dehl(uint16_t func_device, uint32_t arg) __smallc
SECTION code_clib
SECTION code_arch
PUBLIC hbios_a_dehl
EXTERN asm_hbios_a
.hbios_a_dehl
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp asm_hbios_a
|
; A194115: Sum{floor(j*sqrt(12) : 1<=j<=n}; n-th partial sum of Beatty sequence for sqrt(12).
; 3,9,19,32,49,69,93,120,151,185,223,264,309,357,408,463,521,583,648,717,789,865,944,1027,1113,1203,1296,1392,1492,1595,1702,1812,1926,2043,2164,2288,2416,2547,2682,2820,2962,3107,3255,3407,3562,3721
mov $18,$0
mov $20,$0
add... |
/* Copyright (C) 2018-2020 by Arm Limited. All rights reserved. */
#include "Logging.h"
#include <algorithm>
#include <cerrno>
#include <cstdint>
#include <fcntl.h>
#include <unistd.h>
namespace lib {
int pipe_cloexec(int pipefd[2])
{
const int result = pipe2(pipefd, O_CLOEXEC);
if (result ... |
# -------------------------------------
#
# Sudoku Solver
#
# -------------------------------------
#
# MIPS assembly language program to
# brute-force solve a Sudoku puzzle.
#
# To solve a puzzle, enter its values
# in the PGrid array below, leaving 0's
# in indices where no value is present.
# If a puzzle ... |
; A028128: Expansion of 1/((1-4x)(1-5x)(1-10x)(1-12x)).
; Submitted by Jon Maiga
; 1,31,623,10355,155151,2182251,29453143,386424115,4968644351,62947998971,788663289063,9797059846275,120896875524751,1484089915071691,18142382512443383,221041773758074835
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
dif $2,26
sub $... |
%ifndef __COPY_ASM
%define __COPY_ASM
%include "../common.asm"
%include "../datastack.asm"
memcpy: ; ( dst src num -- )
push r0
push r1
push r2
push r3
dpop r2
dpop r1
dpop r0
loop r3, r2, .loop, .loop_end
.loop:
mov [r0++], [r1++]
.loop_end:
pop r3
pop r2
... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* rsFileRename.c - server routine that handles the fileRename
* API
*/
/* script generated code */
#include "fileRename.h"
#include "miscServerFunct.hpp"
#in... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rbp
push %rcx
push %rdx
push %rsi
lea addresses_WT_ht+0xdb7c, %rcx
nop
nop
nop
nop
add %rbp, %rbp
mov (%rcx), %r10
dec %rdx
lea addresses_D_ht+0x1414, %r8
nop
cmp $36444, %rsi
movb (%r8), %r11b
nop
sub $40796, %r10
lea addresses_normal_ht+0... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="path, argv, envp"/>
<%docstring>
Invokes the syscall execve. See 'man 2 execve' for more information.
Arguments:
path(char): path
argv(char): argv
envp(char): envp
</%docstring>
${syscall('SYS_execve', path, argv, envp)}
|
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
sc_c_BEGIN = *
; *****************
; *** CONSTANTS ***
; *****************
; *****************
; *** VARIABLES ***
; *****************
; FIXME: for time being, everything is par 3!
; Pars are set as the holes are loaded in.
; FIXME: hard-coded numbers!
sc_v_par... |
#include <iostream>
#include <string>
using namespace std;
class person
{
public:
person() = default;
explicit person(const string& name) : name(name) {}
void set_name(const string& n) { name= n; }
string get_name() const { return name; }
virtual void all_info() const { cout << "[person] My ... |
; A077834: Expansion of 1/(1 - 2*x - 2*x^2 - 3*x^3).
; 1,2,6,19,56,168,505,1514,4542,13627,40880,122640,367921,1103762,3311286,9933859,29801576,89404728,268214185,804642554,2413927662,7241782987,21725348960,65176046880,195528140641,586584421922,1759753265766,5279259797299,15837779391896
mov $26,$0
mov $28,$0
add $28,1... |
/*
* Copyright © 2007,2008,2009 Red Hat, Inc.
* Copyright © 2012,2013 Google, Inc.
* Copyright © 2019, Facebook Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute th... |
data
align 4
LABELV MonthAbbrev
address $88
address $89
address $90
address $91
address $92
address $93
address $94
address $95
address $96
address $97
address $98
address $99
align 4
LABELV skillLevels
address $100
address $101
address $102
address $103
address $104
lit
align 4
LABELV numSkillLevels
byte 4 5
data
alig... |
/*
* Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
*
* 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 appl... |
; A218460: a(n) = prime(n)^(prime(n + 1) - prime(n)).
; 2,9,25,2401,121,28561,289,130321,148035889,841,887503681,1874161,1681,3418801,10779215329,22164361129,3481,51520374361,20151121,5041,151334226289,38950081,326940373369,3936588805702081,88529281,10201,112550881,11449,141158161,55347525466347647961440563489,26014464... |
; uint8_t hbios_a_de_hl(uint16_t func_device, uint16_t arg, void * buffer) __smallc
SECTION code_clib
SECTION code_arch
PUBLIC hbios_a_de_hl
EXTERN asm_hbios_a
.hbios_a_de_hl
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp asm_hbios_a
|
; empty asm file just to trigger the test
; test is looking for warning about --sld option used without --fullpath
|
TITLE SORT: SELECT SORT PROGRAM
.MODEL SMALL
.STACK 100H
.DATA
A DB 5 , 2 , 1 , 3 , 4
.CODE
MAIN PROC
MOV AX , @DATA
MOV DS , AX
LEA SI , A
CALL SELECT
;dos exit
MOV AH,4CH
INT 21H
MAIN ENDP
INCLUDE DES_NUM.ASM
END MAIN |
; A184035: 1/16 the number of (n+1) X 6 0..3 arrays with all 2 X 2 subblocks having the same four values.
; Submitted by Jon Maiga
; 169,181,202,244,322,478,778,1378,2554,4906,9562,18874,37402,74458,148378,296218,591514,1182106,2362522,4723354,9443482,18883738,37761178,75516058,151019674,302026906,604029082,1208033434,... |
; ===============================================================
; Oct 2014
; ===============================================================
;
; int fileno(FILE *stream)
;
; Return file descriptor associated with stream.
;
; ===============================================================
INCLUDE "config_private.in... |
extern m7_ippsPrimeGen:function
extern n8_ippsPrimeGen:function
extern y8_ippsPrimeGen:function
extern e9_ippsPrimeGen:function
extern l9_ippsPrimeGen:function
extern n0_ippsPrimeGen:function
extern k0_ippsPrimeGen:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Li... |
//==============================================================================
// int parse_generic(int code, char* parserAddress, WINDOW* window, byte* dest)
// In:
// r0: code
// r1: parser address
// r2: window
// r3: memory_destionation for handle_first_window_buffer
// Out:
// r0: control code len... |
#include "chip8.h" // Your cpu core implementation
#include <map>
const int WINDOW_GFX_SCALE = 8;
const int FPS = 60;
const int CLOCK_SPEED_IN_HZ = 600;
const char *defaultColours[] = { "0", "0", "0"};
SDL_Window *initWindow();
std::map<SDL_Keycode, unsigned char> getKeyboard();
void drawGraphics(SDL_Renderer *renderer... |
; A025806: Expansion of 1/((1-x^2)(1-x^5)(1-x^6)).
; 1,0,1,0,1,1,2,1,2,1,3,2,4,2,4,3,5,4,6,4,7,5,8,6,9,7,10,8,11,9,13,10,14,11,15,13,17,14,18,15,20,17,22,18,23,20,25,22,27,23,29,25,31,27,33,29,35,31,37,33,40,35,42,37
mov $3,$0
mov $5,2
lpb $5
sub $5,1
add $0,$5
sub $0,1
mov $2,$5
mov $4,$0
max $4,0
seq $... |
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "graph/optimizer/rule/PushLimitDownEdgeIndexFullScanRule.h"
#include "common/expression/BinaryExpression.h"
#include "common/expression/ConstantExpression.h"
#include "common/expression/Exp... |
// BEGIN_COPYRIGHT
//
// Copyright 2009-2018 CRS4.
//
// 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 l... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Weapon selection handling
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "weapon_selection.h"
#include "hud_macros.h"
#include "history_resource... |
/*
* Copyright (c) 2012-2014, Bruno Levy
* 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 l... |
[org 0x0100]
jmp start
_bits: dw 0,0
start: mov ax, 0xA891
mov cx, 0
mov bx, 1000000000000000b ;Mask to test a particular bit
mov dx, 1100000000000000b ;Mask used to take xor of the two different bits which will swap them
mov si, 0
mov di, 0
loop1: cmp bx,0
jz end
test bx,ax
... |
MOV 0x00,#0xFF
MOV 0x01,#0xFF
MOV 0x02,#0xFF
MOV 0x03,#0xFF
MOV 0x04,#0xFF
MOV 0x05,#0xFF
MOV 0x06,#0xFF
MOV 0x07,#0xFF
MOV A,#0xFE
ANL 0x00,A
RL A
ANL 0x01,A
RL A
ANL 0x02,A
RL A
ANL 0x03,A
RL A
ANL 0x04,A
RL A
ANL 0x05,A
RL A
ANL 0x06,A
RL A
ANL 0x07,A
RL A |
//////////////////////////////////////////////////////////////////////////////
// branch8_mem_a_test.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// This program demonstrates and tests the 8bit br... |
#include "../vidhrdw/sidearms.cpp"
/***************************************************************************
Sidearms
========
Driver provided by Paul Leaman
TODO:
There is an additional ROM which seems to contain code for a third Z80,
however the board only has two. The ROM is related to the missing s... |
; A332191: a(n) = 10^(2n+1) - 1 - 8*10^n.
; 1,919,99199,9991999,999919999,99999199999,9999991999999,999999919999999,99999999199999999,9999999991999999999,999999999919999999999,99999999999199999999999,9999999999991999999999999,999999999999919999999999999,99999999999999199999999999999,9999999999999991999999999999999
seq... |
#include <algorithm>
#include <array>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#include <gmpxx.h>
#include "gmp_helpers.h"
#include "arith.h"
using std::cout;
using std::endl;
template<class T>
using vec = std::array<T, 2>;
template<class T>
using mat = vec<vec<T>... |
/* block comments containing /* throw warnings */
PRINTLN "reachable"
|
.486
.model flat, stdcall
option casemap :none
include windows.inc ; always first
include masm32.inc
include gdi32.inc
include user32.inc
include kernel32.inc
includelib masm32.lib
includelib gdi32.lib
includelib user32.lib
includelib kernel32.lib
.data
buf db 300 dup(' ')
szCh db 0,... |
; A339255: Leading digit of n in base 5.
; 1,2,3,4,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,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
add $0,1
lpb $0,$0
div $0,5
lpe
mov $1,$0
|
-- HUMAN RESOURCE MACHINE PROGRAM --
INBOX
JUMPZ a
OUTBOX
a:
INBOX
JUMPZ b
OUTBOX
b:
INBOX
JUMPZ c
OUTBOX
c:
INBOX
JUMPZ d
OUTBOX
d:
INBOX
JUMPZ e
OUTBOX
e:
INBOX
JUMPZ f
OUTBOX
f:
INBOX
J... |
[BITS 32]
GLOBAL asm_int_handler20, asm_int_handler21, asm_int_handler27, asm_int_handler2c
EXTERN int_handler20, int_handler21, int_handler27, int_handler2c
asm_int_handler20:
PUSH ES
PUSH DS
PUSHAD
MOV EAX, ESP
PUSH EAX
MOV AX, SS
MOV DS, AX
MOV ES, AX
CALL int_h... |
; ************ DESCRIZIONE SOTTOPROGRAMMA ************
Il seguente sottoprogramma denominato CONTA_PARI_DISPARI riceve:
- nel registro R0 l’indirizzo della prima cella di una zona di memoria contenente una sequenza di numeri
a 16 bit in complemento a due;
- nel registro R1 l’indirizzo della cella contenente l’ultimo ... |
#ifndef MacroUtil_cxx
#define MacroUtil_cxx
//PlotUtils includes
#include "MacroUtil.h"
#include "makeChainWrapper.h"
//ROOT includes
#include "TH1.h"
//c++ includes
#include <iostream>
#include <cassert>
using namespace PlotUtils;
// Accumulate all POT in a "playlist" file
double CountPOT(const std::string& fileN... |
;============================================================================
; :file: display.asm
;============================================================================
; :chapter: display
;------------------------------------------
%macro clear_screen 0 ; ( -- )
call clear_screenF
... |
; A323770: Expansion of e.g.f. x*(2 - x)*exp(x/(1 - x))/(2*(1 - x)^2).
; Submitted by Jon Maiga
; 0,1,5,30,214,1775,16791,178360,2101100,27172269,382566025,5823044546,95253119490,1666020561595,31019392831259,612430207741500,12778091116288216,280893425932078745,6487870112636577165,157066777096248548134,39767275559398870... |
; A326059: a(n) = A285309(n) - n, where A285309 gives the sum of nonsquare divisors of n.
; Submitted by Christian Krause
; -1,0,0,-2,0,5,0,2,-6,7,0,11,0,9,8,-6,0,11,0,17,10,13,0,31,-20,15,3,23,0,41,0,10,14,19,12,5,0,21,16,45,0,53,0,35,23,25,0,55,-42,17,20,41,0,56,16,59,22,31,0,103,0,33,31,-22,18,77,0,53,26,73,0,73,0,3... |
STK 2
ORG 0
TXT "Hello World!"
DB_ 0
@LOOP
RCL R2, R1
JZ R2, 0
OUT R2
INC R1
JMP %LOOP
|
; A021266: Decimal expansion of 1/262.
; Submitted by Christian Krause
; 0,0,3,8,1,6,7,9,3,8,9,3,1,2,9,7,7,0,9,9,2,3,6,6,4,1,2,2,1,3,7,4,0,4,5,8,0,1,5,2,6,7,1,7,5,5,7,2,5,1,9,0,8,3,9,6,9,4,6,5,6,4,8,8,5,4,9,6,1,8,3,2,0,6,1,0,6,8,7,0,2,2,9,0,0,7,6,3,3,5,8,7,7,8,6,2,5,9,5
seq $0,83811 ; Numbers n such that 2n+1 is the d... |
; A002062: a(n) = Fibonacci(n) + n.
; Submitted by Simon Strandgaard
; 0,2,3,5,7,10,14,20,29,43,65,100,156,246,391,625,1003,1614,2602,4200,6785,10967,17733,28680,46392,75050,121419,196445,317839,514258,832070,1346300,2178341,3524611,5702921,9227500,14930388,24157854,39088207,63246025,102334195,165580182,267914338,43349... |
/**
* @file plot_estimation.cpp
* @author Miguel Saavedra (miguel.saaruiz@gmail@gmail.com)
* @brief Plot in an image the estimation of the template
* @version 0.1
* @date 05-01-2020
*
* Copyright (c) 2020 Miguel Saavedra
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
... |
;--------------------------------------------------------------
; HRG screen effects
; for the ZX81
;--------------------------------------------------------------
;
; Shift left the TV picture in hrg mode
;
; Stefano - Oct 2011
;
;
; $Id: hrg_tune_right.asm,v 1.2 2015/01/19 01:32:52 pauloscustodio Exp $
;
... |
Music_MeetJessieJames_Ch1::
tempo 144
volume 7, 7
duty 3
vibrato 8, 1, 4
notetype 12, 11, 2
octave 3
G# 1
G_ 1
F# 2
F_ 2
E_ 2
D# 2
D_ 2
C# 2
C_ 2
notetype 12, 11, 6
D# 12
C_ 4
Music_MeetJessieJames_branch_83187::
notetype 12, 11, 2
octave 4
D_ 16
rest 12
notetype 12, 11, 4
octave 3
A# 4
rest ... |
#pragma once
namespace ample::gui
{
template <class T>
TabObjectEditor<T>::TabObjectEditor(std::shared_ptr<T> object)
: _editorTarget(object) {}
template <class T>
std::shared_ptr<T> TabObjectEditor<T>::editorTarget() const noexcept
{
return _editorTarget;
}
template <class T>
std::shared_ptr<filing::NamedOb... |
.text
lw $0,4($0)
beq $2,$0,loop
nop
loop: |
; A332023: T(n, k) = binomial(n+2, 3) + binomial(k+1, 2) + binomial(k, 1). Triangle read by rows, T(n, k) for 0 <= k <= n.
; 0,1,3,4,6,9,10,12,15,19,20,22,25,29,34,35,37,40,44,49,55,56,58,61,65,70,76,83,84,86,89,93,98,104,111,119,120,122,125,129,134,140,147,155,164,165,167,170,174,179,185,192,200,209,219
mov $2,$0
mov... |
// 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.)
//
// This program only needs t... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: Clavin
MODULE: Outbox -- Transmit-thread Creation
FILE: outboxThread.asm
AUTHOR: Adam de Boor, Apr 29, 1994
ROUTINES:
Name Description
---- -----------
... |
; A225013: Number of 6Xn 0..1 arrays with rows unimodal and columns nondecreasing
; Submitted by Christian Krause
; 7,49,252,1036,3612,11088,30738,78354,186142,416394,884236,1794196,3497248,6577474,11980667,21201211,36548573,61520899,101320712,163556776,259187048,403770544,619111172,935394436,1393938716,2050706932,2980... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.