text
stringlengths
1
1.05M
global _start _start: jmp short call_shellcode shellcode: pop ebx xor eax,eax mov ecx,ebx restore_rol: cmp BYTE [ecx],al je end_of_string rol byte [ecx],2 ...
#include "config.h" [GLOBAL tss_flush] tss_flush: mov ax, GDT_TSS_SELECTOR ltr ax ret
//Copyright (c) 2017-2020 The PIVX developers //Copyright (c) 2020 The blockidcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "blocksignature.h" #include "main.h" bool SignBlockWithKey(CBlock& block, co...
// Copyright (c) 2006-2018 Maxim Khizhinsky // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) #include "map_minmax.h" namespace map { size_t Map_MinMax::s_nMapSize = 50000; size_t Map_MinMax::s_nInsThreadCount...
CeladonMansion1F_Object: db $f ; border block db 5 ; warps warp 4, 11, 2, -1 warp 5, 11, 2, -1 warp 4, 0, 4, -1 warp 7, 1, 1, CELADON_MANSION_2F warp 2, 1, 2, CELADON_MANSION_2F db 1 ; signs sign 4, 9, 5 ; CeladonMansion1Text5 db 4 ; objects object SPRITE_SLOWBRO, 0, 5, STAY, RIGHT, 1 ; person object SPR...
/* * 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 ...
; A255435: Product_{k=0..n} (k^5+1). ; 1,2,66,16104,16506600,51599631600,401290334953200,6744887949893385600,221023233230056352726400,13051421922234827628493920000,1305155243645404997677020493920000 mov $2,1 lpb $0 mov $1,$0 sub $0,1 pow $1,5 add $1,1 mul $2,$1 lpe mov $0,$2
.text .syntax unified .eabi_attribute 67, "2.09" @ Tag_conformance .cpu arm1156t2f-s .eabi_attribute 6, 8 @ Tag_CPU_arch .eabi_attribute 8, 1 @ Tag_ARM_ISA_use .eabi_attribute 9, 2 @ Tag_THUMB_ISA_use .fpu vfpv2 .eabi_attribute 17, 1 @ Tag_ABI_PCS_GOT_use .eabi_attribute 20, 1 @ Tag_ABI_FP_denormal .eabi_att...
; Copyright 2016 Philipp Oppermann. See the README.md ; file at the top-level directory of this distribution. ; ; Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or ; http://www.apache.org/licenses/LICENSE-2.0> or the MIT license ; <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your ; option. Th...
/* * Copyright (c) 2012, Michael Lehn, Klaus Pototzky * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1) Redistributions of source code must retain the above copyright...
TITLE Integer Summation Program (Sum_main.asm) ; Multimodule example: (main module) ; This program inputs multiple integers from the user, ; stores them in an array, calculates the sum of the ; array, and displays the sum. ; Last update: 8/29/01 INCLUDE sum.inc ; modify Count to change the size of the ...
; A199487: 9*7^n+1. ; 10,64,442,3088,21610,151264,1058842,7411888,51883210,363182464,2542277242,17795940688,124571584810,872001093664,6104007655642,42728053589488,299096375126410,2093674625884864,14655722381194042 add $0,4 mov $1,2 sub $0,3 lpb $0,1 mul $1,2 add $4,$1 mov $1,$4 sub $2,2 add $1,2 mov $4,$1 ...
; A011863: Nearest integer to (n/2)^4. ; 0,0,1,5,16,39,81,150,256,410,625,915,1296,1785,2401,3164,4096,5220,6561,8145,10000,12155,14641,17490,20736,24414,28561,33215,38416,44205,50625,57720,65536,74120,83521,93789,104976,117135,130321,144590,160000,176610,194481,213675,234256,256289,279841,304980,331776,360300,390625,4...
#ifndef SRC_SUBSCRIPTION_HPP_ #define SRC_SUBSCRIPTION_HPP_ #include <common/api/guard.hpp> #include <functional> #include <vector> class Subscription : public guarded { }; using tSubscriptionList = std::vector<Subscription>; template <typename PAYLOAD> class Attribute { public: using tCallback = std::function<vo...
// Copyright (c) 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 <qt/walletcontroller.h> #include <interfaces/handler.h> #include <interfaces/node.h> #include <algorithm> #include <QM...
/* 69. Sqrt(x) Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an integer, the decimal digits are truncated and only the integer part of the result is returned. Example 1: Input: 4 Output: 2 Example 2: Input: 8 Output:...
#include <wfc/module/module_list.hpp> #include "example_package.hpp" #include "core/core_module.hpp" #include "example/example_module.hpp" #include "example_build_info.h" namespace { struct impl: wfc::module_list< example_build_info, core_module, example_module > { }; } example_packa...
; ============================================================================ ; Homemade GPS Receiver ; Copyright (C) 2013 Andrew Holme ; ; This program is free software: you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation, either...
#include <iostream> class Ball { private: std::string m_color{"black"}; double m_radius {}; public: Ball(const std::string& color = "black", double radius = 10.0): m_color{ color }, m_radius{ radius } { } Ball(double radius) : Ball("black", radius) { } void print()...
; A315749: Coordination sequence Gal.5.295.4 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,6,12,18,23,29,35,40,46,52,58,64,70,76,81,87,93,98,104,110,116,122,128,134,139,145,151,156,162,168,174,180,186,192,197,203,209,214,220,226,...
; ; ANSI Video handling for Sharp OZ family ; ; BEL - chr(7) Beep it out (still nothing here) ; ; -- ONLY FOO STUFF, FOR NOW !! -- ; ; Stefano Bodrato - Aug. 2002 ; ; ; $Id: f_ansi_bel.asm,v 1.1 2002/11/20 14:15:19 stefano Exp $ ; XLIB ansi_BEL .ansi_BEL ret
/* Copyright (c) 2019-2022 Hans-Kristian Arntzen for Valve Corporation * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; Mwait.Asm ; ; Abstract: ; ; AsmMwait function ; ; Notes: ; ;----------------------------------------...
;; 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 RhpGcPoll2 EXTERN g_fGcStressStarted PROBE_SAVE_FLAGS_EVERYTHING equ DEFAULT_FRAME_SAVE_FLAGS + PTFF_SAVE_ALL_SCRA...
section .bss digit_space resb 100 digit_space_pos resb 8 section .text global _start ;123 / 10 = 12 remainder 3 ; store 3 ;12 / 10 = 1 R 2 ; store 2 ;1 / 10 = 0 R 1 ; store 1 _start: mov rax, 123 call _print_rax mov rax, 60 mov rdi, 0 syscall _print_rax: mov rcx, digit_space mov rdx, 10 mov [rcx], rbx ...
; Copyright © 2013 - 2021 by Brett Kuntz. All rights reserved. include timer.inc ; ########################################################################## init_timer proc mov ax, 0 mov fs, ax cli mov word ptr fs:[IVT_IRQ0], offset timer_handler mov word ptr fs:[IVT_IRQ0+2], BIOS_SEG ...
bits 16 ; tip: use -mi8086 for objdump disassembly section .text ; we use a linker script for debug ELFs global _start _start: xor ax, ax ; clear AX ; set stack to 0000:9c00 mov ss, ax ; stack segment mov sp, ...
public memory_app extern ui_window_handle_input_propagate extern ui_window_handle_input_do_not_propagate extern ui_window_handle_vsync_noop extern ui_label_IX_draw extern ui_panel_IX_draw extern ui_box_IX_calculate_absolute_position_DE extern ui_widget_IX_draw extern ui_hotkey_highlight_IX_draw extern convert_A_to_he...
///StackArithmetic\SimpleAdd\SimpleAdd.asm /// @7 D=A @SP A=M M=D @SP M=M+1 @8 D=A @SP A=M M=D @SP M=M+1 @SP AM=M-1 D=M @SP A=M-1 M=M+D
#include <torch/csrc/jit/passes/onnx/constant_fold.h> #include <c10/util/Exception.h> #include <torch/csrc/jit/passes/onnx/helper.h> #include <c10/util/Optional.h> #include <algorithm> namespace torch { namespace jit { namespace onnx { using namespace ::c10::onnx; } namespace { enum OnnxType : int { ONNX_FLOAT =...
/* * Decode Intra_16x16 macroblock * Copyright © <2010>, Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the...
//---------------------------------------------------------------------------// // Copyright (c) 2014 Roshan <thisisroshansmail@gmail.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 // // See http://kylelutz...
; A224613: a(n) = sigma(6*n). ; 12,28,39,60,72,91,96,124,120,168,144,195,168,224,234,252,216,280,240,360,312,336,288,403,372,392,363,480,360,546,384,508,468,504,576,600,456,560,546,744,504,728,528,720,720,672,576,819,684,868,702,840,648,847,864,992,780,840,720,1170,744,896,960,1020,1008,1092,816,1080,936,1344,864,1240,...
; A100152: Structured truncated cubic numbers. ; 1,24,100,260,535,956,1554,2360,3405,4720,6336,8284,10595,13300,16430,20016,24089,28680,33820,39540,45871,52844,60490,68840,77925,87776,98424,109900,122235,135460,149606,164704,180785,197880,216020,235236,255559,277020,299650,323480,348541,374864,402480,431420,461715,4933...
; This Source Code Form is subject to the terms of the MIT ; hLicense. If a copy of the MPL was not distributed with ; this file, You can obtain one at https://github.com/aws/mit-0 ;п/п извлечения и загрузки файла из склеенного массива ;с помощью Data Glue 1.0 By alx/brainwave ;эта подпрограмма может служить как фра...
INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_math PUBLIC l_divu_16_16x8, l0_divu_16_16x8 ; compute: hl = hl / e, e = hl % e ; alters : af, bc, de, hl ; alternate entry (l_divu_16_16x8 - 1) ; exchanges divisor / dividend ; alternate entry (l0_divu_16_16x8) ; skips divide by zero che...
; Chapter 9 ; 9.5.2 Palindrome word ; Create a program to determine if a NULL terminated string ; representing a word is a palindrome. ; *********************************** ; Data declarations section .data ; ------ ; Define constants SUCCESS equ 0 SYS_exit equ 60 ; ----- ; Define da...
#include <RootSignatureStatic.hpp> #include <D3DThrowMacros.hpp> #include <d3dcompiler.h> void RootSignatureStatic::LoadBinary(const std::string& fileName) { HRESULT hr; D3D_THROW_FAILED( hr, D3DReadFileToBlob( std::wstring(std::begin(fileName), std::end(fileName)).c_str(), &m_pSignatureBinary ) ...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2016 - 2018, 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 distri...
<% from pwnlib.shellcraft.powerpc.linux import syscall %> <%page args="fd, file, type, flag"/> <%docstring> Invokes the syscall faccessat. See 'man 2 faccessat' for more information. Arguments: fd(int): fd file(char): file type(int): type flag(int): flag </%docstring> ${syscall('SYS_faccessat...
#include <string> #include "format.h" using std::string; // TODO: Complete this helper function // INPUT: Long int measuring seconds // OUTPUT: HH:MM:SS // REMOVE: [[maybe_unused]] once you define the function string Format::ElapsedTime(long int original_seconds){ long int seconds{original_seconds}, minutes, hou...
// CLASSIFICATION: UNCLASSIFIED /***************************************************************************/ /* RSC IDENTIFIER: USNG * * ABSTRACT * * This component converts between geodetic coordinates (latitude and * longitude) and United States National Grid (USNG) coordinates. * * ERROR HANDLING * ...
pushpc ; Underworld org $02B917 : JSL UpdateOnUWTransition org $01C411 : JSL UpdateOnUWStairs org $01C5CF : JSL UpdateOnSwitchPress org $02A0B1 : JSL UpdateOnUWMirror org $0794EB : JSL UpdateOnUWPitTransition org $01C4B8 : JSL UpdateOnKillRoom org $06B949 : JSL UpdateOnPegSwitch org $07D127 : JSL UpdateOnWarpTile org ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x13671, %rsi lea addresses_WC_ht+0x12d81, %rdi cmp $7555, %r11 mov $41, %rcx rep movsw nop nop cmp %rdi, %rdi lea addresses_normal_ht+0xa2d1, %r9 nop nop sub %rdx, %rdx movb (...
#ifdef USE_GROUPS else if (pkgName == "groups") { switch (sb->getTypeCode()) { case SBML_LIST_OF: name = sb->getElementName(); if(name == "listOfMembers"){ return SWIGTYPE_p_ListOfMembers; } else if (name == "listOfMemberConstraints") { return SWIGTYPE_p_ListOfMemberConstraints; } else...
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2012, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following condition...
// // SampleText.cpp // UTF-8 CRLF format/形式 // // Copyright (c) 2019 Ashitagachan // See LICENSE.txt for licensing information. // #include "Gachan.h" //SampleText.cppをビルドするにはGachanNameSpace.hのNAMESPACE定義をSampleTextに置き換えてください。 //To build SampleText.cpp, Replace NAMESPACE definition at GachanNameSpace.h with...
#include "Archs/Architecture.h" #include "Core/Common.h" #include "Core/ELF/ElfRelocator.h" #include "Core/ExpressionFunctionHandler.h" #include "Core/FileManager.h" #include "Core/Misc.h" #include "Core/SymbolData.h" CInvalidArchitecture InvalidArchitecture; Architecture *Architecture::currentArchitecture = &Invali...
;[]-----------------------------------------------------------------[] ;| ACOSASINL.ASM -- trigonometric functions | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xbaca, %r14 nop nop nop and %rbx, %rbx movw $0x6162, (%r14) nop nop nop nop nop and $8736, %rax lea addresses_WC_ht+0x182aa, %rcx cmp %rbp, %rbp mov $0x6162636465666768, %rax...
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <main>: } } int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: ...
#include <kc/cv/Image.h> #include <iostream> #include <limits> using namespace kc; struct Triangle { glm::vec3 v0, v1, v2, color; }; void projectVertices(Triangle& triangle, float near, const cv::Image::Size& canvas) { auto& t = triangle; t.v0.z = -t.v0.z; t.v0.x = (near * t.v0.x / t.v0.z); t.v0...
#include <cstdio> #include <vector> #include <algorithm> typedef long long ll; int main(){ ll n, k; scanf("%lld %lld", &n, &k); std::vector<std::pair<ll, ll> > v(n); std::vector<ll> w(k, 0); for(ll p = 0; p < n; p++){ll x; scanf("%lld", &x); v[p].second = x - 1; ++w[x - 1];} for(ll p = 0; p < n; p...
; A068073: Period 4 sequence [ 1, 2, 3, 2, ...]. ; 1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2,1,2,3,2 gcd $0,4 mod $0,4 add $0,1
; A139745: a(n) = 11^n - 7^n. ; 0,4,72,988,12240,144244,1653912,18663628,208594080,2317594084,25654949352,283334343868,3124587089520,34425823133524,379071610510392,4172500607905708,45916496933002560,505214397985306564,5558288899894321032,61147691553229173148,672670202666262397200,7399691398394076817204,8139883956579117...
line1 !scr "inspired by http://dustlayer.com/ " line2 !scr "hello world " result !scr " " expect !scr " " empty !scr " " img !scr "img-$" ok1 !scr "2017...
.import source "64spec.asm" .eval config_64spec("print_immediate_result", false) sfspec: :init_spec() :describe("assert_a_zero") :it("works for all values of A register");{ .for (var a = 0; a < 256; a++) { .if (a == 0) { lda #a :assert_a_zero } else { lda #a :asser...
// 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 you under the Apache License, Version 2.0 (the // "License"); you may...
// Copyright 2016 The Fuchsia 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 "i2c-hid.h" #include <endian.h> #include <lib/zx/time.h> #include <stdbool.h> #include <stdlib.h> #include <unistd.h> #include <zircon/assert.h> ...
song125restored_pri equ 0 song125restored_rev equ 0 song125restored_mvl equ 127 song125restored_key equ 0 song125restored_tbs equ 1 song125restored_exg equ 0 song125restored_cmp equ 1 .align 4 ;**************** Track 1 (Midi-Chn.1) ****************; @song125restored_1: .byte TEMPO , 45 .byte KEYSH , song...
; A209722: 1/4 the number of (n+1) X 4 0..2 arrays with every 2 X 2 subblock having distinct clockwise edge differences. ; 4,5,6,8,10,14,18,26,34,50,66,98,130,194,258,386,514,770,1026,1538,2050,3074,4098,6146,8194,12290,16386,24578,32770,49154,65538,98306,131074,196610,262146,393218,524290,786434,1048578,1572866,209715...
;------------------------------------------------------------------------------ ; ; 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. Th...
BattleCommand_transform: ; transform call ClearLastMove ld a, BATTLE_VARS_SUBSTATUS5_OPP call GetBattleVarAddr bit SUBSTATUS_TRANSFORMED, [hl] jp nz, BattleEffect_ButItFailed call CheckHiddenOpponent jp nz, BattleEffect_ButItFailed xor a ld [wNumHits], a ld a, $1 ld [wKickCounter], a ld a, BATTLE_VARS_SUBS...
#include "abstract_predicate_expression.hpp" #include <sstream> #include "boost/functional/hash.hpp" #include "expression/evaluation/expression_evaluator.hpp" namespace opossum { AbstractPredicateExpression::AbstractPredicateExpression( const PredicateCondition predicate_condition, const std::vector<std::shared...
# Algoritmo de Multiplicação utilizando shift e soma # Grupo: Beatriz Maia, Luana Costa e Sophie Dilhon # Nov/2020 #------------------------------------------------------------------------------- .data input: .asciiz "Digite a entrada:\n" texto1: .asciiz "Multiplicando " texto2: .asciiz " por " texto3: .asciiz "\n" mul...
SECTION code_clib SECTION code_stdio PUBLIC __stdio_scanf_number_tail_int __stdio_scanf_number_tail_int: ; enter : de = int *p ; hl = integer ; ; carry flag state set by strtoi / strtou ; ; carry reset, number is valid ; ; carry set, number valid only ...
#include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkSampleFunction.h> #include <vtkSphereSource.h> #include <vtkCone.h> #include <vtkGlyph3D.h> #include <vtkProbeFilter.h> #include <vtkPointSource.h> #include <vtkThreshold.h> #include <vtkThresholdPoints.h> #include <vtkImageData.h> #include <vtkPointData...
; A024630: n written in fractional base 4/2. ; 0,1,2,3,20,21,22,23,200,201,202,203,220,221,222,223,2000,2001,2002,2003,2020,2021,2022,2023,2200,2201,2202,2203,2220,2221,2222,2223,20000,20001,20002,20003,20020,20021,20022,20023,20200,20201,20202,20203,20220,20221,20222,20223,22000,22001,22002,22003,22020,22021,22022,220...
#include <windows.h> #include "MetadataWalker.h" #include "XMLString.h" #include <strsafe.h> namespace org { namespace apache { namespace nifi { namespace minifi { namespace wel { bool MetadataWalker::for_each(pugi::xml_node &node) { // don't shortcut resolution here so that we can log attributes. const std::stri...
; Copyright 2001 Free Software Foundation, Inc. ; ; This file is part of the GNU MP Library. ; ; The GNU MP 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 ; L...
[BITS 32] global panic_just_halt [SECTION .text] panic_just_halt: HLT JMP panic_just_halt
; int vioctl(int fd, uint16_t request, void *arg) SECTION code_fcntl PUBLIC vioctl EXTERN asm_vioctl vioctl: pop af pop de pop bc pop hl push hl push bc push de push af jp asm_vioctl
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved GEOWORKS CONFIDENTIAL PROJECT: MODULE: FILE: sokobanLevels.asm AUTHOR: Eric Weber, Feb 4, 1994 ROUTINES: Name Description ---- ----------- INT LoadUserLev...
; A040118: Continued fraction for sqrt(130). ; 11,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22,2,2,22 add $0,3 mov $1,3 cmp $1,$0 add $1,3 gcd $0,$1 add $0,$1 pow $0,2 sub $0,14
;+---------------------------------+ ;| SECTOR 1 - Primary Bootloader | ;+---------------------------------+ [bits 16] [org 0x0000] Start: jmp 0x07C0:Loader ; Jump over OEM block nop ;*************************************************; ; OEM Parameter block / BIOS Parameter Block ; ;********...
############################################################################### # Copyright 2019 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...
; ; ; ZX Maths Routines ; ; 7/12/02 - Stefano Bodrato ; ; $Id: atan.asm,v 1.4 2015/08/10 08:52:12 stefano Exp $ ; ;double atan(double) ;Number in FA.. IF FORzx INCLUDE "zxfp.def" ENDIF IF FORzx81 INCLUDE "81fp.def" ENDIF IF FORlambda INCLUDE "lambdafp.def" ENDIF PUBLIC ...
; A071317: a(n) = a(n-1) + sum of digits of n^2. ; 0,1,5,14,21,28,37,50,60,69,70,74,83,99,115,124,137,156,165,175,179,188,204,220,238,251,270,288,307,320,329,345,352,370,383,393,411,430,443,452,459,475,493,515,534,543,553,566,575,582,589,598,611,630,648,658,671,689,705,721,730,743,762,789,808,821,839,864,880,898,911,92...
; A022122: Fibonacci sequence beginning 3, 10. ; 3,10,13,23,36,59,95,154,249,403,652,1055,1707,2762,4469,7231,11700,18931,30631,49562,80193,129755,209948,339703,549651,889354,1439005,2328359,3767364,6095723,9863087,15958810,25821897,41780707,67602604,109383311,176985915 mov $1,3 lpb $0 sub $0,1 mov $2,10 add $2,...
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "types.h" #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%e...
default rel bits 64 segment .data fmt db "%d", 0xd, 0xa, 0 segment .text global main global factorial extern _CRT_INIT extern ExitProcess extern printf factorial: push rbp mov rbp, rsp sub rsp, 32 test ecx, ecx ; n jz .zero mov ebx, 1 ; counter c mov...
; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.50727.42 TITLE c:\Documents and Settings\Michael\Desktop\bte_lighter\Demos\Demo11\SysCore\Kernel\DebugDisplay.cpp .686P .XMM include listing.inc .model flat INCLUDELIB LIBCMT INCLUDELIB OLDNAMES PUBLIC ?tbuf@@3PADA ; tbuf PU...
; A003451: Number of nonequivalent dissections of an n-gon into 3 polygons by nonintersecting diagonals up to rotation. ; 1,4,8,16,25,40,56,80,105,140,176,224,273,336,400,480,561,660,760,880,1001,1144,1288,1456,1625,1820,2016,2240,2465,2720,2976,3264,3553,3876,4200,4560,4921,5320,5720,6160,6601,7084,7568,8096,8625,9200...
; calculate equation with high precision without math coprocessor ; this program calculates linear equation: ax + b = 0 ; the result is printed with floating point. ; for example: a = 7, b = 2 ; x = -0.28571428.... name "float" precision = 30 ; max digits after the dot. dseg segmen...
; A138885: n-th run has length n-th nonprime number, with digits 0 and 1 only, starting with 1. ; 1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 mul $0,2 mov $2,$0 lpb $2 sub $2,9 trn $2,$1 add $1,3 lpe...
; A221366: The simple continued fraction expansion of F(x) := product {n = 0..inf} (1 - x^(4*n+3))/(1 - x^(4*n+1)) when x = 1/2*(7 - 3*sqrt(5)). ; 1,5,1,45,1,320,1,2205,1,15125,1,103680,1,710645,1,4870845,1,33385280,1,228826125,1,1568397605,1,10749957120,1,73681302245,1,505019158605,1,3461452808000,1,23725150497405,1 ...
; =============================================================== ; Jun 2007 ; =============================================================== ; ; void *zx_aaddrcright(void *attraddr) ; ; Modify attribute address to move right one character square. ; Movement wraps from column 31 to column 0 of next row. ; ; =========...
; ; ANSI Video handling for the TI calculators ; By Stefano Bodrato - Dec. 2000 ; ; Clean a text line ; ; in: A = text row number ; ; ; $Id: f_ansi_dline.asm,v 1.5 2015/01/19 01:33:19 pauloscustodio Exp $ ; INCLUDE "stdio/ansi/ticalc/ticalc.inc" PUBLIC ansi_del_line EXTERN base_graphics EXTERN cpygraph .ansi_...
_cat: formato de ficheiro elf32-i386 Desmontagem da secção .text: 00000000 <cat>: char buf[512]; void cat(int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 18 sub $0x18,%esp int n; while((n = read(fd, buf, sizeof(buf))) > 0) 6: e...
// Copyright 2018 The Fuchsia 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 <lib/fit/defer.h> #include <xdc-host-utils/conn.h> #include <xdc-server-utils/msg.h> #include <xdc-server-utils/packet.h> #include <xdc-server-uti...
_get_prio: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "types.h" #include "stat.h" #include "user.h" #include "fcntl.h" int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x...
.LFB11: .cfi_startproc leal -2(%rsi), %eax testl %esi, %esi jle .L5 cltq addq %rdi, %rax movzbl (%rax), %edx cmpb %dl, (%rdi) jne .L7 subl $1, %esi addq %rdi, %rsi jnp .L3 .p2align 4,,10 .p2align 3 .L4: movzbl 1(%rdi), %ecx movzbl -1(%rax), %edx addq $1, %rdi subq $1, %rax cmpb %dl, %cl jne .L7 .L3:...
dnl PowerPC-64 mpn_modexact_1_odd -- mpn by limb exact remainder. dnl Copyright 2006 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as publi...
; A129756: Repetitions of odd numbers four times. ; 1,1,1,1,3,3,3,3,5,5,5,5,7,7,7,7,9,9,9,9,11,11,11,11,13,13,13,13,15,15,15,15,17,17,17,17,19,19,19,19,21,21,21,21,23,23,23,23,25,25,25,25,27,27,27,27,29,29,29,29,31,31,31,31,33,33,33,33,35,35,35,35,37,37,37,37,39,39,39,39,41,41,41,41,43,43,43,43,45,45,45,45,47,47,47,47,...
; A088139: a(n) = 2*a(n-1) - 6*a(n-2), a(0)=0, a(1)=1. ; 0,1,2,-2,-16,-20,56,232,128,-1136,-3040,736,19712,35008,-48256,-306560,-323584,1192192,4325888,1498624,-22958080,-54907904,27932672,385312768,603029504,-1105817600,-5829812224,-5024718848,24929435648,80007184384,10437754880,-459167596544,-980961722368,79308213452...
; A047579: Numbers that are congruent to {0, 2, 5, 6, 7} mod 8. ; 0,2,5,6,7,8,10,13,14,15,16,18,21,22,23,24,26,29,30,31,32,34,37,38,39,40,42,45,46,47,48,50,53,54,55,56,58,61,62,63,64,66,69,70,71,72,74,77,78,79,80,82,85,86,87,88,90,93,94,95,96,98,101,102,103 mov $3,$0 mov $5,$0 lpb $5,1 mov $0,$3 sub $5,1 sub $0,...
.MODEL TINY .186 CODES SEGMENT ASSUME CS:CODES, DS:CODES ORG 100H MAIN: jmp init cur db 0 speed db 01fh OLD_8H dd ? FLAG db 228 MY_NEW_8H proc pusha push es push ds mov ah, 02h int 1ah cmp dh, cur mov cur, dh je end_loop mov al, 0F3h out 60h, al ...
; A056527: Numbers where iterated sum of digits of square settles down to a cyclic pattern (in fact 13, 16, 13, 16, ...). ; 2,4,5,7,11,13,14,16,20,22,23,25,29,31,32,34,38,40,41,43,47,49,50,52,56,58,59,61,65,67,68,70,74,76,77,79,83,85,86,88,92,94,95,97,101,103,104,106,110,112,113,115,119,121,122,124,128,130,131,133,137,...
-- 7 Billion Humans (2056) -- -- 54: Terrain Leveler -- -- Author: tiansh -- Size: 18 -- Speed: 114 a: step n mem1 = calc mem1 + c if n != wall or sw == datacube or w == worker: jump a endif pickup s mem1 = calc mem1 + sw write mem1 step s b: if e == worker or ne == worker: jump b endif mem1 = calc mem1 / 49 if ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_class_realloc_53b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-53b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory ...