text
stringlengths
1
1.05M
; A098307: Unsigned member r=-7 of the family of Chebyshev sequences S_r(n) defined in A092184. ; Submitted by Christian Krause ; 0,1,7,64,567,5041,44800,398161,3538647,31449664,279508327,2484125281,22077619200,196214447521,1743852408487,15498457228864,137742262651287,1224181906632721,10879894897043200,9669487216675608...
// Copyright (c) 2011-2013 The Lioncoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactionview.h" #include "addresstablemodel.h" #include "lioncoinunits.h" #include "csvmodelwriter.h" #include ...
/* * OnDemandStore.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
db 0 ; species ID placeholder db 95, 85, 85, 35, 65, 65 ; hp atk def spd sat sdf db WATER, GROUND ; type db 90 ; catch rate db 137 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/quagsire/...
; A071996: a(1) = 0, a(2) = 1, a(n) = a(floor(n/3)) + a(n - floor(n/3)). ; 0,1,1,1,1,2,2,3,3,3,4,4,4,4,4,5,5,6,6,6,6,6,7,8,8,9,9,9,9,9,9,9,10,11,12,12,12,13,13,13,13,13,13,13,13,13,13,14,15,16,16,17,17,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,21,22,23,24,24,24,25,26,26,27,27,27,28,28,28,28,28,28,28,28,28,28,2...
; Program 8.6 ; SSE3 - MASM (32-bit) ; Copyright (c) 2017 Hall & Slonka .686 .XMM .MODEL FLAT, C .STACK 4096 ExitProcess PROTO stdcall, dwExitCode:DWORD .data ALIGN 16 vectorA REAL4 1.2, 3.4, 5.6, 7.8 vectorB REAL4 7.8, 5.6, 3.4, 1.2 .code _main PROC movaps xmm0, vectorA ; move vectorA to XMM0 movaps xmm1, vector...
#include <upcxx/upcxx.hpp> #include <iostream> #include <sstream> #include <assert.h> using namespace upcxx; int main() { init(); // create two singleton teams team t1 = world().split(rank_me(), rank_me()); team t2 = local_team().split(rank_me(), rank_me()); assert(t1.rank_n() == 1 && t1.rank_me() == 0); assert...
/*******************************<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...
include stdapp.def include product.def if PROGRESS_DISPLAY include Internal/semInt.def include thread.def include Internal/heapInt.def include Internal/interrup.def endif include driver.def include geode.def include Internal/videoDr.def include socket.def include sockmi...
#include <cstdio> #include <cstdlib> #include "buffer/buffer_pool_manager.h" #include "page/header_page.h" #include "gtest/gtest.h" // NOTE: when you running this test, make sure page size(config.h) is at least // 4096 namespace cmudb { TEST(HeaderPageTest, UnitTest) { BufferPoolManager *buffer_pool_manager = new ...
@; Thomas Irish @; IO - Macros .macro ENABLE_GPIOx GPIOx_INDEX MOV_imm32 r0, (1 << \GPIOx_INDEX) MOV_imm32 r1, RCC_AHB1ENR ldr r2, [r1] orr r2, r0 str r2, [r1] .endm .macro SET_GPIOx_REG REG_OFFSET, GPIOx_BASE, PIN, VAL, VAL_WIDTH MOV_imm32 r0, \GPIOx_BASE .if (\VAL_WIDTH == 1) MOV_imm32 r1, (\VAL << \PIN)...
; A022123: Fibonacci sequence beginning 3, 11. ; 3,11,14,25,39,64,103,167,270,437,707,1144,1851,2995,4846,7841,12687,20528,33215,53743,86958,140701,227659,368360,596019,964379,1560398,2524777,4085175,6609952,10695127,17305079,28000206,45305285,73305491,118610776 mov $1,3 mov $2,6 mov $3,5 lpb $0 sub $0,1 add $2,$3...
; A104624: Expansion of exp( arcsinh( -2*x ) ) in powers of x. ; Submitted by Christian Krause ; 1,-2,2,0,-2,0,4,0,-10,0,28,0,-84,0,264,0,-858,0,2860,0,-9724,0,33592,0,-117572,0,416024,0,-1485800,0,5348880,0,-19389690,0,70715340,0,-259289580,0,955277400,0,-3534526380,0,13128240840,0,-48932534040,0,182965127280,0,-68611...
; ; Hook ; Hook: MACRO ?address, ?entry, ?oldHook address: dw ?address entry: dw ?entry oldHook: dw ?oldHook ENDM ; ix = this Hook_Install: ld l,(ix + Hook.address) ld h,(ix + Hook.address + 1) ld e,(ix + Hook.oldHook) ld d,(ix + Hook.oldHook + 1) ld bc,5 push hl di ldir pop hl ld (hl),0C3H ; jp ...
; A213837: Principal diagonal of the convolution array A213836. ; 1,13,52,134,275,491,798,1212,1749,2425,3256,4258,5447,6839,8450,10296,12393,14757,17404,20350,23611,27203,31142,35444,40125,45201,50688,56602,62959,69775,77066,84848,93137,101949,111300,121206,131683,142747,154414,166700,179621,193193,207432,222354,23797...
; A212683: Number of (w,x,y,z) with all terms in {1,...,n} and |x-y| = w + |y-z|. ; 0,0,2,8,22,46,84,138,212,308,430,580,762,978,1232,1526,1864,2248,2682,3168,3710,4310,4972,5698,6492,7356,8294,9308,10402,11578,12840,14190,15632,17168,18802,20536,22374,24318,26372,28538,30820 mul $0,2 mov $1,$0 sub $0,1 pow $0,3 mov $...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h A DB 5 DUP(2) ret
; ; Small C z88 Character functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; 22 August 1998 ; ; 17/2/99 djm ; ; $Id: isalpha.asm,v 1.7 2016-03-06 21:41:15 dom Exp $ ; SECTION code_clib PUBLIC _isalpha PUBLIC isalpha EXTERN asm_isalpha ; FASTCALL ._isalpha .isalpha ld a,l call asm_isalpha l...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x11145, %rsi lea addresses_WT_ht+0x9be5, %rdi nop nop cmp %rdx, %rdx mov $61, %rcx rep movsb nop nop nop nop sub $39308, %r12 lea addresses_WC_ht+0x2fdf, %rbp nop nop nop xor ...
// Copyright (c) 2020 The Wflscoin 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 <chainparamsbase.h> #include <key.h> #include <key_io.h> #include <outputtype.h> #include <poli...
; Test case: org #4000 db "AB", loop % 256, loop / 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ds ((#6000 / 8192) * 8192) - $, 0 org (#6000 / 8192) * 8192 ds 8192 - ($ - ((#6000 / 8192) * 8192)), 0 org (#6000 / 8192) * 8192 loop: jp loop push af ld a, 1 ld (#6000), a pop af ld a, 3 ld (#7000...
IndigoPlateauLobby_h: db MART ; tileset db INDIGO_PLATEAU_LOBBY_HEIGHT, INDIGO_PLATEAU_LOBBY_WIDTH ; dimensions (y, x) dw IndigoPlateauLobby_Blocks ; blocks dw IndigoPlateauLobby_TextPointers ; texts dw IndigoPlateauLobby_Script ; scripts db 0 ; connections dw IndigoPlateauLobby_Object ; objects
; A285705: a(n) = 2*n - A285703(n) = 2*n - A000203(A064216(n)). ; 1,1,2,2,3,4,2,4,4,2,4,4,13,13,6,2,10,12,6,4,4,2,18,4,19,10,6,24,4,6,2,22,18,6,10,4,2,37,30,6,51,4,30,16,6,20,4,24,8,44,4,2,34,4,2,16,4,36,34,36,65,10,86,14,4,4,26,76,6,2,10,48,50,55,10,2,56,36,6,16,42,6,70,4,37,46,6,98,16,6,2,4,58,76,100,10,2,52,4,2 mo...
; ; Galaksija C Library ; ; getk() Read key status ; ; Stefano Bodrato - Apr. 2008 ; ; ; $Id: getk.asm,v 1.2 2015/01/19 01:33:20 pauloscustodio Exp $ ; PUBLIC getk .getk call $cf5 ld l,a ld h,0 ret
; A229665: Number of defective 4-colorings of an nX1 0..3 array connected horizontally, antidiagonally and vertically with exactly two mistakes, and colors introduced in row-major 0..3 order ; 0,0,1,3,12,50,210,861,3416,13140,49230,180455,649572,2302950,8060234,27900705,95659440,325241960,1097691462,3680494731,12268315...
/* * * Copyright (c) 2021 Project CHIP Authors * * 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 requir...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x16884, %rsi lea addresses_WC_ht+0x1d170, %rdi clflush (%rsi) clflush (%rdi) add $22999, %r14 mov $101, %rcx rep movsw add $8164, %rbx lea addresses_WC_ht+0x2638, %rsi lea addr...
; A328082: Triangle read by rows: columns are Fibonacci numbers F_{2i+1} shifted downwards. ; Submitted by Jamie Morken(s1) ; 1,2,1,5,2,1,13,5,2,1,34,13,5,2,1,89,34,13,5,2,1,233,89,34,13,5,2,1,610,233,89,34,13,5,2,1,1597,610,233,89,34,13,5,2,1,4181,1597,610,233,89,34,13,5,2,1,10946,4181,1597,610,233,89,34,13,5,2,1,2865...
// // VNodeHandler.hpp // VNodeHandler // // Copyright © 2018 Microsoft. All rights reserved. // #ifndef VNodeHandler_hpp #define VNodeHandler_hpp #include "AccessHandler.hpp" #include "PolicyResult.h" #define VNODE_CREATE 0 bool ConstructVNodeActionString(kauth_action_t action, b...
; A062107: Diagonal of table A062104. ; Submitted by Christian Krause ; 0,1,3,10,30,90,270,810,2430,7290,21870,65610,196830,590490,1771470,5314410,15943230,47829690,143489070,430467210,1291401630,3874204890,11622614670,34867844010,104603532030,313810596090,941431788270 mov $1,$0 cmp $0,2 add $0,1 sub $1,1 mov $2,3 pow...
; --------------------------------------------------------------------------- ; Sprite mappings - lava geyser / lava that falls from the ceiling (MZ) ; --------------------------------------------------------------------------- Map_Geyser_internal: dc.w @bubble1-Map_Geyser_internal dc.w @bubble2-Map_Geyser_internal...
.size 8000 .text@50 jp ltimaint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: xor a, a ldff(0f), a ldff(ff), a ld a, f0 ldff(05), a ldff(06), a ld a, 04 ldff(ff), a ld a, 05 ldff(07), a ei nop halt .text@1000 ltimaint: nop .text@1024 ld a, 01 ldff(07), a ld a, 05 ldff(07), a nop nop n...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The thecoffeecoins Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <netaddress.h> #include <crypto/common.h> #include <crypto/sha3....
; A063211: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 43 ). ; 3,10,18,24,32,38,46,52,60,66,74,80,88,94,102,108,116,122,130,136,144,150,158,164,172,178,186,192,200,206,214,220,228,234,242,248,256,262,270,276,284,290,298,304,312,318,326,332,340,346 mov $3,$0 trn $0,1 mod $0,2 add $0,3 mov $2,$3 m...
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
#ifndef COIN_H #define COIN_H #include <iostream> #include <string> #include <vector> #include <map> #include "../engine/include/game_object.hpp" #include "../engine/include/keyboard_event.hpp" #include "../engine/include/image.hpp" #include "../engine/include/game_object.hpp" namespace game { class Coin : public...
SFX_Silph_Scope_Ch4: duty 0 unknownsfx0x20 0, 210, 0, 7 unknownsfx0x20 0, 210, 64, 7 unknownsfx0x20 0, 210, 128, 7 unknownsfx0x20 0, 210, 192, 7 unknownsfx0x20 10, 225, 224, 7 unknownsfx0x20 1, 0, 0, 0 endchannel
; A213846: Antidiagonal sums of the convolution array A213844. ; Submitted by Jon Maiga ; 3,23,90,250,565,1113,1988,3300,5175,7755,11198,15678,21385,28525,37320,48008,60843,76095,94050,115010,139293,167233,199180,235500,276575,322803,374598,432390,496625,567765,646288,732688,827475,931175,1044330,1167498,1301253,144618...
idle: DB 145, 85, 170, 41, 34, 136, 18, 151, 121, 17, 18, 0 DB 16, 89, 170, 25, 34, 130, 18, 17, 17, 17, 18, 0 DB 16, 89, 154, 17, 17, 33, 17, 71, 120, 17, 17, 1 DB 16, 89, 154, 17, 17, 17, 17, 22, 129, 17, 17, 23 DB 16, 89, 170, 25, 151, 119, 121, 20, 132...
; A212984: Number of (w,x,y) with all terms in {0..n} and 3w = x+y. ; 1,1,3,6,8,12,17,21,27,34,40,48,57,65,75,86,96,108,121,133,147,162,176,192,209,225,243,262,280,300,321,341,363,386,408,432,457,481,507,534,560,588,617,645,675,706,736,768,801,833,867,902,936,972,1009 add $0,3 lpb $0 trn $0,2 trn $1,2 add $1,$0 ...
#include "image_operator.h" #include "image.h" #include "graph_particles.h" //------------------------------------------------------------------------------ namespace pmbp { //------------------------------------------------------------------------------ ImageOperator::ImageOperator(Image** img, Image** grad, I...
; A082413: a(n) = (2*9^n + 3^n)/3. ; 1,7,57,495,4401,39447,354537,3189375,28700001,258286887,2324542617,20920765455,188286534801,1694577750327,15251196564297,137260759512735,1235346806916801,11118121176157767,100063090327139577,900567812169415215,8105110307200214001,72945992757828357207,656513934799534508457,5908625413...
; A022963: 7-n. ; 7,6,5,4,3,2,1,0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52 sub $0,7 mul $0,-120259084286 mov $1,$0 div $1,120259084286
; A292616: a(n) = 3*a(n-2) - a(n-4) for n > 3, with a(0)=4, a(1)=3, a(2)=a(3)=6, a sequence related to bisections of Fibonacci numbers. ; Submitted by Christian Krause ; 4,3,6,6,14,15,36,39,94,102,246,267,644,699,1686,1830,4414,4791,11556,12543,30254,32838,79206,85971,207364,225075,542886,589254,1421294,1542687,3720996...
.global s_prepare_buffers s_prepare_buffers: push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x51c, %rsi lea addresses_A_ht+0x401c, %rdi clflush (%rsi) dec %rbp mov $40, %rcx rep movsq nop add %rbp, %rbp lea addresses_A_ht+0xb39c, %rsi lea addresses_D_ht+0x1c4dc, %rdi nop nop nop dec ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Video Drivers FILE: vidcomExclBounds.asm AUTHOR: Jim DeFrisco, Nov 24, 1992 ROUTINES: Name Description ---- ----------- REVISION HIST...
; A215037: a(n) = sum(fibonomial(k+3,3), k=0..n), n>=0. ; Submitted by Jon Maiga ; 1,4,19,79,339,1431,6072,25707,108922,461362,1954426,8278978,35070483,148560678,629313573,2665814361,11292572005,47836100785,202636977730,858384007525,3636173014596,15403076054964,65248477252164 mov $5,$0 mov $7,$0 add $7,1 lpb $7 mov ...
; A014298: a(n) = 2^n * (3n)! / (2n+1)!. ; Submitted by Jon Maiga ; 1,2,24,576,21120,1048320,65802240,5000970240,446557224960,45830873088000,5316381278208000,687893507997696000,98231192942070988800,15345895252950201139200,2603510504983275503616000,476694375041453927694336000,93692112621783944697741312000,19675343650574...
/* Talisker * Foundation Toolkit */ /* Copyright 2012-2017 Mo McRoberts. * * 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 * * ...
// // detail/deadline_timer_service.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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...
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2010 Return Infinity -- see LICENSE.TXT ; ; INIT HDD ; ============================================================================= align 16 db...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation 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 so...
;***************************************************************************** ;* x86util.asm ;***************************************************************************** ;* Copyright (C) 2008-2010 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Holger Lubitz <holger@lubitz.org> ;* ;* ...
Name: edit_3.asm Type: file Size: 44859 Last-Modified: '1992-02-13T07:47:51Z' SHA-1: FDD8129F7630991B386AC3DC10F11481FB9E3FCB Description: null
; A198853: a(n) = 5*8^n - 1. ; 4,39,319,2559,20479,163839,1310719,10485759,83886079,671088639,5368709119,42949672959,343597383679,2748779069439,21990232555519,175921860444159,1407374883553279,11258999068426239,90071992547409919,720575940379279359,5764607523034234879,46116860184273879039,368934881474191032319,2951479051...
; A001855: Sorting numbers: maximal number of comparisons for sorting n elements by binary insertion. ; 0,1,3,5,8,11,14,17,21,25,29,33,37,41,45,49,54,59,64,69,74,79,84,89,94,99,104,109,114,119,124,129,135,141,147,153,159,165,171,177,183,189,195,201,207,213,219,225,231,237,243,249,255,261,267,273,279,285,291,297,303,309...
#include "processorselectiondialog.h" #include "ui_processorselectiondialog.h" #include <QCheckBox> #include <QDialogButtonBox> #include "processorhandler.h" #include "radix.h" #include "ripessettings.h" namespace Ripes { ProcessorSelectionDialog::ProcessorSelectionDialog(QWidget* parent) : QDialog(parent), m_u...
// first solution class Solution { public: string helper(map<string, int>& count) { int maxi=-1; string ans; map<string, int>::iterator itr; for(itr=count.begin(); itr!=count.end(); itr++) { if(itr->second > maxi) { ...
; Provided under the CC0 license. See the included LICENSE.txt for details. pfscroll ;(a=0 left, 1 right, 2 up, 4 down, 6=upup, 12=downdown) bne notleft ;left ifconst pfres ldx #pfres*4 else ldx #48 endif leftloop lda playfield-1,x lsr ifconst superchip lda playfield-2,x rol sta playfield...
; A268810: a(n) = 2*floor(3*n*(n+1)/4). ; 0,2,8,18,30,44,62,84,108,134,164,198,234,272,314,360,408,458,512,570,630,692,758,828,900,974,1052,1134,1218,1304,1394,1488,1584,1682,1784,1890,1998,2108,2222,2340,2460,2582,2708,2838,2970,3104,3242,3384,3528,3674,3824,3978,4134,4292,4454,4620,4788,4958,5132,5310,5490,5672,5858,...
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * On-screen display of translation notes. */ #include "thcrap.h" #include <vector> #include "minid3d.h" #include "textdisp.h" #include "tlnote.hpp" #pragma comment(lib, "winmm.lib") #define COM_ERR_WRAP(func, ...) { \ HRESULT d3d_r...
; A269174: Formula for Wolfram's Rule 124 cellular automaton: a(n) = (n OR 2n) AND ((n XOR 2n) OR (n XOR 4n)). ; Coded manually 2021-03-30 by Simon Strandgaard, https://github.com/neoneye ; 0,3,6,7,12,15,14,11,24,27,30,31,28,31,22,19,48,51,54,55,60,63,62,59,56,59,62,63,44,47,38,35,96,99,102,103,108,111,110,107,120,123,...
; A141953: Primes congruent to 8 mod 27. ; 89,197,251,359,467,521,683,953,1061,1223,1277,1439,1493,1601,1709,1871,1979,2087,2141,2357,2411,2789,2843,2897,3167,3221,3329,3491,3761,3923,4139,4409,4463,4517,4679,4733,4787,5003,5273,5381,5651,5813,5867,6029,6299,6353,6569,6947,7001,7109,7433,7487,7541,7649,7703,7757,7919,8...
; Returns channel ID of SuperBASIC channel # or default #1 section utility xdef bi_gtchn xdef bi_gtch0 include dev8_keys_qlv include dev8_keys_err ;+++ ; Returns channel ID of SuperBASIC channel # or default given # ; ; Entry Exit...
;INPUT: r16 address to write to, r17 data to write eeprom_write: sbic EECR, EEPE rjmp eeprom_write out EEARL, r16 out EEDR, r17 sbi EECR, EEMPE ;enable eeprom sbi EECR, EEPE ;enable write ret ;INPUT: r16 address to read from ;OUTPUT:r17 data byte eeprom_read: sbic EECR, EEPE rjmp eeprom_re...
global foo:(foo_end - foo) global foo_hidden:function hidden global foo_protected:function protected global foo_internal:function internal global foo_weak:function weak global foo_hidden_weak:function hidden weak extern strong_ref, weak_ref:weak, unused_ref extern weak_object_ref:weak object required required_ref SEC...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x7d5e, %rbp nop nop nop xor %r13, %r13 mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%rbp) nop nop nop nop xor $29685, %r9 lea addresses_WC_ht+0x1d024, %rsi le...
; ;Copyright 2014 Jay Sorg ; ;Permission to use, copy, modify, distribute, and sell this software and its ;documentation for any purpose is hereby granted without fee, provided that ;the above copyright notice appear in all copies and that both that ;copyright notice and this permission notice appear in supporting ;doc...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x120af, %r12 nop nop nop nop inc %r14 mov $0x6162636465666768, %r10 movq %r10, (%r12) nop nop nop sub $14991, %r11 lea addresses_normal_ht+0xc977, %rdx nop nop nop ...
; A053666: Product of digits of n-th prime. ; Submitted by Jon Maiga ; 2,3,5,7,1,3,7,9,6,18,3,21,4,12,28,15,45,6,42,7,21,63,24,72,63,0,0,0,0,3,14,3,21,27,36,5,35,18,42,21,63,8,9,27,63,81,2,12,28,36,18,54,8,10,70,36,108,14,98,16,48,54,0,3,9,21,9,63,84,108,45,135,126,63,189,72,216,189,0,0,36,8,12,36,108,48,144,140,24,72,...
;This program is a virus that infects all files, not just executables. It gets ;the first five bytes of its host and stores them elsewhere in the program and ;puts a jump to it at the start, along with the letters "GR", which are used to ;by the virus to identify an already infected program. The virus also save ;target...
; ; TEXAS INSTRUMENTS TEXT FILE LICENSE ; ; Copyright (c) 2018 Texas Instruments Incorporated ; ; All rights reserved not granted herein. ; ; Limited License. ; ; Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive ; license under copyrights and patents it now or hereafter owns...
#include "gamepch.h" #include "GameState.h" #include "Star.h" #include "Debug.h" #include "Camera.h" #include "Constellation.h" void GameState::changeToLocalView(Star* star) { if (m_state == GameState::State::LOCAL_VIEW) return; m_camera.setPos(star->getLocalViewCenter()); m_camera.setAbsoluteZoom(10.0f); star...
; A088556: Numbers of the form (4^n + 4^(n-1) + ... + 1) + (n mod 2). ; 6,21,86,341,1366,5461,21846,87381,349526,1398101,5592406,22369621,89478486,357913941,1431655766,5726623061,22906492246,91625968981,366503875926,1466015503701,5864062014806,23456248059221,93824992236886,375299968947541,1501199875790166,6004799503160...
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferab...
; A146883: a(n) = 6 * Sum_{m=0..n} 5^m. ; 6,36,186,936,4686,23436,117186,585936,2929686,14648436,73242186,366210936,1831054686,9155273436,45776367186,228881835936,1144409179686,5722045898436,28610229492186,143051147460936,715255737304686 mov $1,5 pow $1,$0 div $1,4 mul $1,30 add $1,6
DEF n EQU 0 REDEF n EQU 1 ; prints "$1" PRINTLN n list: MACRO LIST_NAME EQUS "\1" DEF LENGTH_{LIST_NAME} EQU 0 ENDM item: MACRO REDEF LENGTH_{LIST_NAME} EQU LENGTH_{LIST_NAME} + 1 DEF {LIST_NAME}_{d:LENGTH_{LIST_NAME}} EQU \1 ENDM list SQUARES item 1 item 4 item 9 println LENGTH_SQUARES, SQUARES_1, SQUARES_2, S...
# Ch26-1.asm #Arithmetic Expression: 5u^2 - 12uv + 6v^2 .data prompt_u: .asciiz "Enter values for u: " prompt_v: .asciiz "Enter values for v: " result: .asciiz "The result is: " .text .globl main main: la $a0, prompt_u # print string li $v0, 4 # service 4 syscall li $v0, 5 ...
;******************************************************************************* ;* Tutorial Nineteen Output to a device using Kernel Jump Vectors * ;* * ;* Written By John C. Dale ...
; Asynchronous Communications Interface Adapter (ACIA) - DCE ACIA1 = $7700 ; Base address of ACIA1 ACIA1_DATA = ACIA1 ; Data register ACIA1_STATUS = ACIA1+1 ; Read: Status Register, Write: Programmed Reset ACIA1_CMD = ACIA1+2 ; Command Register ACIA1_CTRL = ACIA1+3 ; Control Register ; Versatile Interface Adapte...
SECTION code_clib SECTION code_im2 PUBLIC asm_im2_pop_registers_8080 asm_im2_pop_registers_8080: ; pop the main registers from the stack ; must be called ; uses : af, bc, de, hl pop hl pop de pop bc pop af ex (sp),hl ret
/* Copyright 2006-2008 Joaquin M Lopez Munoz. * 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) * * See http://www.boost.org/libs/flyweight for library home page. */ #ifndef BOOST_FLYWEIGHT_TRACKING_TAG...
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
; void _div_(div_t *d, int numer, int denom) SECTION code_stdlib PUBLIC _div__callee EXTERN asm__div _div__callee: pop af pop de pop hl pop bc push af jp asm__div
;/*++ ; ;Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ;This program and the accompanying materials ;are licensed and made available under the terms and conditions of the BSD License ;which accompanies this distribution. The full text of the license may be foun...
; sp1_DrawUpdateStructIfVal(struct sp1_update *u) SECTION code_clib SECTION code_temp_sp1 PUBLIC sp1_DrawUpdateStructIfVal EXTERN asm_sp1_DrawUpdateStructIfVal defc sp1_DrawUpdateStructIfVal = asm_sp1_DrawUpdateStructIfVal
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2016 Return Infinity -- see LICENSE.TXT ; ; Include file for Bare Metal program development (API version 2.0) ; =========================================...
; A040451: Continued fraction for sqrt(473). ; 21,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1,42,1,2,1 mov $5,$0 mov $7,2 lpb $7,1 clr $0,5 mov $0,$5 sub $7,1 add $0,$7 sub $0,...
; BEGIN_LEGAL ; Intel Open Source License ; ; Copyright (c) 2002-2016 Intel Corporation. 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 reta...
/* This file is part of VROOM. Copyright (c) 2015-2018, Julien Coupey. All rights reserved (see LICENSE). */ #include "christofides.h" std::list<index_t> christofides(const matrix<cost_t>& sym_matrix) { // The eulerian sub-graph further used is made of a minimum spanning // tree with a minimum weight perfect m...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <__msvc_all_public_headers.hpp> #ifdef _M_CEE_PURE int main() { #else int __cdecl main() { #endif // Test Dev10-465793 "iostreams: <locale> is incompatible with /Gr and /Gz". std::locale loc(...
dnl S/390-64 mpn_mod_34lsub1 dnl Copyright 2011 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the F...
Total: 822.30MB ROUTINE ======================== main.(*Graph).buildAdjList 374.64MB 374.64MB (flat, cum) 45.56% of Total . . 10ca6a0: MOVQ GS:0x30, CX ;graph.go:102 . . 10ca6a9: LEAQ -0x60(SP), AX . . 10ca6ae: CMPQ 0x10(CX), AX ...
; A142220: Primes congruent to 23 mod 41. ; Submitted by Jon Maiga ; 23,269,433,761,1171,1499,1663,2237,2647,2729,3221,3467,3631,3877,4451,4861,4943,5107,5189,5927,6091,6173,6337,6829,6911,7321,7649,8059,8387,9043,9371,9781,10273,10601,10847,11093,11257,11503,11831,12241,12323,12487,12569,12979,13553,13799,13963,14537,...
/* * Copyright (c) 2018 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
; SameBoy CGB bootstrap ROM ; Todo: use friendly names for HW registers instead of magic numbers SECTION "BootCode", ROM0[$0] Start: ; Init stack pointer ld sp, $fffe ; Clear memory VRAM call ClearMemoryPage8000 ld a, 2 ld c, $70 ld [c], a ; Clear RAM Bank 2 (Like the original boot ROM) ld h, $...
; A261466: Records in A261461. ; Submitted by Jamie Morken(s4) ; 1,2,3,4,5,7,8,9,10,11,13,15,16,17,18,19,20,21,22,23,25,26,27,29,31 mov $4,$0 mov $5,$0 lpb $4 mov $0,$5 sub $4,1 sub $0,$4 add $0,3 mul $0,4 mov $2,2 mov $3,11 lpb $0 pow $0,$2 add $2,$3 div $0,$2 mod $0,$2 sub $2,1 ...
_stressfs: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "fs.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 55 push %ebp int fd, i; char path[] = "stressfs0"; 1: b8 30 00 00 00 mov $0x30,%eax { 6: 89 e5 mo...