text
stringlengths
1
1.05M
#include <iostream> #include <cstdio> using namespace std; int main() { int a, b; string s[] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; cin >> a >> b; for (int i = a; i <= b; i++) { if (i <= 9) cout << (s[i - 1]) << endl; else if (i > 9) ...
; A020780: Decimal expansion of 1/sqrt(23). ; Submitted by Jon Maiga ; 2,0,8,5,1,4,4,1,4,0,5,7,0,7,4,7,6,2,6,7,8,1,4,9,4,8,1,0,5,0,5,5,1,9,0,9,5,6,5,0,7,4,2,1,9,2,1,3,2,2,3,0,1,5,0,6,4,5,7,8,6,5,7,1,4,9,9,2,4,2,2,7,6,4,8,1,5,0,6,1,2,2,8,2,2,6,9,1,9,3,3,2,3,3,4,4,2,9,8,2 mov $2,1 mov $3,$0 mul $3,4 lpb $3 mov $1,23 ...
// Formatting library for C++ - formatting library tests // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstring> #include <list> #include <memory> #includ...
; A067731: Maximum number of distinct parts in a self-conjugate partition of n, or 0 if n=2. ; 0,1,0,2,1,2,3,2,3,2,4,3,4,3,4,5,4,5,4,5,4,6,5,6,5,6,5,6,7,6,7,6,7,6,7,6,8,7,8,7,8,7,8,7,8,9,8,9,8,9,8,9,8,9,8,10,9,10,9,10,9,10,9,10,9,10,11,10,11,10,11,10,11,10,11,10,11,10,12,11,12,11,12,11,12,11,12,11 mov $1,6 lpb $0,4 ...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
copyright zengfr site:http://github.com/zengfr/romhack 003848 movea.l ($4f12,A5), A1 [enemy+12] 003A0A movem.l D0-D3, -(A6) 003A0E movem.l D0-D3, -(A6) 005EE6 move.l ($8,A3), ($12,A4) [enemy+ A] 005EEC move.b ($c,A3), ($36,A4) [enemy+12, enemy+14] 009ACA dbra D5, $9ac8 009AD2 movea.l A0, A1 [container+1...
; A040958: Continued fraction for sqrt(990). ; 31,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2,62,2,6,2 seq $0,40204 ; Continued fraction for sqrt(219). mul $0,2 mov $1,$0 sub $0,1 div $0...
#pragma once #include "stdafx.h" #include "domain/elements/ElementGeometry.hpp" #include "domain/elements/Node.hpp" #include "foundation/blas/blas.hpp" #define XN(x) nodeCoord(MakeIdx(nodeIdx, x), 0) #define YN(x) nodeCoord(MakeIdx(nodeIdx, x), 1) #define ZN(x) nodeCoord(MakeIdx(nodeIdx, x), 2) namespace ade = axis::...
; A226450: a(n) = n*(3*n^2 - 5*n + 3). ; 0,1,10,45,124,265,486,805,1240,1809,2530,3421,4500,5785,7294,9045,11056,13345,15930,18829,22060,25641,29590,33925,38664,43825,49426,55485,62020,69049,76590,84661,93280,102465,112234,122605,133596,145225,157510,170469,184120,198481,213570,229405,246004,263385,281566,300565,320400...
; ================================================================ ; DevSound Lite - a Game Boy music system by DevEd ; ; Copyright (c) 2022 DevEd ; ; 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...
.size 8000 .text@48 inc a ldff(45), a 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, 03 call lwaitly_b ld c, 41 lbegin_waitm0: ldff a, (c) and a, b jrnz lbegin_waitm0 ld a, 80 ldf...
; A011377: Expansion of 1/((1-x)*(1-2*x)*(1-x^2)). ; 1,3,8,18,39,81,166,336,677,1359,2724,5454,10915,21837,43682,87372,174753,349515,699040,1398090,2796191,5592393,11184798,22369608,44739229,89478471,178956956,357913926,715827867,1431655749,2863311514,5726623044,11453246105,22906492227,45812984472,91625968962,183251937...
%ifdef CONFIG { "RegData": { "RAX": "0x4090000000000000" }, "Env": { "FEX_X87REDUCEDPRECISION" : "1" } } %endif mov rdx, 0xe0000000 mov eax, 1024 mov [rdx + 8 * 0], eax mov eax, -1 mov [rdx + 8 * 0 + 2], eax fild word [rdx + 8 * 0] fst qword [rdx + 8 * 0] mov rax, [rdx + 8 * 0] hlt
; A192976: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments. ; 0,1,2,10,29,70,148,289,534,950,1645,2794,4680,7761,12778,20930,34157,55598,90332,146577,237630,385006,623517,1009490,1634064,2644705,4280018,6926074,11207549,18135190,29344420,47481409,76827750,124311206,201141133...
/** * \file dnn/src/common/basic_types.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS...
//===------------------------------------------------------------*- C++ -*-===// /// /// \file /// \brief 点积、数量积。 /// /// \version 2021-11-16 /// \since 2019-10-15 /// \authors zhengrr /// \copyright Unlicense /// //===----------------------------------------------------------------------===// #pragma once #ifndef RRA...
; ************************************************** ; SMSlib - C programming library for the SMS/GG ; ( part of devkitSMS - github.com/sverx/devkitSMS ) ; ************************************************** INCLUDE "SMSlib_private.inc" SECTION code_clib SECTION code_SMSlib PUBLIC asm_SMSlib_resetPauseRequest EXTERN...
; A017078: a(n) = (8*n + 1)^2. ; 1,81,289,625,1089,1681,2401,3249,4225,5329,6561,7921,9409,11025,12769,14641,16641,18769,21025,23409,25921,28561,31329,34225,37249,40401,43681,47089,50625,54289,58081,62001,66049,70225,74529,78961,83521,88209,93025,97969,103041,108241,113569,119025,124609,130321,136161,142129,148225,1544...
; A215862: Number of simple labeled graphs on n+2 nodes with exactly n connected components that are trees or cycles. ; 0,4,19,55,125,245,434,714,1110,1650,2365,3289,4459,5915,7700,9860,12444,15504,19095,23275,28105,33649,39974,47150,55250,64350,74529,85869,98455,112375,127720,144584,163064,183260,205275,229215,255189,...
/******************************************************************************* * Copyright 2017 ROBOTIS 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.o...
; A319556: a(n) gives the alternating sum of length n, starting at n: n - (n+1) + (n+2) - ... + (-1)^(n+1) * (2n-1). ; 1,-1,4,-2,7,-3,10,-4,13,-5,16,-6,19,-7,22,-8,25,-9,28,-10,31,-11,34,-12,37,-13,40,-14,43,-15,46,-16,49,-17,52,-18,55,-19,58,-20,61,-21,64,-22,67,-23,70,-24,73,-25,76,-26,79,-27,82,-28,85,-29,88,-30,91,...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1e5e6, %r9 nop nop dec %r12 movb (%r9), %r15b nop cmp %r10, %r10 lea addresses_normal_ht+0x11e36, %rsi lea addresses_WT_ht+0x6868, %rdi nop nop nop nop nop sub %r10, %r10 mov...
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) 2011 The...
// Copyright 2019 CryptoGarage /** * @file cfdcapi_elements_transaction.cpp * * @brief cfd-capiで利用するConfidentialTransaction処理の実装ファイル */ #ifndef CFD_DISABLE_CAPI #ifndef CFD_DISABLE_ELEMENTS #include "cfdc/cfdcapi_elements_transaction.h" #include <exception> #include <map> #include <string> #include <vector> #incl...
; A250749: Number of (n+1) X (2+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. ; 72,237,756,2361,7272,22197,67356,203601,613872,1847757,5555556,16691241,50122872,150466917,451597356,1355185281,4066342272,12200599677,36604944756,109821125721,329...
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. #include "AsmMacros.h" TEXTAREA EXTERN g_fGcStressStarted PROBE_SAVE_FLAGS_EVERYTHING equ DEFAULT_FRAME_SAVE_FLAGS + PTFF_SAVE_ALL_SCRATCH ;; Build a map of ...
DEFAULT_HANDLER_SIZE: equ 9 ; size of exception/interrupt stub SYS_CODE_SEL: equ 0x20 ; 32-bit code selector in GDT PE_OFFSET_IN_MZ_STUB: equ 0x3c ; place in MsDos stub for offset to PE Header VGA_FB: equ 0x000b8000 ; VGA framebuffe...
// // Created by Virusbear on 29.01.2022. // #include "Math/IVec2.h" namespace CubiLight { const IVec2 IVec2::Zero = IVec2(); IVec2::IVec2() noexcept { x = y = 0; } IVec2::IVec2(int _x, int _y) { x = _x; y = _y; } IVec3 IVec2::XY0() { return IVec3(x, y, 0); ...
//============================================================================= // Copyright (c) 2019-2021 Advanced Micro Devices, Inc. All rights reserved. /// @author AMD Developer Tools Team /// @file /// @brief Implementation for a model for a heap layout for the Heap Overview /// pane. //=========================...
; A132413: Ceiling(n^2*exp(n)). ; Submitted by Jamie Morken(s3) ; 3,30,181,874,3711,14524,53736,190782,656350,2202647,7244772,23436690,74767864,235710440,735528909,2274844294,6980781346,21273830001,64432110648,194066078164,581597738908,1735097817528,5155001023066,15257734346790,45003062085867,132313215973896,3878631673...
SECTION code_clib SECTION code_l_sdcc PUBLIC __rrslonglong_callee EXTERN l_asr_dehldehl, l_store_64_dehldehl_mbc __rrslonglong_callee: ; arithmetic shift right 64-bit number ; ; enter : +-------------------------- ; | +12 shift amount ; stack = |---------------------...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0xedb9, %rsi lea addresses_D_ht+0x8cc1, %rdi nop nop nop nop and %rbp, %rbp mov $12, %rcx rep movsl nop nop nop inc %r14 pop %rsi pop %rdi pop %rcx pop %rbp pop %r14 ret .global s_faulty_load s_faulty_...
; A133628: a(1)=1, a(n) = a(n-1) + (p-1)*p^(n/2-1) if n is even, else a(n) = a(n-1) + p^((n-1)/2), where p=4. ; 1,4,8,20,36,84,148,340,596,1364,2388,5460,9556,21844,38228,87380,152916,349524,611668,1398100,2446676,5592404,9786708,22369620,39146836,89478484,156587348,357913940,626349396,1431655764,2505397588,5726623060,...
; Enhanced BASIC to assemble under 6502 simulator, $ver 2.22 ; $E7E1 $E7CF $E7C6 $E7D3 $E7D1 $E7D5 $E7CF $E81E $E825 ; 2.00 new revision numbers start here ; 2.01 fixed LCASE$() and UCASE$() ; 2.02 new get value routine done ; 2.03 changed RND() to galoise method ; 2.04 fixed SPC() ; 2.05 new get value routine fixed...
/*ckwg +29 * Copyright 2013-2018 by Kitware, 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: * * * Redistributions of source code must retain the above copyright notice, * this li...
; A123620: Expansion of (1 + x + x^2) / (1 - 3*x - 3*x^2). ; Submitted by Jon Maiga ; 1,4,16,60,228,864,3276,12420,47088,178524,676836,2566080,9728748,36884484,139839696,530172540,2010036708,7620627744,28891993356,109537863300,415289569968,1574482299804,5969315609316,22631393727360,85802128010028,325300565212164,123330...
;------------------------------------------------------------------------------- ; HL_sys_intvecs.asm ; ; (c) Texas Instruments 2009-2013, All rights reserved. ; .sect ".intvecs" .arm ;------------------------------------------------------------------------------- ; import reference for interrupt ro...
; A060839: Number of solutions to x^3 == 1 mod n. ; Submitted by Jamie Morken(w1) ; 1,1,1,1,1,1,3,1,3,1,1,1,3,3,1,1,1,3,3,1,3,1,1,1,1,3,3,3,1,1,3,1,1,1,3,3,3,3,3,1,1,3,3,1,3,1,1,1,3,1,1,3,1,3,1,3,3,1,1,1,3,3,9,1,3,1,3,1,1,3,1,3,3,3,1,3,3,3,3,1,3,1,1,3,1,3,1,1,1,3,9,1,3,1,3,1,3,3,3,1 add $0,1 mov $2,$0 lpb $0 mov $3,...
org 0x7c00 jmp entry db 0x90 entry: mov ax,0 mov ss,ax mov sp,0x7c00 mov ds,ax mov es,ax mov si,msg putloop: mov al,[si] add si,1 cmp al,0 je fin mov ah,0x0e mov bx,15 int 0x10 jmp putloop fin: hlt jmp fin msg: db 0x0a,0x0a db "hello world!...
; A123334: a(n) = 4^n*(Gamma(n+1/4)/Gamma(1/4) + (n-1)!). ; Submitted by Jon Maiga ; 5,21,173,2121,34521,700365,17017605,481714065,15566262705,565382074005,22800157775325,1010786809534425,48858860891558025,2557374374022392925,144098786151306911925,8696418977823430478625,559650814914145512182625,382564554358358823292091...
; A058974: a(n) = 0 if n = 1 or a prime, otherwise a(n) = s + a(s) iterated until no change occurs, where s (A008472) is sum of distinct primes dividing n. ; 0,0,0,2,0,5,0,2,3,7,0,5,0,12,10,2,0,5,0,7,17,13,0,5,5,25,3,12,0,17,0,2,26,19,17,5,0,38,18,7,0,17,0,13,10,30,0,5,7,7,27,25,0,5,18,12,35,31,0,17,0,59,17,2,23,18,0,1...
; A008264: Coordination sequence for tridymite, lonsdaleite, and wurtzite. ; Submitted by Jamie Morken(s2) ; 1,4,12,25,44,67,96,130,170,214,264,319,380,445,516,592,674,760,852,949,1052,1159,1272,1390,1514,1642,1776,1915,2060,2209,2364,2524,2690,2860,3036,3217,3404,3595,3792,3994,4202,4414,4632,4855,5084,5317,5556,5800,...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2019 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 <chainparams.h> #include <chainparamsseeds.h> #include <consensus/merkle.h> ...
; vasmm68k_mot[_<HOST>] -Fbin -o icon_36_336/def_kick.info def_kick-icon_36_336.asm ; ; Default "ENV:def_kick.info" data included in "icon 36.336 (8.6.90)". ; include deficon.inc ifne DEFICON_MEM align 1 endif defIconKick: dc.w $E310 ; do_Magic = WB_DISKMAGIC dc.w $0001 ; d...
db DEX_PRIMEAPE ; pokedex id db 65 ; base hp db 105 ; base attack db 60 ; base defense db 95 ; base speed db 60 ; base special db FIGHTING ; species type 1 db DARK ; species type 2 db FULL_HEAL ; catch rate db 149 ; base exp yield INCBIN "pic/ymon/primeape.pic",0,1 ; 77, sprite dimensions dw PrimeapePicFront dw Primeap...
; A170331: Number of reduced words of length n in Coxeter group on 34 generators S_i with relations (S_i)^2 = (S_i S_j)^42 = I. ; 1,34,1122,37026,1221858,40321314,1330603362,43909910946,1449027061218,47817893020194,1577990469666402,52073685498991266,1718431621466711778,56708243508401488674,1871372035777249126242,617552...
; A313894: Coordination sequence Gal.5.133.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,10,16,21,27,32,38,43,48,53,58,64,69,75,80,86,91,96,101,106,112,117,123,128,134,139,144,149,154,160,165,171,176,182,187,192,197,202,208,2...
addi $t1, $zero, 1 addi $t2, $zero, 1 bne $t1, $t2, iloop slti $t3, $t1, 2 bne $t1, $t3, iloop slti $t3, $t1, 0 bne $zero, $t3, iloop bne $zero, $t1, branch1 j iloop branch1: j jump1 j iloop jump1: andi $t3, $t1, 2 bne $zero, $t3, iloop ori $t3, $t1, 2 addi $t2, $t2, 2 bne $t2, $t3, iloop xori $t3, $t1, 3 addi $t2, $ze...
/**************************************************************************** * * Copyright (c) 2020 PX4 Development Team. 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. Redistri...
; A138099: Irregular triangle read by rows: T(n,k) = k + floor(n/2), 1 <= k <= ceiling(n/2). ; 1,2,2,3,3,4,3,4,5,4,5,6,4,5,6,7,5,6,7,8,5,6,7,8,9,6,7,8,9,10,6,7,8,9,10,11,7,8,9,10,11,12,7,8,9,10,11,12,13,8,9,10,11,12,13,14,8,9,10,11,12,13,14,15,9,10,11,12,13,14,15,16,9,10,11,12,13 mul $0,2 mov $2,1 lpb $0 div $0,2 ...
; A169599: Numbers that are congruent to {4, 23} mod 29. ; 4,23,33,52,62,81,91,110,120,139,149,168,178,197,207,226,236,255,265,284,294,313,323,342,352,371,381,400,410,429,439,458,468,487,497,516,526,545,555,574,584,603,613,632,642,661,671,690,700,719,729,748,758,777,787,806,816,835,845,864,874,893,903,922,932,951,961,9...
; A070473: a(n) = n^3 mod 11. ; 0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0 pow $0,3 mod $0,11
INCLUDE "defines.inc" SECTION "Random Number Variables", HRAM hRandomNumber:: DS 1 SECTION "Random Number", ROM0 ; @return a Random number GenerateRandomNumber:: push hl ld hl, hRandomNumber add a, [hl] ld l, LOW(rLY) add a, [hl] rrca ld l, LOW(rDIV) ...
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)+ 020416 clr.l ($7e4,A5) [base+7E0, base+7E2] 02041A clr.l ($7e8,A5) 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 1...
; A278831: Minimal number of possible moves at the n-th ply of a chess game, excluding positions where no move is possible. ; 20,20,19,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,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,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,1,1,1,1,1,1,1,1,1,1,1,1,1 mul $0,3...
; A099721: a(n) = n^2*(2*n+1). ; 0,3,20,63,144,275,468,735,1088,1539,2100,2783,3600,4563,5684,6975,8448,10115,11988,14079,16400,18963,21780,24863,28224,31875,35828,40095,44688,49619,54900,60543,66560,72963,79764,86975,94608,102675,111188,120159,129600,139523,149940,160863,172304,184275,196788,209855,223488,237699,25250...
int J4s, HB30/*4n*/,PR//GNv ,fS , N7/*rDT*/,A3wk ,JL3C ,yRQuw , iU , Q /*iE0ZV*/, dK/*Fz*/,Ut, mfR , bkWr, Gi ,dJ, XpN/*wp8c*/,//1rVf4 Wz , flC , Xvio,F8D/*IFzc*/, Ks, LeC, Ob/*2*/,Zig , Yah,Ra, Cg/*DfD*/, zZ , nK, WPXl, zwb5 ,Uu, //bl nHpg/*z9*/,BDJ, Mz2 , QX, Q1,m1f/*l*/, H9JL,QJ , Hi/*...
/* 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...
PrintSafariZoneBattleText: ld hl, wSafariBaitFactor ld a, [hl] and a jr z, .no_bait dec [hl] ld hl, SafariZoneEatingText jr .done .no_bait dec hl ld a, [hl] and a ret z dec [hl] ld hl, SafariZoneAngryText jr nz, .done push hl ld a, [wEnemyMonSpecies] ld [wd0b5], a call GetMonHeader ld a, [wMonHCatchR...
section .text use16 ; (signed, unsigned) bx:ax <<= di; global lsll global lslul lsll: lslul: mov cx, di cmp cx, 32 jb lsl_main sub ax, ax mov bx, ax ret lsl_main: push bx push ax pop eax shl eax, cl push eax pop ax pop bx ret
.386p .387 ; COPYRIGHT (c) 1995,99 XDS. All Rights Reserved. ; Implementation for X2C_adr_lss and X2C-adr_gtr functions ifdef OS2 .model FLAT endif DGROUP group _DATA _DATA segment use32 dword public 'DATA' _DATA ends i...
#include <eve/module/math.hpp> #include <eve/wide.hpp> #include <iostream> using wide_ft = eve::wide<float, eve::fixed<4>>; int main() { wide_ft pf = {1.0f, 0.0f, eve::inf(eve::as<float>()), 180.0f}; std::cout << "---- simd" << '\n' << "<- pf = " << pf << '\n' << "-> secd(pf) ...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r8 push %r9 push %rbx push %rcx push %rdx // Store lea addresses_D+0x1ef5f, %r12 nop nop nop nop nop inc %r8 movl $0x51525354, (%r12) nop nop nop add %r12, %r12 // Store lea addresses_RW+0x1bcb7, %rdx ...
SECTION code_fp_math48 PUBLIC _tanh_fastcall EXTERN cm48_sdcciy_tanh_fastcall defc _tanh_fastcall = cm48_sdcciy_tanh_fastcall
/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman Copyright (c) 2007 Dan Marsden 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) =====...
; A062811: a(n) = Sum_{i=1..n} i^(n - i) + (i - n)^i. ; 1,1,3,9,21,65,215,713,2809,11425,49339,234825,1148013,6009153,33216239,190115849,1152491825,7244099617,47387741107,323632894729,2280785100549,16702573959489,126413562204231,986688266888777,7960928383114409,66059744250227873,564580510931670763,4962212040742355401,4...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; ReadDr2.Asm ; ; Abstract: ; ; AsmReadDr2 function ; ; Notes: ; ;---------------------...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: Crossword MODULE: FILE: cwordBoardOpenClose.asm AUTHOR: Peter Trinh, Aug 30, 1994 ROUTINES: Name Description ---- ----------- METHODS ------- Cwor...
;;kernel.asm bits 32 ;set to 32bit mode section .text ;multiboot spec align 4 dd 0x1BADB002 ;magic number to indentify header for multiboot dd 0x00 ;flags field - we have no flags so equal to 0 dd - (0x1BADB002+0x00) ;checksum glo...
;------------------------------------------------------------------------------- ; ______ ______ _ ; (_____ \ | ___ \ | | ; _____) )___ _ _ _ ____ ___ | | _ | | ___ ____ | | _ ____ _ _ ; | ____// _ \ | | | | / _ ) / __...
/** * @file * @author Mohammad S. Babaei <info@babaei.net> * @version 0.1.0 * * @section LICENSE * * (The MIT License) * * Copyright (c) 2016 Mohammad S. Babaei * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softw...
/* * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
; A165826: Totally multiplicative sequence with a(p) = 5. ; 1,5,5,25,5,25,5,125,25,25,5,125,5,25,25,625,5,125,5,125,25,25,5,625,25,25,125,125,5,125,5,3125,25,25,25,625,5,25,25,625,5,125,5,125,125,25,5,3125,25,125,25,125,5,625,25,625,25,25,5,625,5,25,125,15625,25,125,5,125,25,125,5,3125,5,25,125,125,25,125,5,3125,625,25...
; A188731: Decimal expansion of (5+sqrt(41))/4. ; Submitted by Jon Maiga ; 2,8,5,0,7,8,1,0,5,9,3,5,8,2,1,2,1,7,1,6,2,2,0,5,4,4,1,8,6,5,5,4,5,3,3,1,6,1,3,0,1,0,5,0,3,3,1,5,5,2,5,4,7,2,1,3,8,2,3,1,8,1,5,6,6,6,7,0,4,5,6,8,9,5,4,9,2,1,9,0,1,8,5,7,2,3,3,8,5,7,5,5,6,2,4,6,7,4,9,0 mov $2,4 mov $3,$0 mul $3,3 mov $5,50 lpb $3...
.286 DATOS SEGMENT menu db "1.-llenar",10,13,"2.-Salir",10,13,'$' finizquierdo db "fin!!!$" punto1x dw 0000h punto1y dw 0008h punto2x dw 0100h punto2y dw 0108h pos1 db 10,13,"posicion en X:$" pos2 db 10,13,'posicion en y:$' posx dw ?,'$' posy dw ?,'$' DATOS ENDS PILA SEGMENT STACK db 32 D...
//===--------------------------------------------------------------------------------*- C++ -*-===// // _ _ // | | | | // __ _| |_ ___| | __ _ _ __ __ _ // / _` | __/ __| |/ _` | '_ \ / _` | // | (_| | || (_...
ORG -100 LDA X ADDD Y STA OUT BUN T X, DEC 32767 Y, DEC 1 OUT, DEC 0 ORG 2000 T , CLLA CLLE LDA X22 ADD Y2 STA OUT2 HLTT X2, DEC -32768 Y2, DECC -1 OUT2, DECC 0 I EN
// Copyright 2018 The Chromium OS 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 "shill/json_store.h" #include <array> #include <limits> #include <memory> #include <set> #include <string> #include <utility> #include <vecto...
; A324467: Three times the binary weight of n: 3*A000120(n). ; 0,3,3,6,3,6,6,9,3,6,6,9,6,9,9,12,3,6,6,9,6,9,9,12,6,9,9,12,9,12,12,15,3,6,6,9,6,9,9,12,6,9,9,12,9,12,12,15,6,9,9,12,9,12,12,15,9,12,12,15,12,15,15,18,3,6,6,9,6,9,9,12,6,9,9,12,9,12,12,15,6,9,9,12,9,12,12,15,9,12,12,15,12,15,15,18,6,9,9,12 mov $1,$0 lpb $0 ...
;Adding N single byte numbers stored as a array with num as starting memory location .MODEL small .STACK .DATA ; variable declaration section N db 4h num1 db 0c0h,2h,3h,4h num2 db 40h,6h,7h,8h sum db ? ; code section .CODE .STARTUP mov cx, 00h mov cl,N clc addition: mov al,num1[si] ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x19236, %r9 nop and %rcx, %rcx movw $0x6162, (%r9) nop nop nop xor $55447, %r11 lea addresses_UC_ht+0x8ff4, %r9 nop nop nop nop nop add %r15, %r15 movl $0x61626364, (%r9) nop n...
; ===================================================================== ; 导入的函数或变量 ; --------------------------------------------------------------------- extern display_position ; ===================================================================== ; 导出的函数或变量 ; -------------------------------------------------------...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x4aae, %rsi nop nop nop nop nop xor $58863, %rdi movb $0x61, (%rsi) nop nop nop nop nop xor %rbp, %rbp lea addresses_normal_ht+0xe082, %rsi lea addresses_WC_ht+0xfd24, %rdi nop nop nop ...
*= $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)bvsr" .byte 0 lda #%00011011 sta db lda #%11000110 st...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_WT_ht+0xda9a, %rsi lea addresses_WC_ht+0x11f3c, %rdi nop sub $1111, %r15 mov $121, %rcx rep movsl nop nop nop nop cmp $11802, %r8 lea addresses_WT_ht+0x140c, %r8 nop sub %r10, %r10 mov $0x6162...
; Minimal z80 diassesembler written in z80 assembly ;--------------------------------------------------- ; z80 opcode decoding based on: ; http://www.z80.info/decoding.htm ; ; TODO: Try and optimize to < 2048 bytes (Personal goal) ; #local ; RAM Variables #data _RAM DISLINE:: DS 22 ; Buffer for outputted line ; Lon...
/////////////////////////////////////////////////////////////////////////////// // // // DxilCondenseResources.cpp // // Copyright (C) Microsoft Corporation. All rights reserved. // ...
.data array: .word 52 21 111 10 100 43 2 space: .asciiz " " size: .word 7 .text main: sort_prep: la $t0, array # load array to $t0. lw $t1, size # load array size to $t1. li $t2, 1 # loop runner, starting from 1. sort_xloop: la $t0, array # load array to $t0. bge $t2, $t1, sort_xloop_end # while (t...
; A098559: E.g.f. (1+3x)/(1-3x). ; Submitted by Jamie Morken(s2) ; 1,6,36,324,3888,58320,1049760,22044960,529079040,14285134080,428554022400,14142282739200,509122178611200,19855764965836800,833942128565145600,37527395785431552000,1801314997700714496000,91867064882736439296000,4960821503667767721984000,28276682570906276...
ori $1, $0, 3 ori $2, $0, 5 ori $3, $0, 6 ori $4, $0, 2 sw $2, 0($0) sw $4, 4($0) sw $3, 8($0) sw $1, 12($0) sw $3, 16($0) sw $1, 20($0) sw $1, 24($0) sw $1, 28($0) sw $3, 32($0) sw $2, 36($0) sw $1, 40($0) sw $4, 44($0) sw $1, 48($0) sw $4, 52($0) sw $3, 56($0) sw $3, 60($0) sw $2, 64($0) sw $3, 68($0) sw $2, 72($0) s...
_kill: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char **argv) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <array> #include <cmath> #include <tuple> #include <gtest/gtest.h> #include <beanmachine/graph/graph.h> using namespa...
// license:BSD-3-Clause // copyright-holders:Fabio Priuli, Curt Coder /*************************************************************************** A.S.EL. Amico 2000 07/2009 Skeleton driver. IC9 - Monitor PROM, handwritten from book listing by Davide IC10 - Recorder PROM, yet to be found IC6/IC7 ...
#include <benchmark/benchmark.h> #include <bits/stdc++.h> #include <chrono> #include <cmath> #include <cstdlib> #include <random> #include "common/common_types.h" #include "mapped_data.h" constexpr uint64_t two_days{100}; constexpr uint64_t one_week{500}; constexpr uint64_t two_week{1000}; constexpr uint64_t one_mon...
; A167632: Smallest m such that A033183(m) = n. ; 0,4,36,72,108,144,180,216,252,288,324,360,396,432,468,504,540,576,612,648,684,720,756,792,828,864,900,936,972,1008,1044,1080,1116,1152,1188,1224,1260,1296,1332,1368,1404,1440,1476,1512,1548,1584,1620,1656,1692 mov $2,$0 sub $2,1 mul $2,8 trn $2,1 add $0,$2 mov $1,$0 mu...
; A095129: Jac(n)(2Jac(n)-1). ; 0,1,1,15,45,231,861,3655,14365,58311,232221,932295,3725085,14913991,59639581,238612935,954386205,3817763271,15270790941,61084037575,244335101725,977343902151,3909371414301,15637499638215,62549981775645 mov $1,2 pow $1,$0 add $1,4 div $1,3 mul $1,2 sub $1,2 bin $1,2
; This is the second part of our bootloader, 1024 bytes large loaded into memory at 0x1000. [bits 16] [org 0x1000] KERNEL_OFFSET equ 0x1600 ; 0x1000 (where our secondary bootloader is placed in memory) + ; 1024 (size of our bootloader) + 512 (size of our memory map data) mov [BOOT_DRIVE], dl mov DI, memo...
; A315062: Coordination sequence Gal.6.324.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. ; Submitted by Simon Strandgaard ; 1,5,9,15,20,25,31,36,41,47,51,56,61,65,71,76,81,87,92,97,103,107,112,117,121,127,132,137,143,148,153,159,16...
MOV #9, R1 NOP NOP NOP NOP NOP MOV #8, R0 MOV #2, R2 HLT MOV 0, R3
global _start section .data align 16 dword1: dd 0x00000002 dword2: dd 0xFFFFFF11 dword3: dd 0xFFF00000 dword4: dd 0x0000FFFF dword5: dd 0xFFFFFFFF mydword: dd 0xcafebabe myaddress: dq 0x00adbeefc0de00ce qword1: dq 0xffffffff00000001 %include "header.inc" movd mm0, [dword1] movd mm1, [dword2] movd mm2, ...