text
stringlengths
1
1.05M
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994. All rights reserved. GEOWORKS CONFIDENTIAL PROJECT: Pasta MODULE: Fax FILE: faxprintStartPage.asm AUTHOR: Jacob Gabrielson, Apr 7, 1993 ROUTINES: Name Description ---- ----------- ...
#include "VHud.h" #include "TextNew.h" #include "Utility.h" #include "MenuNew.h" #include "CText.h" #include "CFileMgr.h" using namespace plugin; CTextNew TextNew; static LateStaticInit InstallHooks([]() { TextNew.ReadLanguagesFromFile(); CdeclEvent<AddressList<0x6A03E3, H_CALL>, PRIORITY_AFTER, ArgPickNon...
;;############################################################################# ;;! \file source/CFFT32_mag.asm ;;! ;;! \brief Magnitude function for the complex FFT ;;! ;;! \date Nov 2, 2010 ;;! ;; ;; Group: C2000 ;; Target Family: C28x ;; ;;##########################################################...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0xbf9b, %r15 nop nop dec %rsi movb (%r15), %r9b nop nop and %rax, %rax lea addresses_D_ht+0x153b8, %rsi lea addresses_A_ht+0xba98, %rdi nop nop nop nop nop sub $43565, %rax mov $51, %rcx ...
; A003269: a(n) = a(n-1) + a(n-4) with a(0) = 0, a(1) = a(2) = a(3) = 1. ; Submitted by Christian Krause ; 0,1,1,1,1,2,3,4,5,7,10,14,19,26,36,50,69,95,131,181,250,345,476,657,907,1252,1728,2385,3292,4544,6272,8657,11949,16493,22765,31422,43371,59864,82629,114051,157422,217286,299915,413966,571388,788674,1088589,1502555...
; A309075: Total number of black cells after n iterations of Langton's ant with two ants on the grid placed side-by-side on neighboring squares and initially looking in the same direction. ; 0,2,2,4,6,6,8,8,8,6,6,4,2,2,0,2,2,4,6,6,8,8,8,6,6,4,2,2,0,2,2,4,6,6,8,8,8,6,6,4,2,2,0,2,2,4,6,6,8,8,8,6,6,4,2,2,0,2,2,4,6,6,8,8,8...
#include "JanusContext.h" #include "Function.h" #include "Executable.h" #include "Arch.h" #include "Analysis.h" #include "ControlFlow.h" #include "SSA.h" #include "AST.h" #include <iostream> #include <sstream> #include <string> #include <queue> #include <algorithm> using namespace std; using namespace janus; Function...
;***************************************************************************** ;* predict-a.asm: x86 intra prediction ;***************************************************************************** ;* Copyright (C) 2005-2020 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Holger Lubitz <h...
;; ======================================================================== ;; ;; Jean-Luc Project Feature Test ;; ;; ======================================================================== ;; ;* ======================================================================== *; ;* ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1a4fb, %r9 sub %rbp, %rbp mov (%r9), %r13d nop nop inc %r14 lea addresses_UC_ht+0x14d5b, %rbx nop and $3431, %rcx mov $0x6162636465666768, %r8 movq %r8, (%rbx) nop n...
;LJMP addr16 LJMP 0x10 cseg at 0x10 mov a,#1 LJMP 0xFF00 cseg at 0xF0 mov a,#0xFF LJMP 0x10 cseg at 0xff00 mov a,#0xF LJMP 0xFFFB cseg at 0xFFFB mov a,#0xF0 LJMP 0xF0
.code CallFunction PROC PUBLIC ; save r15, r14 which are nonvolatile registers push r15 push r14 ; save rsp into r15 mov r15, rsp ; save rcx into r14 mov r14, rcx ; align the stack to 16 bytes sub rsp, 8 ; move the stack arguments pointer into rax mov rax, QWORD PTR [r14+40] ; is poin...
ori $1, $0, 0 ori $2, $0, 1 ori $3, $0, 8 ori $4, $0, 15 sw $1, 0($0) sw $1, 4($0) sw $3, 8($0) sw $2, 12($0) sw $2, 16($0) sw $1, 20($0) sw $2, 24($0) sw $4, 28($0) sw $3, 32($0) sw $2, 36($0) sw $2, 40($0) sw $2, 44($0) sw $4, 48($0) sw $3, 52($0) sw $3, 56($0) sw $3, 60($0) sw $2, 64($0) sw $3, 68($0) sw $4, 72($0) ...
/** * @file data_algorithm_chunk.hpp * @author Jichan (development@jc-lab.net / http://ablog.jc-lab.net/ ) * @date 2019/07/23 * @copyright Copyright (C) 2019 jichan.\n * This software may be modified and distributed under the terms * of the Apache License 2.0. See the LICENSE file for detai...
/** * Copyright (C) 2021 All rights reserved. * * FileName :result.cpp * Author :C.K * Email :theck17@163.com * DateTime :2021-08-01 20:02:42 * Description : */ using namespace std; class Solution { public: string addBinary(string a, string b) { string s =...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
// This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #include "../unittests.h" #include "../../../lib/cinvalidrectlist.h" namespace VSTGUI { TESTCASE(CInvalidRectListT...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1d16, %rax nop nop nop nop nop sub $6767, %r14 mov $0x6162636465666768, %rsi movq %rsi, %xmm4 movups %xmm4, (%rax) xor %r13, %r13 lea addresses_WT_ht+0xc4c5, %r15 no...
; A124610: a(n) = 5*a(n-1) + 2*a(n-2), n>1; a(0) = a(1) = 1. ; 1,1,7,37,199,1069,5743,30853,165751,890461,4783807,25699957,138067399,741736909,3984819343,21407570533,115007491351,617852597821,3319277971807,17832095054677,95799031216999,514659346194349,2764894793405743 mov $1,8 lpb $0 sub $0,1 add $3,$1 add $1,$3...
; int fzx_putc(struct fzx_state *fs, int c) SECTION code_font_fzx PUBLIC _fzx_putc EXTERN l0_fzx_putc_callee _fzx_putc: pop af pop ix pop bc push bc push hl push af jp l0_fzx_putc_callee
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0xdb96, %rsi nop nop nop and $46797, %r14 mov $0x6162636465666768, %r9 movq %r9, %xmm7 and $0xffffffffffffffc0, %rsi movaps %xmm7, (%rsi) nop nop nop nop nop and $11815, %rbx l...
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_terminal_output PUBLIC vgl_01_output_2000_oterm_msg_printc EXTERN vgl_01_output_2000_refresh vgl_01_output_2000_oterm_msg_printc: ; enter : c = ascii code ; b = parameter (foreground colour, 255 if none specified) ; ...
TITLE Binary Search Procedure (BinarySearch.asm) ; Binary Search procedure INCLUDE Irvine32.inc .code ;------------------------------------------------------------- BinarySearch PROC USES ebx edx esi edi, pArray:PTR DWORD, ; pointer to array Count:DWORD, ; array size searchVal:DWORD ; search valu...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The RareShares Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.or...
dnl ARM64 mpn_add_n and mpn_sub_n dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2013, 2017 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: dn...
// ======================================================================== // // Copyright 2009-2018 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
; A288876: a(n) = binomial(n+4, n)^2. Square of the fifth diagonal sequence of A007318 (Pascal). Fifth diagonal sequence of A008459. ; 1,25,225,1225,4900,15876,44100,108900,245025,511225,1002001,1863225,3312400,5664400,9363600,15023376,23474025,35820225,53509225,78411025,112911876,160022500,223502500,308002500,41922562...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/proxy_resolution/mojo_proxy_resolver_v8_tracing_bindings.h" #include <string> #include <utility> #include <vector> #include "base/macros.h...
; ; Fast CLS for the Robotron Z9001 ; Stefano - Sept 2016 ; ; ; $Id: clg.asm,v 1.2 2017/01/02 22:57:59 aralbrec Exp $ ; SECTION code_clib PUBLIC clg PUBLIC _clg .clg ._clg ld hl,0 ld d,h ld e,h add hl,sp ld b,8 ld a,@00001000 ; GFX mode bit .g_gcls1 ...
; A070923: a(n) is the smallest value >= 0 of the form x^3 - n^2. ; 0,4,18,11,2,28,15,0,44,25,4,72,47,20,118,87,54,19,151,112,71,28,200,153,104,53,0,216,159,100,39,307,242,175,106,35,359,284,207,128,47,433,348,261,172,81,535,440,343,244,143,40,566,459,350,239,126,11,615,496,375,252,127,0,688,557,424,289,152,13,791,648,...
; A055364: Number of asymmetric mobiles (circular rooted trees) with n nodes and 3 leaves. ; 1,4,10,22,42,73,119,184,272,389,540,731,969,1261,1614,2037,2538,3126,3811,4603,5512,6550,7728,9058,10553,12226,14090,16160,18450,20975,23751,26794,30120,33747,37692,41973,46609,51619,57022,62839,69090,75796,82979 mov $2,$0 add...
; A116483: Expansion of (1 + x) / (5*x^2 - 2*x + 1). ; Submitted by Jon Maiga ; 1,3,1,-13,-31,3,161,307,-191,-1917,-2879,3827,22049,24963,-60319,-245453,-189311,848643,2643841,1044467,-11130271,-27482877,685601,138785587,274143169,-145641597,-1661999039,-2595790093,3118415009,19215780483,22839485921,-50399930573,-21499...
; A289748: Thue-Morse constant converted to base -2. ; Submitted by Jamie Morken(w2) ; 1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,0,1 sub $0,1 dif $0,-2 max $0,0 seq ...
/* D 1 2 E Q T A C Z 4 3 E W S D C X 6 5 R T G F B V 8 7 U Y H J N SPACE 0 9 O I L K M , ^ - @ P ; : / . C [ E ] 4 SH \ CT L C 7 8 5 1 2 0 U R D 9 6 3 E . */ DEFINE KEYB_X 21 DEFINE KEYB_Y 25 KeyboardLocationsMatrix: ;; Column, row, char ;; 0 db KEYB_X+KEYB_COL_SPACING*1, KEYB_ROW_10 ; # Key...
// Copyright (c) 2014-2015 The Dash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode.h" #include "addrman.h" #include "masternodeman.h" #include "obfuscation.h" #include "sync.h" #include "util...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
; Ex__4_16_bit_addition.asm ; Try running this code at ; https://skilldrick.github.io/easy6502/ ; Set up the values to be added ; Remove the appropriate semicolons to select the bytes to add: ; ($0000 + $0001) or ($00FF + $0001) or ($1234 + $5678) LDA #$00 ;LDA #$FF ;LDA #$34 STA $00 LDA #$00 ;LDA #$00 ;LDA #$12 STA...
; A134142: List of quadruples: 2*(-4)^n, -3*(-4)^n, 2*(-4^n), 2*(-4)^n, n >= 0. ; 2,-3,2,2,-8,12,-8,-8,32,-48,32,32,-128,192,-128,-128,512,-768,512,512,-2048,3072,-2048,-2048,8192,-12288,8192,8192,-32768,49152,-32768,-32768,131072,-196608,131072,131072,-524288,786432,-524288,-524288,2097152,-3145728,2097152,2097152,-83...
; A112697: Partial sum of Catalan numbers A000108 multiplied by powers of 3. ; Submitted by Jamie Morken(s2) ; 1,4,22,157,1291,11497,107725,1045948,10428178,106126924,1097913928,11511677470,122057782762,1306480339462,14098243951822,153208673236237,1675240428936307,18417589741637077,203464608460961377,225748651624546110...
; draw the string 'F00' to the screen ; (C) Tamer Aly, 2018 ; the beginning of the actual program start ; draw the 'F' ILOAD f_char ; load the 'F' into index LOAD R0, $A ; load 10 into register 0 LOAD R1, $5 ; load 5 into register 1 DRAW R0, R1, $5 ; draw a 5 byte character ; draw the '0' ...
; A086228: Determinant of n X n matrix M(i,j)=binomial(2i+1, j). ; Submitted by Christian Krause ; 1,3,15,140,2520,88704,6150144,843448320,229417943040,123987652771840,133311524260282368,285432092670742757376,1217843595395169098137600,10360289146303272377017958400,175805226564926843718814452940800,595281185288217357547...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) erkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Screen Dumps -- PostScript Common Code FILE: psc.asm AUTHOR: Adam de Boor, Jan 17, 1990 ROUTINES: Name Description ---- ----------...
Music_MagnetTrain: musicheader 4, 1, Music_MagnetTrain_Ch1 musicheader 1, 2, Music_MagnetTrain_Ch2 musicheader 1, 3, Music_MagnetTrain_Ch3 musicheader 1, 4, Music_MagnetTrain_Ch4 Music_MagnetTrain_Ch1: tempo 110 volume $77 stereopanning $f vibrato $14, $23 dutycycle $2 notetype $c, $b2 note __, 16 note __,...
/* * (C) Copyright 1996-2012 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
; this example gets the number from the user, ; and calculates factorial for it. ; supported input from 0 to 8 inclusive! name "fact" ; this macro prints a char in AL and advances ; the current cursor position: putc macro char push ax mov al, char mov ah, 0eh ...
;-------------------------------------------------------------------------------- ; Init_Primary ;-------------------------------------------------------------------------------- ; This can be as inefficient as we want. Interrupts are off when this gets ; called and it only gets called once ever during RESET. ;--------...
.model small .data .code main proc MOV AL,10101110b AND AL,11110110b endp end main28 - and_1.asm
# Paul McKenney's Statistical Counter (PerfBook 5.2) using CAS # # Counter thread: increment global variable heap[0] 3 times. # # steps: maximum CAS executions = 3 * m * (m + 1) / 2 # = 3 times triangular number for m threads # * formula = cas * 3 * m * (m + 1) / 2 + 3 * (loop - cas) + tot...
; A118610: Start with 1 and repeatedly reverse the digits and add 24 to get the next term. ; 1,25,76,91,43,58,109,925,553,379,997,823,352,277,796,721,151,175,595,619,940,73,61,40,28,106,625,550,79,121,145,565,589,1009,9025,5233,3349,9457,7573,3781,1897,8005,5032,2329,9256,6553,3580,877,802,232,256,676 mov $2,$0 mov $0...
; A094706: Convolution of Pell(n) and 2^n. ; Submitted by Christian Krause ; 0,1,4,13,38,105,280,729,1866,4717,11812,29365,72590,178641,438064,1071153,2613138,6362965,15470140,37565389,91125206,220864377,534951112,1294960905,3133261530,7578261181,18323338324,44292046693,107041649438,258643781025,624866082400,1509449687...
; A033350: a(n) = floor(30/n). ; 30,15,10,7,6,5,4,3,3,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 add $0,1 mov $1,30 div $1,$0 mov $0,$1
; uint16_t in_pause_fastcall(uint16_t dur_ms) SECTION code_clib SECTION code_input PUBLIC _in_pause_fastcall EXTERN asm_in_pause defc _in_pause_fastcall = asm_in_pause
;; Author: Moss Gallagher ;; Data: 13-Oct-21 %ifndef _Mycelium_std_out_ %define _Mycelium_std_out_ %include "std/sys.asm" ; Print the passed string to stdout ; Args ; rax: the string to be printed ; rbx: length of the string ; Returns ; void out~puts: push rbp mov rbp, rsp push rax ...
// BS_Client.cpp,v 1.9 2000/11/30 06:03:51 pradeep Exp #include "Options.h" #include "File_Manager.h" #include "BS_Client.h" #include "ace/Log_Msg.h" BS_Client::BS_Client (void) { this->count_ = FILE_MANAGER::instance ()->open_file (Options::friend_file); if (this->count_ < 0) ACE_ERROR ((LM_ERRO...
;Z88 Small C Library functions, linked using the z80 module assembler ;Small C Z88 converted by Dominic Morris <djm@jb.man.ac.uk> ; ;11/3/99 djm Saved two bytes by removing useless ld h,0 ; ; ; $Id: getk.asm,v 1.3 2016/03/13 18:14:13 dom Exp $ ; SECTION code_clib PUBLIC getk ;Read keys .g...
; A007040: Number of (marked) cyclic n-bit binary strings containing no runs of length > 2. ; 2,2,6,6,10,20,28,46,78,122,198,324,520,842,1366,2206,3570,5780,9348,15126,24478,39602,64078,103684,167760,271442,439206,710646,1149850,1860500,3010348,4870846,7881198,12752042,20633238,33385284,54018520,87403802,141422326,2288...
; A269878: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 43", based on the 5-celled von Neumann neighborhood. ; 1,6,11,48,61,158,183,368,409,710,771,1216,1301,1918,2031,2848,2993,4038,4219,5520,5741,7326,7591,9488,9801,12038,12403,15...
;----------------------------------------------------------------------------- ; Paul Wasson - 2021 ;----------------------------------------------------------------------------- ; inline_print - display following string to COUT ;----------------------------------------------------------------------------- ; Uses stack...
ORG 1000 START: ACI 40 XTHL JMP J1 NOP ORG 2000 J1: HLT END HLT
; A067699: Number of comparisons made in a version of the sorting algorithm QuickSort for an array of size n with n identical elements. ; 0,4,8,14,18,24,30,38,42,48,54,62,68,76,84,94,98,104,110,118,124,132,140,150,156,164,172,182,190,200,210,222,226,232,238,246,252,260,268,278,284,292,300,310,318,328,338,350,356,364,37...
if not defined FDIV INCLUDE "print_fp.asm" ; HL = BC / HL DEBUG@FDIV: FDIV: CALL @FDIV ; 3:17 PUSH HL ; 1:11 LD HL, '/'+' ' * 256 ; 3:10 "/ " LD A, COL_BLUE ; 2:7 JP PRINT_XFP ...
.init main .code check_lsh: mov i9 @512 mov i0 @2 mov i1 @8 lsh i0 i0 i1 aseq i9 i0 ret check_rsh: mov i9 @2 mov i0 @512 mov i1 @8 rsh i0 i0 i1 aseq i9 i0 ret check_and: mov i9 @1 mov i0 @9 mov i1 @3 and i0 i0 i1 aseq i9 i0 ret check_or: mov i9 @11 mov i0 @9 mov i1 @3 o...
SECTION code_driver SECTION code_driver_character_output PUBLIC _siob_flush_Tx_di PUBLIC _siob_flush_Tx EXTERN asm_z80_push_di, asm_z80_pop_ei EXTERN siobTxCount, siobTxIn, siobTxOut, siobTxBuffer _siob_flush_Tx_di: push af push hl call asm_z80_push_di ; ...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include "ai_behavior_police.h" #include "ai_navigator.h" #include "ai_memory.h" #include "collisionutils.h" #include "np...
; A037525: Base-8 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,0. ; Submitted by Christian Krause ; 2,17,136,1090,8721,69768,558146,4465169,35721352,285770818,2286166545,18289332360,146314658882,1170517271057,9364138168456,74913105347650,599304842781201,4794438742249608,38355...
SECTION UNION "test", WRAM0 Base: ds $1000 SECTION UNION "test", WRAM0,ALIGN[8] ds 42 Plus42: SECTION UNION "test", WRAM0,ALIGN[4] SECTION UNION "test", WRAM0[$C000] ; Since the section's base address is known, the labels are constant now ds $1000 ; This shouldn't overflow End: SECTION UNION "test", WRAM0,ALIGN[...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %r8 push %r9 push %rdx push %rsi // Store lea addresses_RW+0x16f04, %r13 nop nop sub $9017, %rdx mov $0x5152535455565758, %r8 movq %r8, %xmm0 vmovups %ymm0, (%r13) nop nop nop nop nop add $4013...
; A002808: The composite numbers: numbers n of the form x*y for x > 1 and y > 1. ; 4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104,105,106,10...
SECTION code_fp_math48 PUBLIC _isless EXTERN cm48_sdcciy_isless defc _isless = cm48_sdcciy_isless
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; interrupt driven serial routines ; ; ; ------ ; $Id: serial_int.asm,v 1.5 2016-06-27 21:25:36 dom Exp $ ; SECTION code_clib PUBLIC serial_int PUBLIC serial_int_check PUBLIC ozserbufget PUB...
// // Created by tridu33 on 9/27/2021. // #include "quickSortRand.h" #include <stdlib.h> /* srand, rand */ using namespace std; #include <bits/stdc++.h> class Solution { public: int partition(vector<int> & nums,int l,int r){ int pivot = nums[r]; int s = l,e = r-1; while(s<=e){ ...
############################################################################## # Program : MindReader Programmer: Chaoran Li, Jiaer JIang, Xue Cheng, Pengfei Tong # Due Date: 12/05/19 Last Modified:11/08/19 # Course: CS3340 Section:501 ############################################################################# # Desc...
#include <vector> #include "DDImage/Writer.h" #include "DDImage/Thread.h" #include "DDImage/Row.h" #include <OpenImageIO/filter.h> #include <OpenImageIO/imagebuf.h> #include <OpenImageIO/imagebufalgo.h> /* * TODO: * - Look into using an ImageBuf iterator to fill the source buffer. * - Support for more than 4 out...
; A037141: Convolution of natural numbers n >= 1 with Fibonacci numbers F(k), for k >= -5, with F(-n)=(-1)^(n+1)*F(n);. ; 5,7,11,14,18,22,27,33,41,52,68,92,129,187,279,426,662,1042,1655,2645,4245,6832,11016,17784,28733,46447,75107,121478,196506,317902,514323,832137,1346369,2178412,3524684,5702996,9227577,14930467,24157...
/**************************************************************************** ** Meta object code from reading C++ file 'EditorDescripttionSetup.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) ** ** WARNING! All changes made in this file will be lost! ********************************************...
; Windows intro skeleton by TomCat/Abaddon ; Flashdance/MIDI music by ern0 RESX EQU 256 RESY EQU 160 BASE EQU 00400000H ORG BASE USE32 FORMAT BINARY AS 'exe' DW 'MZ' ; 00.e_magic DW ? ; 02.e_cblp DD 'PE' ; 04.Signature DW 014CH ; 08.Machine DW 0 ; 0A.NumberOfSections DD ? ...
; A139280: a(n) = 90*n - 81. ; 9,99,189,279,369,459,549,639,729,819,909,999,1089,1179,1269,1359,1449,1539,1629,1719,1809,1899,1989,2079,2169,2259,2349,2439,2529,2619,2709,2799,2889,2979,3069,3159,3249,3339,3429,3519,3609,3699,3789,3879,3969,4059,4149,4239,4329,4419,4509,4599,4689,4779,4869,4959,5049,5139,5229,5319,5409...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1a7d5, %r13 nop nop xor $49099, %r12 mov (%r13), %r14w nop nop nop nop inc %r9 lea addresses_normal_ht+0xb815, %rdx nop nop cmp $9625, %r9 mov $0x6162636465666768, %rsi movq ...
; A183624: Number of (n+1) X 2 0..2 arrays with every 2 x 2 subblock summing to 4. ; 19,45,115,309,859,2445,7075,20709,61099,181245,539635,1610709,4815739,14414445,43177795,129402309,387944779,1163310045,3488881555,10464547509,31389448219,94159956045,282463090915,847355718309,2542000046059,7625865920445,22877329325875,...
; ; ZX IF1 & Microdrive functions ; ; Get Microdrive status ; ; int if1_mdv_status (int drive); ; ; Returns: ; 0: Microdrive Ready, cartridge inserted, no write protection ; 1: Cartridge is write protected ; 2: Microdrive not present ; ; $Id: if1_mdv_status.asm,v 1...
#ifndef LM_BINARY_FORMAT_H #define LM_BINARY_FORMAT_H #include "lm/config.hh" #include "lm/model_type.hh" #include "lm/read_arpa.hh" #include "util/file_piece.hh" #include "util/mmap.hh" #include "util/scoped.hh" #include <cstddef> #include <vector> #include <stdint.h> namespace lm { namespace ngram { extern cons...
; /** ; * syscall.asm ; */ %include "sconst.inc" _NR_get_ticks equ 0 ; 要跟 global.c 中 sys_call_table 的定义相对应! _NR_ipc_send equ 1 INT_VECTOR_SYS_CALL equ 0x36 ; 导出符号 global get_ticks ; 0 global ipc_send ; 1 bits 32 [section .text] ; ==================================================================== ; ...
format PE64 Console 5.0 entry main include 'C:\Program Files (x86)\fasmw17322\INCLUDE\win64a.inc' ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; section '.text' code readable executable main: ; for printf, scanf etc. we use cinvoke (__cdecl), invoke is used for __stdcall functions cinvoke printf, msg_enter_...
; A292611: Skip 3 triangle numbers, take 1 triangle number, skip 4 triangle numbers, take 2 triangle numbers, skip 5 triangle numbers, take 3 triangle numbers, ... ; 10,45,55,136,153,171,325,351,378,406,666,703,741,780,820,1225,1275,1326,1378,1431,1485,2080,2145,2211,2278,2346,2415,2485,3321,3403,3486,3570,3655,3741,38...
; A001814: Coefficient of H_2 when expressing x^{2n} in terms of Hermite polynomials H_m. ; 1,12,180,3360,75600,1995840,60540480,2075673600,79394515200,3352212864000,154872234316800,7771770303897600,420970891461120000,24481076457277440000,1521324036987955200000,100610229646136770560000,7055292353935341035520000,5229216...
; A111802: n^2-n-1 for n>3; a(1)=1; a(2)=2; a(3)=3. ; 1,2,3,11,19,29,41,55,71,89,109,131,155,181,209,239,271,305,341,379,419,461,505,551,599,649,701,755,811,869,929,991,1055,1121,1189,1259,1331,1405,1481,1559,1639,1721,1805,1891,1979,2069,2161,2255,2351,2449,2549 mov $1,$0 add $1,2 lpb $0,1 mul $1,$0 sub $1,$0 m...
; QPC 16 bit palette ; section driver ; xdef qpc16_palette xdef qpc16_palend ; qpc16_palette dc.w $0000,$1f00,$00f8,$1ff8,$c007,$df07,$c0ff,$dfff ; dc.w $0000,$DFFF,$00F8,$C007,$1F00,$1FF8,$C0FF,$DF07 dc.w $0421,$494A,$4D6B,$9294,$96B5,$DBDE,$0090,$D6B7 dc.w $8094,$8004,$9204,$1200,$1290,$12F8,$80FC,$C097 dc.w ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r14 push %rcx push %rdi push %rsi lea addresses_D_ht+0x2c33, %r10 nop nop nop nop nop and %r12, %r12 movw $0x6162, (%r10) sub $16926, %r14 lea addresses_normal_ht+0x10f77, %r10 nop nop nop and %rdi, %rdi mov (%r10), %r13w nop lfe...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2019-2020 The Altbet developers // Distributed under the MIT software license, see the accompanying // file COPYING...
; ICS 331 ; Tetris ; Alex Watanabe ; Using DLX architecture ; Contains anything to do with shifting so I don't have to ; scroll through many things while working on the program ; Function that shifts pieces from the current shift to the desired shift ; Arguments Taken- ; R4 | Sublocation pointer to current ...
;====================== comments =================== ; first operand - address bufer result (string symbols) ; second operand - address of number ; third operand - count bits of number (should be multiple 8) ;=================================================== ;======================= code ====================== secti...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r14 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1d074, %rbp clflush (%rbp) nop nop nop nop nop xor %r13, %r13 mov $0x6162636465666768, %r12 movq %r12, %xmm5 vmovups %ymm5, (%rbp) nop nop nop and $140, %...
; A017510: a(n) = (11*n + 10)^2. ; 100,441,1024,1849,2916,4225,5776,7569,9604,11881,14400,17161,20164,23409,26896,30625,34596,38809,43264,47961,52900,58081,63504,69169,75076,81225,87616,94249,101124,108241,115600,123201,131044,139129,147456,156025,164836,173889,183184,192721,202500,212521,222784,233289,244036,255025,26...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
; A073548: Number of Fibonacci numbers F(k), k <= 10^n, which end in 2. ; 1,6,66,666,6666,66666,666666,6666666,66666666,666666666,6666666666,66666666666,666666666666,6666666666666,66666666666666,666666666666666,6666666666666666 lpb $0,1 add $1,$0 add $2,$1 add $2,1 sub $2,$0 add $2,2 mov $1,0 mul $2,2 ...
.org OC1Baddr ; Back up registers we will be clobbering to the stack. push r28 push r29 push r30 push r31 in r31, SREG push r31 ; Skip past this logic if this is not a VSYNC line. cpi interrupt_state, INTERRUPT_STATE_PRE_BLANK_START brsh interrupt_non_vsync ; If this isn't the last VSYNC line, s...
; Compiling command: nasm core.asm -f bin -o os.bin [BITS 16] ; 16-bit mode [ORG 0x7C00] ; easy ; Switching mode mov ah, 0 mov al, 0x13 ; VGA mode (320x200x8bit) int 0x10 mov ax, 0A000h ; Video offset mov es, ax mov cx, 0 start: mov ah, 0 int 0x16 cmp ah, 72 ; UP key code je key_up_pressed ; Jump if...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
#include "state_impl.hpp" #include "bitvector.hpp" #include "globals.hpp" #include "number/random.hpp" #include "script/lisp.hpp" void State::enter(Platform&, Game&, State&) { } void State::exit(Platform&, Game&, State&) { } StatePtr State::update(Platform&, Game&, Microseconds) { return null_state(); } static ...
/** * Copyright 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" ...