text stringlengths 1 1.05M |
|---|
bits 64 ; set architecture
global strcspn:function ; export strcspn / RDI RSI s + reject parameters
strcspn:
xor RAX, RAX ; set result to 0 in case of non-match
cmp RDI, 0 ; check if pointer null
je .end
.loop: ; lo... |
# Programa:
# i = 0;
# j = 0;
# do {
# do {
# aux = vet[j];;
# vet[j] = vet[j+1];
# vet[j+1] = aux;
# j++;
# } while ( j < 100 );
# j = 0;
# i++;
# } while ( i < 100 );
# Variaveis associadas aos registradores
# endBase -> $16
# i -> $17
# j -> $18
.data
a: .word 5 : 20
b: .word 4 : 20
c: .word 3 : 20
d: .word... |
; ==================================================================
; Simple command shell for MS-DOS and dosbox.
; Below are currently implemented for you.
; ==================================================================
; 1. Exit command.
; 2. Reboot command.
; 3. Help command.
; =============================... |
bits 16
; glb intptr_t : int
; glb uintptr_t : unsigned
; glb intmax_t : int
; glb uintmax_t : unsigned
; glb int8_t : signed char
; glb int_least8_t : signed char
; glb int_fast8_t : signed char
; glb uint8_t : unsigned char
; glb uint_least8_t : unsigned char
; glb uint_fast8_t : unsigned char
; glb int16_t : short
... |
// This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... |
section .data
array: dd 1,2,3,4,5,6,7
len equ ($-array)/4
section .text
global _main
_main:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, [array]
mov ecx, 1
rotate_loop:
xchg eax, [a... |
; A122047: Degree of the polynomial P(n,x), defined by a Somos-6 type sequence: P(n,x)=(x^(n-1)*P(n-1,x)*P(n-5,x) + P(n-2,x)*P(n-4,x))/P(n-6,x), initialized with P(n,x)=1 at n<0.
; 0,0,1,3,6,10,15,22,31,42,55,70,88,109,133,160,190,224,262,304,350,400,455,515,580,650,725,806,893,986,1085,1190,1302,1421,1547,1680,1820,19... |
; A157330: a(n) = 64*n - 8.
; 56,120,184,248,312,376,440,504,568,632,696,760,824,888,952,1016,1080,1144,1208,1272,1336,1400,1464,1528,1592,1656,1720,1784,1848,1912,1976,2040,2104,2168,2232,2296,2360,2424,2488,2552,2616,2680,2744,2808,2872,2936,3000,3064,3128,3192,3256,3320,3384,3448,3512,3576,3640,3704,3768,3832,3896,3... |
match ,{
include 'macro/struct.inc'
include '../linux/import32.inc'
} match -,{
else
include 'selfhost.inc'
end match
_ equ }
format ELF
public main
include '../version.inc'
extrn 'malloc' as libc.malloc
extrn 'realloc' as libc.realloc
extrn 'free' as libc.free
extrn 'fopen' as libc.f... |
; A151988: G.f.: (x*(x^4+1)*(x^2-x+1)*(x^2+x+1))/((x^4+x^3+x^2+x+1)*(x^4-x^3+x^2-x+1)*(x-1)^2).
; 0,1,2,3,4,6,8,9,10,11,12,13,14,15,16,18,20,21,22,23,24,25,26,27,28,30,32,33,34,35,36,37,38,39,40,42,44,45,46,47,48,49,50,51,52,54,56,57,58,59,60,61,62,63,64,66,68,69,70,71,72,73,74,75,76,78,80,81,82,83,84,85,86,87,88,90,92... |
; A132708: Period 6: repeat [4, 2, 1, -4, -2, -1].
; 4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1,4,2,1,-4,-2,-1
cal $0,7037... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x30d4, %r9
nop
nop
nop
and $8941, %r10
movb (%r9), %r11b
sub $17407, %rcx
lea addresses_WC_ht+0x1c3e4, %r15
nop
nop
and %r14, %r14
mov $0x6162636465666768, %r11
movq %r11, (%r... |
// Copyright (c) 2014-2015 The Bitcoin Core developers
// Copyright (c) 2018 The Navcoin Core developers
// Copyright (c) 2019 The DeVault Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#incl... |
/*
* Copyright (c) 2022 Tuukka Norri
* This code is licensed under MIT license (see LICENSE for details).
*/
#ifndef FOUNDER_GRAPHS_LEXICOGRAPHIC_RANGE_HH
#define FOUNDER_GRAPHS_LEXICOGRAPHIC_RANGE_HH
#include <libbio/assert.hh>
#include <sdsl/suffix_array_algorithm.hpp>
#include <vector>
namespace founder_graph... |
SFX_Noise_Instrument05_2_Ch8:
noise_note 7, 8, 4, 55
noise_note 6, 8, 4, 54
noise_note 5, 8, 3, 53
noise_note 4, 8, 3, 52
noise_note 3, 8, 2, 51
noise_note 2, 8, 1, 50
sound_ret
|
#include "SceneRenderer.h"
namespace fightdude {
void SceneRenderer::drawMesh(Mesh *mesh, std::vector<Material> *materials) {}
} //namespace fightdude
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x6342, %r11
sub %rcx, %rcx
mov (%r11), %r8
nop
nop
nop
nop
dec %r14
lea addresses_WT_ht+0x1d39a, %r9
nop
nop
nop
nop
and $1937, %rax
mov (%r9), %cx
nop
nop
nop
inc %r... |
; A167194: Triangle read by rows. A130713 in the columns.
; 1,2,1,1,2,1,0,1,2,1,0,0,1,2,1,0,0,0,1,2,1,0,0,0,0,1,2,1,0,0,0,0,0,1,2,1,0,0,0,0,0,0,1,2,1,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,0,0,0,0,0,1,2,1
add $0,1
lpb $0
sub $0,1
add $1,$0
trn $0,1
add $1,1
sub $1,$0
tr... |
; A077939: Expansion of 1/(1 - 2*x - x^2 - x^3).
; 1,2,5,13,33,84,214,545,1388,3535,9003,22929,58396,148724,378773,964666,2456829,6257097,15935689,40585304,103363394,263247781,670444260,1707499695,4348691431,11075326817,28206844760,71837707768,182957587113,465959726754,1186714748389,3022346810645,7697368096433,19603797... |
Name: Sub_sound.asm
Type: file
Size: 15272
Last-Modified: '1992-11-18T01:48:26Z'
SHA-1: A14A12FBE63F36C66C55E8BE7158E74EF1CDF310
Description: null
|
/*
* Copyright (c) 2008 The WebRTC 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 contribut... |
.include "include/bios.inc"
.include "include/zp.inc"
.include "include/strings.inc"
;;;
;; INPUT_DEC: Request 1-8 ASCII decimal numbers and convert to binary.
;;
;; Preparation:
;; x: number of decimal characters to read. Max 8.
;;
;; Returned Values: a: used
;; ... |
; A288994: a(n) = n*(n+3) when n is congruent to 0 or 3 (mod 4), and n*(n+3)/2 otherwise.
; 0,2,5,18,28,20,27,70,88,54,65,154,180,104,119,270,304,170,189,418,460,252,275,598,648,350,377,810,868,464,495,1054,1120,594,629,1330,1404,740,779,1638,1720,902,945,1978,2068,1080,1127,2350,2448,1274,1325,2754,2860,1484,1539,3190... |
;-----------------------------------------------------------
; src/prime.asm
; Usage: prime <n>
; Generates the <n>th prime number and all previous
; prime numbers
; TODO: Create an output buffer
%include "lib.inc"
%include "io.inc"
global _start
default rel
section .data
begin_text: db "Generating ", 0
... |
; S2E Selective Symbolic Execution Platform
;
; Copyright (c) 2013 Dependable Systems Laboratory, EPFL
;
; 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... |
; A343176: a(0)=3; for n > 0, a(n) = 2^(2*n) + 3*2^(n-1) + 1.
; 3,8,23,77,281,1073,4193,16577,65921,262913,1050113,4197377,16783361,67121153,268460033,1073790977,4295065601,17180065793,68719869953,274878693377,1099513200641,4398049656833,17592192335873,70368756760577,281475001876481,1125899957174273,4503599728033793
a... |
/**
* Copyright (C) 2020-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
;;
;; Copyright (c) 2020, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and the ... |
; int fzx_write_justified(struct fzx_state *fs, char *buf, uint16_t buflen, uint16_t allowed_width)
SECTION code_font_fzx
PUBLIC asm_fzx_write_justified
EXTERN __fzx_puts_newline
EXTERN error_mc, error_znc, l_inc_sp, l_divu_16_16x16
EXTERN asm_fzx_buffer_extent, asm_fzx_putc
asm_fzx_write_justified:
; enter : ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x13e73, %rsi
nop
nop
nop
nop
dec %rcx
mov $0x6162636465666768, %r12
movq %r12, %xmm7
movups %xmm7, (%rsi)
nop
nop
nop
nop
nop
cmp $50179, %rcx
lea addresses_A_ht+0x197b3, %rsi
... |
.386
.model flat, stdcall
option casemap: none
include <windows.inc>
include <ntdll.inc>
includelib <ntdll.lib>
false = 0
true = 1
nullptr = 0
OptionShutdownSystem = 6
SeShutdownPrivilege = 19
.data?
res dword ?
.code
main:
invoke RtlAdjustPrivilege \
, SeShutdownPrivilege \
, true ... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The Vsync developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mi... |
section .data
%include "words.inc"
global _start
extern find_word
extern read_word
extern exit
extern string_length
extern print_string
section .text
; enter key, the ^D^D (why twice?) and if key found value is printed
_start:
sub rsp,255
mov rdi,rsp
mov rsi,254
call read_word ; read word, not string
... |
dnl X64-64 mpn_mullo_basecase optimised for Intel Broadwell.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 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 th... |
[bits 64]
l1:
inc dword [l2]
l2 equ 4-(l1-$$)
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1a5a6, %rax
nop
cmp $6248, %rsi
movw $0x6162, (%rax)
nop
nop
nop
xor %rbp, %rbp
lea addresses_WT_ht+0x618e, %r12
nop
nop
nop
add $16326, %rsi
mov (%r12), %ebx
nop
nop
dec... |
/*
Tencent is pleased to support the open source community by making
Plato available.
Copyright (C) 2019 THL A29 Limited, a Tencent company.
All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may
not use this file except in compliance with the License. You may
obtain a copy... |
;////////////////////////////////////////////////////////////////////////////////////////////////////////
;// Part of Injectable Generic Camera System
;// Copyright(c) 2019, Frans Bouma
;// All rights reserved.
;// https://github.com/FransBouma/InjectableGenericCameraSystem
;//
;// Redistribution and use in source and ... |
/* Copyright (c) <2003-2019> <Newton Game Dynamics>
*
* 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.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... |
include io.h
cr equ 10
lf equ 13
.model small
.stack 200h
.Data
promptN1 db cr, lf, 'Enter a NumberBase -> ', 0
promptN2 db cr, lf, 'Enter a NumberGuesses -> ', 0
promptN3 db cr, lf, 'The number Greater :( ', 0
promptN4 db cr, lf, 'The number Less :( ', 0
promptN5 db cr, lf, 'Afaaaaaaaaaaaaaaaarin Pesare Gooolam :)... |
.data
a:
10
.text
main:
load %x0, $a, %x3 ;loading the input into x3
divi %x3, 2, %x4 ;x4 = x3 / 2
beq %x31, 0, even ;if x3 % 2 == 0, jump to even
jmp odd ;else jump to odd
even:
subi %x0, 1, %x10 ;writing -1 to x10 if even and end
end
odd:
addi %x0, 1, %x10 ;writing 1 to x10 if odd and... |
// Copyright 2011 Baptiste Lepilleur
// Distributed under MIT license, or public domain if desired and
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
#if !defined(JSON_IS_AMALGAMATION)
#include <json/writer.h>
#include "json_tool.h"
#endif // if !de... |
###############################################################################
# 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... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be us... |
; A239462: A239459(n) / n.
; 11,41,91,161,251,361,491,641,811,10001,12101,14401,16901,19601,22501,25601,28901,32401,36101,40001,44101,48401,52901,57601,62501,67601,72901,78401,84101,90001,96101,102401,108901,115601,122501,129601,136901,144401,152101,160001,168101,176401,184901,193601,202501,211601,220901,230401,240101,... |
; get_str3
; get ONE string from the basic interpreter updating A3
; entry exit
; d0 0 or error
; a1 top of math stack pointer to string on math stack
; a3 ptr to start of parameter updated to point to next parameter
; a5 ptr to end of all parameters preserved
;
; all other registers presered
section pr... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r13
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x11157, %r12
clflush (%r12)
nop
nop
nop
nop
xor $60645, %r14
movups (%r12), %xmm2
vpextrq $0, %xmm2, %r10
and %r10, %r10
lea addresses_WC_ht+0x1099b, %r13
nop
nop
nop... |
/* Copyright (C) 2016 The Android Open Source Project
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This file implements interfaces from the file jvmti.h. This implementation
* is licensed under the same terms as the file jvmti.h. The
* copyright and license information for the file jvmti.h ... |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
bnXchg proc uses esi edi bnX:DWORD,bnY:DWORD
mov ecx,BN_ALLOC_BYTES
mov edi,bnX
sub ecx,4
mov esi,bnY
.repeat
mov eax,[esi+ecx]
mov edx,[edi+ecx]
mov [edi+ecx],eax
mov [esi+ecx],edx
sub ecx,4
.until sign?
ret... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1b008, %r12
clflush (%r12)
inc %rsi
movw $0x6162, (%r12)
nop
add $60568, %rdx
lea addresses_UC_ht+0x1ee2, %rsi
lea addresses_normal_ht+0xaaf8, %rdi
nop
sub $35747, %r11
mov $... |
;===============================================================================
; 16b - 16b
; Positive integers only, 1st byte must be greater than the 2nd one
;===============================================================================
include REG515.INC ;SFR Table
;---------------------------------------... |
; A315536: Coordination sequence Gal.5.306.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,11,17,23,28,33,39,45,50,56,62,67,73,79,84,89,95,101,106,112,118,123,129,135,140,145,151,157,162,168,174,179,185,191,196,201,207,213,218,... |
;Testname=O0; Arguments=-O0 -fbin -oexpimp.bin; Files=stdout stderr expimp.bin
;Testname=O1; Arguments=-O1 -fbin -oexpimp.bin; Files=stdout stderr expimp.bin
;Testname=Ox; Arguments=-Ox -fbin -oexpimp.bin; Files=stdout stderr expimp.bin
;Testname=error-O0; Arguments=-O0 -fbin -oexpimp.bin -DERROR; Files=stdout stder... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf-regional/model/GetGeoMatchSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Buffer Definitions:
//
// cbuffer cbMultiPerFrameFrame
// {
//
// float4x4 mWorldViewProj; // Offset: 0 Size: 64 [unused]
// float4x4 mWorldView; // Offset: 64 Size: 64 [unused]
// float4x4 mWorl... |
; A132141: Numbers whose ternary representation begins with 1.
; 1,3,4,5,9,10,11,12,13,14,15,16,17,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,53,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120... |
.model small
.data
num1 db 0,0,0,0,0,0,0,1,0,0,'$'
decimales_1 db 0,9,9,0,0,0,0,0,0,0,'$'
num2 db 0,0,0,0,0,0,0,0,9,9,'$'
decimales_2 db 0,9,9,0,0,0,0,0,0,0,'$'
num_res db 0,0,0,0,0,0,0,0,0,0,'$'
decimales_Res db 0,0,0,0,0,0,0,0,0,0,'$'
hay_acarreo db 0h
.stack
.code
be... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rax
push %rdx
lea addresses_WC_ht+0x1e243, %r11
clflush (%r11)
add %rax, %rax
mov $0x6162636465666768, %rdx
movq %rdx, %xmm7
vmovups %ymm7, (%r11)
inc %r8
pop %rdx
pop %rax
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push... |
#ifndef SYNCH_PARTICLE_REDEFINITION_H
#define SYNCH_PARTICLE_REDEFINITION_H
//pyORBIT utils
#include "CppPyWrapper.hh"
#include "Bunch.hh"
using namespace std;
/**
The SynchPartRedefinitionZdE class calculates the average of z and dE coordinates
redefines the syncronous particle's energy to move the synch. pa... |
;;; GLOBAL DESCRIPTOR TABLE
gdt_start:
gdt_null: ; mandatory null descriptor
dd 0x0
dd 0x0
gdt_code: ; code segment descriptor
; base=0x0, limit=0xfffff,
; 1st flags: (present)1 (privilege)00 (descriptor type)1 -> 1001b
; type flags: (code)1 (conforming)0 (readable)1 (accessed)0 -> 1010b
; 2... |
;
; Z88dk Generic Floating Point Math Library
;
; Find exponent for product (l=0) or quotient(l=ff)
;
; $Id: div14.asm,v 1.4 2016-06-21 21:16:49 dom Exp $:
SECTION code_fp
PUBLIC div14
EXTERN unpack
EXTERN norm4
EXTERN fa
.div14 LD A,B
OR A
JR Z,DIV20
... |
###############################################################################
# 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... |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.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 -0x4(%ecx)
a: 55 pus... |
/*
* Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
* Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
* Copyright 2010, Clemens Zeidler <haiku@clemens-zeidler.de>
* Distributed under the terms of the MIT License.
*/
#include <Application.h>
#include <File.h>
#include <Button.h>
#i... |
; A080775: Number of n X n monomial matrices whose nonzero entries are unit Hurwitz quaternions.
; 1,24,1152,82944,7962624,955514880,137594142720,23115815976960,4438236667576320,958659120196485120,230078188847156428800,60740641855649297203200,17493304854426997594521600,5457911114581223249490739200,183385813449929101182... |
; Tests instructions CMP (all addressing modes) & BEQ & BNE.
; Assumes that loads & stores work with all addressing modes.
; Also assumes that AND & ORA & EOR work with all addressing modes.
;
; Expected Results: $15 = 0x7F
; Note that this test does not seem to work in 6502js, but Visual 6502 gives the
; correct res... |
;
; Startup for Sorcerer Exidy
;
; $Id: sorcerer_crt0.asm,v 1.15 2016-07-15 21:03:25 dom Exp $
;
; There are a couple of #pragma commands which affect
; this file:
;
; #pragma no-streams - No stdio disc files
; #pragma no-fileio - No fileio at all
;
; These can cut down the size of the resultant executabl... |
#include<iostream>
using namespace std;
int main(){
cout<<"file doesnot contain any codes just some notes"<<endl;
// Why Object-Oriented Programming?
// Before we discuss object-oriented programming, we need to learn why we need object-oriented programming?
// C++ language was designed with the main intention of... |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.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 -0x4(%ecx)
a: 55 pus... |
.MACRO LKS_BG1_update
lda LKS_BG+_bg1x
sta BG1H0FS
lda LKS_BG+_bg1x+1
sta BG1H0FS
lda LKS_BG+_bg1y
sta BG1V0FS
lda LKS_BG+_bg1y+1
sta BG1V0FS
.ENDM
.MACRO LKS_BG3_update
lda LKS_BG+_bg3x
sta BG3H0FS
lda LKS_BG+_bg3x+1
sta BG3H0FS
lda LKS_BG+_bg3y
sta BG3V0FS
lda LKS_BG+_bg3y+1
sta BG3V0FS
.E... |
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
extern bool fWalletUnlockStakingOnly;
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent),... |
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <bits/stdc++.h>
using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long> vl;
typedef vector<vector<int>> vvi;
typedef vector<vector<long long>> ... |
class Solution {
public:
int getMax(int val) {
return max(val,0);
}
int maximumSum(vector<int>& ar) {
int n = ar.size() , mn;
if(n == 1)
return ar[0];
mn = 0;
vector<int> lmax(n);
for( int i = 0 , sum = 0 ; i < n ; i++ ) {
sum += ar[i];... |
;;
;
; Name: stub_sock_find_peek_flusher.asm
; Qualities: Can Have Nulls
; Platforms: MacOS X / PPC
; Authors: H D Moore <hdm [at] metasploit.com>
; Version: $Revision: 1612 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses ... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief BmsOpen DOS wrapper
;
; (c) osFree Project 2021, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev (yu... |
dc.w word_ABE2C-Map_SStageSonic
dc.w word_ABE2E-Map_SStageSonic
dc.w word_ABE3C-Map_SStageSonic
dc.w word_ABE4A-Map_SStageSonic
dc.w word_ABE5E-Map_SStageSonic
dc.w word_ABE72-Map_SStageSonic
dc.w word_ABE86-Map_SStageSonic
dc.w word_ABE9A-Map_SStageSonic
dc.w word_ABEAE-Map_SStageSonic
dc.w word_AB... |
section .text
bits 64
global out_8
global out_16
global out_32
global in_8
global in_16
global in_32
global read_msr
global read_cr8
global write_cr8
global write_msr
global cpuid
global flush_gdt
global flush_idt
global cmpxchg_32
global xinc_32
global cli
global sti
global read_cr3
global write_cr3
global flush_tlb
... |
ORG 0x7c00
BITS 16
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start
_start:
jmp short start
nop
times 33 db 0
start:
jmp 0:step2
step2:
cli ; Clear Interrupts
mov ax, 0x00
mov ds, ax
mov es, ax
mov ss, ax
mov sp, 0x7c00
sti ; Enable Interrupts
.load_prot... |
Name: zel_enmy5.asm
Type: file
Size: 31027
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: 8A28027FF00D00B9215BBB9CC20B08F29637C40C
Description: null
|
SECTION code_l_sccz80
PUBLIC l_i64_case
EXTERN __i64_acc
; Entry:
; ACC = value to compare against
l_i64_case:
pop hl ; hl = & switch table
loop:
ld a,(hl)
inc hl
or (hl)
inc hl
jr z, end ; if end of table
ld de,__i64_acc
push hl
ld b,... |
; A056169: Number of unitary prime divisors of n.
; 0,1,1,0,1,2,1,0,0,2,1,1,1,2,2,0,1,1,1,1,2,2,1,1,0,2,0,1,1,3,1,0,2,2,2,0,1,2,2,1,1,3,1,1,1,2,1,1,0,1,2,1,1,1,2,1,2,2,1,2,1,2,1,0,2,3,1,1,2,3,1,0,1,2,1,1,2,3,1,1,0,2,1,2,2,2,2,1,1,2,2,1,2,2,2,1,1,1,1,0
seq $0,55231 ; Powerfree part of n: product of primes that divide n... |
//
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail 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)
//
// Official repository: https://github.com/boostorg/beast
//
//---------... |
// Copyright (c) 2014-2017, The Shangcoin Project
// Copyright (c) 2017, The Masari Project
// Zawy's LWMA difficulty algorithm
// 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. Redist... |
//
// EnumValueParserScenarios.cpp
// TUCUT
//
// Created by Wahid Tanner on 10/7/14.
// Copyright © 2018 Take Up Code. All rights reserved.
//
#include <string>
#include "../../Test/Test.h"
#include "../ProtoParser.h"
#include "../EnumValueParser.h"
using namespace std;
using namespace TUCUT;
SCENARIO( EnumVa... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021 Marco Spedaletti (asimov@mclink.it)
; *
; * Licensed un... |
;------------------------------------------------------------------------------ ;
; 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.... |
; ---------------------------------------------------------------------------
; Sprite mappings - smashable walls (GHZ, SLZ)
; ---------------------------------------------------------------------------
dc.w byte_D2BC-Map_obj3C
dc.w byte_D2E5-Map_obj3C
dc.w byte_D30E-Map_obj3C
byte_D2BC: dc.b 8
dc.b $E0, 5, 0, ... |
//sesui_packer:ignore
#include <windows.h>
#include "../sesui.hpp"
//sesui_packer:resume
sesui::color color_clipboard = sesui::color( 1.0f, 1.0f, 1.0f, 1.0f );
std::array< sesui::color, 7 > hue_colors = {
sesui::color ( 1.0f, 0, 0, 1.0f ),
sesui::color ( 1.0f, 1.0f, 0, 1.0f ),
sesui::color ( 0, 1.0f, 0 , 1.0f ),
... |
; A078654: a(n) = prime(k) where k = n-th prime congruent to 3 mod 4.
; 5,17,31,67,83,127,191,211,277,331,353,401,431,563,587,709,739,797,877,967,991,1063,1153,1217,1297,1409,1433,1499,1597,1669,1741,1847,2027,2063,2221,2341,2417,2477,2609,2647,2897,3001,3067,3109,3299,3319,3407,3469,3517,3559,3593,3761,3943,4091,4153,... |
#include "stone/Gen/CodeEmitter.h"
#include "stone/Syntax/Decl.h"
using namespace stone;
using namespace stone::codegen;
using namespace stone::syn;
CodeEmitter::CodeEmitter() {}
//===----------------------------------------------------------------------===//
// Decl
//===--------------------------------------------... |
.main:
|
// 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 "chromecast/browser/cast_resource_dispatcher_host_delegate.h"
#include "chromecast/browser/cast_browser_process.h"
#include "chromecast/net/conn... |
OaksLab_h:
db DOJO ; tileset
db OAKS_LAB_HEIGHT, OAKS_LAB_WIDTH ; dimensions (y, x)
dw OaksLab_Blocks ; blocks
dw OaksLab_TextPointers ; texts
dw OaksLab_Script ; scripts
db 0 ; connections
dw OaksLab_Object ; objects
|
dnl AMD64 mpn_addmul_2 optimised for Intel Sandy Bridge.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2003-2005, 2007, 2008, 2011-2013 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... |
; A038459: A sequence for measuring seconds: read it aloud.
; 1,1000,2,1000,3,1000,4,1000,5,1000,6,1000,7,1000,8,1000,9,1000,10,1000,11,1000,12,1000,13,1000,14,1000,15,1000,16,1000,17,1000,18,1000,19,1000,20,1000,21,1000,22,1000,23,1000,24,1000,25,1000
mov $1,3
add $1,$0
gcd $0,2
sub $0,1
sub $1,2002
div $1,2
mul $1,$... |
; A013709: a(n) = 4^(2n+1).
; 4,64,1024,16384,262144,4194304,67108864,1073741824,17179869184,274877906944,4398046511104,70368744177664,1125899906842624,18014398509481984,288230376151711744,4611686018427387904,73786976294838206464,1180591620717411303424,18889465931478580854784,302231454903657293676544,483570327845851669... |
; Ok no lookers now. We need to write a program that can write any hex value in a register
[org 0x7c00]
; Use dx as the parameter we pass
mov dx, 0x1C9B
call print_hex
; Loop infinitely after finishing
jmp $
; Lets write a print library
%include "print_hex.asm"
; Define vars (note how we terminate stin... |
; ----------------------------------------------------------------------
; ahex.inc.asm
;
; A simple cat which write on STDOUT all what it reads on STDIN
; To assemble and run:
;
; nasm -felf64 acat.asm acat.data.asm \
; && ld acat.o acat.data.o && ./a.out
; --------------------------------------------------------... |
/*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/state_compute_mode_helper.h"
namespace NEO {
template <>
bool StateComputeModeHelper<TGLLPFamily>::isStateComputeModeRequired(CsrSizeRequestFlags &csrSizeRequestFlags, bool isThreadArbitionPolicyP... |
//
// Copyright (c) 2012-2013, ARM Limited. All rights reserved.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//
#include <Library/ArmLib.h>
INCLUDE AsmMacroIoLib.inc
EXPORT ArmPlatformPeiBootAction
EXPORT ArmPlatformGetCorePosition
EXPORT ArmPlatformGetPrimaryCoreMpId
EXPORT ArmPlatformIsPr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.