text
stringlengths
1
1.05M
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes "black...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xf41d, %rsi lea addresses_D_ht+0x453d, %rdi clflush (%rdi) nop nop nop nop nop cmp $57946, %rdx mov $91, %rcx rep movsw nop nop nop nop nop cmp $28186, %rdi lea addresses_normal_ht+0x118...
// Copyright (c) 2018-2020 The SmartCash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "init.h" #include "validation.h" #include "net.h" #include "netbase.h" #include "rpc/server.h" ...
; === load_map.asm ; The map loader. ; Begin loading a new map. ReceiveMap: ld a, PREDEF_PreserveMusicRegisters call PredefCmd ld c, $20 ld a, $a3 call PlayMusic coord hl, 0, 0 ld bc, $0212 call TextBoxBorder coord hl, 1, 1 ld de, SyncingText call PutString ld c, 2 ...
#Programmer: Mao Zunjie Student id: 18098531-i011-0019 #PART 1 Here is the original Code, and the improved version is in PART 2. #the Program can be assembled and run directly now. #parts of improved code comments are added on PART 2 and detailed explanation on Report. #PART 1 ORIGINAL CODE #.text #main: # li ...
SECTION code_clib SECTION code_fp_am9511 PUBLIC derror_znc EXTERN asm_am9511_derror_znc defc derror_znc = asm_am9511_derror_znc
; A037581: Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 1,3. ; 1,12,109,984,8857,79716,717445,6457008,58113073,523017660,4707158941,42364430472,381279874249,3431518868244,30883669814197,277953028327776,2501577254949985,22514195294549868,202627757650948813,18236498188585393...
10005828: 68 90 58 00 10 push 0x10005890 1000582d: 64 ff 35 00 00 00 00 push DWORD PTR fs:0x0 10005834: 8b 44 24 10 mov eax,DWORD PTR [esp+0x10] 10005838: 89 6c 24 10 mov DWORD PTR [esp+0x10],ebp 1000583c: 8d 6c 24 10 lea ebp,[esp+0x10] 10005840: 2b e0 ...
; A272009: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 413", based on the 5-celled von Neumann neighborhood. ; 1,9,14,62,67,187,192,416,421,781,786,1314,1319,2047,2052,3012,3017,4241,4246,5766,5771,7619,7624,9832,9837,12437,12442,1...
cseg segment byte public 'code' assume cs:cseg, ds:cseg org 100h start_of_virus: call get_offset get_offset: ;alternative way to get the delta mov di,sp ;offset without activating any flags in mov bp,word ptr ss:[di] ;TB-scan sub bp,offset get_offset ...
; --COPYRIGHT--,BSD_EX ; Copyright (c) 2012, Texas Instruments Incorporated ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; * Redistributions of source code must retain the ...
; ; Small C+ Compiler ; ; Long Support Library ; ; 1/3/99 djm ; This routine is used to push longs on the stack for a ; call to a function defined as a pointer. To make the ; routine shorter (by one byte) we could use ix - pop ix/jp(ix) ; but we'd lose 6T - give me you...
object_const_def KyotoEast_MapScripts: db 0 ; scene scripts db 0 ; callbacks ;callback MAPCALLBACK_NEWMAP, .InitializeRoom ;callback MAPCALLBACK_TILES, .SetSpawn KyotoEast_MapEvents: db 0, 0 ; filler db 0 ; warp events db 0 ; coord events db 0 ; bg events ;bg_event 0, 1, BGEVENT_READ, RedsHouse1FBooks...
/* Add two numbers represented by linked lists Easy Accuracy: 30.12% Submissions: 100k+ Points: 2 Given two numbers represented by two linked lists of size N and M. The task is to return a sum list. The sum list is a linked list representation of the addition of two input numbers from the last. Example 1: ...
ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ $(srctree)/include/asm-$(SRCARCH)/kvm.h),) header-y += kvm.h endif ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \ $(srctree)/include/asm-$(SRCARCH)/kvm_para.h),) header-y += kvm_para.h endif ifneq ($(wildcard $(srctree)/...
; Copyright (C) 2009 Ubixum, Inc. ; ; 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. ; ; This library i...
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: org.apache.http.entity.AbstractHttpEntity ================================================================================*/ #ifndef J2CP...
; A085523: Product_{k=0..n} (4^(2k+1)+1). ; Submitted by Jon Maiga ; 1,5,325,333125,5458253125,1430853765453125,6001437102708869453125,402749632331680654432389453125,432449125237897791207428190509189453125,7429419400754766057344059513229133345069189453125,2042183254696046247075864924725939712088925233082669189453125,89...
; A247983: Least number k such that log(2) - sum{1/(h*2^h), h=1..k} < 1/2^n. ; 1,1,2,3,3,4,5,6,7,7,8,9,10,11,12,13,14,15,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "xmpp/xmpp_proto.h" #include <iostream> #include <string> #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/predicate.hpp> #include "xmpp/xmpp_log.h" #include "xmpp/xmpp_session.h" #include "xmpp/xmpp_str.h"...
; ; Devilishly simple routines for the Spectrum ; ; cputs(char *s) - put string to screen (no line feed) ; ; ; $Id: puts_cons.asm,v 1.7 2016-07-02 13:52:42 dom Exp $ ; MODULE puts_cons SECTION code_clib PUBLIC cputs PUBLIC _cputs EXTERN fputc_cons ; Enter in with hl holding the address of string to print ...
; Setup the PC speaker timer mov al, 10110110b out 0x43, al ; Set the default frequency mov ax, 1193 ; ~1000 Hz out 0x42, al mov al, ah out 0x42, al ; Enable the PC speaker in al, 61h or al, 00000011b out 61h, al
; A177265: Number of permutations of {1,2,...,n} having exactly one string of consecutive fixed points (including singletons). ; 1,1,4,12,57,321,2176,17008,150505,1485465,16170036,192384876,2483177809,34554278857,515620794592,8212685046336,139062777326001,2494364438359953,47245095998005060,942259727190907180,1973756698...
lda {m1} sta $fe lda {m1}+1 sta $ff clc lda ($fe),y adc #<{c1} sta ($fe),y iny lda ($fe),y adc #>{c1} sta ($fe),y
; A189574: Partial sums of A189572. ; 0,1,1,1,2,2,3,3,4,4,4,5,5,6,6,6,7,7,8,8,8,9,9,10,10,11,11,11,12,12,13,13,13,14,14,15,15,16,16,16,17,17,18,18,18,19,19,20,20,21,21,21,22,22,23,23,23,24,24,25,25,25,26,26,27,27,28,28,28,29,29,30,30,30,31,31,32,32,33,33,33,34,34 mov $1,$0 seq $0,1953 ; a(n) = floor((n + 1/2) * sqrt(2...
;****************************************************************************** ;* VC1 DSP optimizations ;* Copyright (c) 2007 Christophe GISQUET <christophe.gisquet@free.fr> ;* Copyright (c) 2009 David Conrad ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it ...
// Minimal struct - two instances being copied (using assignment) // Commodore 64 PRG executable file .file [name="struct-2.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segme...
#include "LightModel.h" #include "../../Util/Utils.h" LightModel::LightModel() : Model("Light", std::vector<glm::vec3>(), std::vector<glm::vec2>(), std::vector<glm::vec3>(), std::vector<unsigned int>(), false, glm::vec3()) { m_vertexIndices = {0, 1, 2, // first triangle (bottom left ...
;This program prints each numbers of the fibonachi sequence @import libs/import_all_libs.asm ;------------------------ ;Loop throught all the integers from 3 to the ;bigest one and call processNum on them label fibo pushr R1 ;scratch register pushr R2 ;last number pushr R3 ;previous numbre pushr R4 ;...
;------------------------------------------------------------------------------ ; security_check_cookie.asm ; MS_CHANGE_? ;------------------------------------------------------------------------------ EXTRN __security_cookie:QWORD .code ;----------------------------------------------------------------------...
; A192957: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments. ; 0,1,1,5,14,34,72,141,261,465,806,1370,2296,3809,6273,10277,16774,27306,44368,71997,116725,189121,306286,495890,802704,1299169,2102497,3402341,5505566,8908690,14415096,23324685,37740741,61066449,98808278,159875882,...
;hello world in many programming languages!!! ;authors: ;- ruben andre barreiro section .text global _start ;must be declared for linker (ld) _start: ;tell linker entry point mov edx,len ;message length ...
lc r4, 0x00000000 lc r5, 0x0000101f lc r6, 0x00000000 tlbse r6, r4 lc r8, 0x40000000 lc r9, 0x0000101f lc r10, 0x00000001 tlbse r10, r8 lc r11, 0xdeadbeef lc r12, 0x40000000 lc r13, 0x40000002 st4 r11, r12, 0 ld1 r30, r13, 0 halt #@expected values #r4 = 0x0000000...
/**************************************************************************** * Copyright (c) 2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You ma...
bits 64 default rel section .text global pal_execute_vmcall_xen pal_execute_vmcall_xen : mov rax, rdi mov rdi, rsi mov rsi, rdx mov rdx, rcx mov r10, r8 mov r8, r9 pop r9 push rcx push r11 vmcall pop r11 pop rcx ret
; A007437: Inverse Moebius transform of triangular numbers. ; 1,4,7,14,16,31,29,50,52,74,67,119,92,137,142,186,154,247,191,294,266,323,277,455,341,446,430,553,436,686,497,714,634,752,674,1001,704,935,878,1150,862,1298,947,1323,1222,1361,1129,1767,1254,1674,1486,1834,1432,2110,1622,2185,1850,2150,1771,2814,1892,2453,232...
; The OS Alpha Kernel ; Copyright (C) 2021 Adam Judge ; ; File: console.asm ; Last modified: 25 May 2020 ; Description: Text display and graphical subroutines ; Print the character in AL to the screen ; Params: AL = character ; Return: None putc: mov ah, 0xE int 0x10 ret ; Print a null-term...
[bits 32] [section .text] INT_VECTOR_SYS_CALL equ 0x80 _NR_GETCWD EQU 24 global getcwd getcwd: mov eax, _NR_GETCWD mov ebx, [esp + 4] mov ecx, [esp + 8] int INT_VECTOR_SYS_CALL ret
;******************************************************************************* ; * ; Filename: isr.asm * ; Date: April 4, 2018 ...
BITS 32 section .text global _start _start: sub esp, 0x1200 push dword [_start_block_key] push 0 push dword [_start_block_id] push _jump_block ret _jump_block: pusha pushf ; stack: [ register (32) ] [ eflag (4) ] [ block_id (4) ] [ block_addr (4) ] [ block_key (4) ] ...
; A133476: a(n) = Sum_{k>=0} binomial(n,5*k+1). ; 0,1,2,3,4,5,7,14,36,93,220,474,948,1807,3381,6385,12393,24786,50559,103702,211585,427351,854702,1698458,3368259,6690150,13333932,26667864,53457121,107232053,214978335,430470899,860941798,1720537327,3437550076,6869397265,13733091643,27466183286,54947296924,109933682017,2...
; A178454: Denominator of n!*Sum((-1)^k/k!, k=0..n)/(n-1)^n. ; Submitted by Jamie Morken(w1) ; 1,4,9,256,3125,15552,823543,16777216,43046721,10000000000,25937424601,2972033482752,302875106592253,11112006825558016,145964630126953125,18446744073709551616,827240261886336764177,1457274373159131021312,1978419655660313589123...
#include <bits/stdc++.h> using namespace std; int MAXVALUE = 99999; int main() { int N,M; cin>>N; cin>>M; int** G = new int*[N]; for (int i = 0; i < N; i++) { G[i] = new int[N]; for (int j = 0; j < N; j++) { if (i == j) { G[i][j]...
// Copyright 2010-2014 Google // 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 or agreed to in wri...
; 1 2 3 4 5 6 7 ;234567890123456789012345678901234567890123456789012345678901234567890 ;===================================================================== ; ; EXAMPLE 001: Getting Started ; EXAMPLE PURPOSE: Demonstrates how to use the function ; ...
#include "FuelLineStart.h" #include "Net/UnrealNetwork.h" class UTrackBuilderUsable; class ATrackBuilderSegment; void AFuelLineStart::OnRep_FuelLineConnected() { } void AFuelLineStart::CallbackNextSegmentChanged(UTrackBuilderUsable* InUsable, ATrackBuilderSegment* InSegment) { } void AFuelLineStart::GetLifetimeRep...
#include "Bumeran.h" Bumeran::Bumeran(string nombre, string color):Item(nombre, color){ ataque=5; } int Bumeran::getAtaque(){ return ataque; }
<% from pwnlib.shellcraft import common %> <% from pwnlib.shellcraft.thumb import mov %> <%page args="sock = 'r6'"/> <%docstring> Args: [sock (imm/reg) = r6] Duplicates sock to stdin, stdout and stderr </%docstring> <% dup = common.label("dup") looplabel = common.label("loop") %> ${dup}: ${mov('r1...
//===---- TargetInfo.cpp - Encapsulate target details -----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// // Copyright 2021 Splunk Inc. // // 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 or agreed to i...
; A168255: n appears n-th nonprime number times. ; 1,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10 mul $0,2 mov $1,1 lpb $0 sub $0,8 trn $0,$1 add $1,3 lpe...
/* * Copyright (C) 2015 Team XBMC * http://xbmc.org * * 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 version 2, or (at your option) * any later version. * * This ...
#include "visitor.hpp" #include "ast.hpp" #include <iostream> #include <vector> #include <string> #include <cassert> using namespace std; using namespace ast; template<typename map_from, typename map_to> struct map_function { virtual map_to operator()(const map_from&) = 0; }; template<typename same> struct map_i...
; A275974: Partial sums of the Jeffreys binary sequence A275973. ; 1,1,2,3,3,3,3,3,4,5,6,7,8,9,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,...
;================================================================================ ; Randomize Flute Dig Item ;-------------------------------------------------------------------------------- SpawnHauntedGroveItem: LDA $8A : CMP.b #$2A : BEQ + : RTL : + ; Skip if not the haunted grove LDA $1B : BEQ + : RTL : + ; Skip ...
#include "Scene.h" #include <SDL_image.h> Scene::Scene() { isPrepared = false; pointIndicator = NULL; } Scene::~Scene() { for (auto sceneNode : texturedMeshes) { delete sceneNode; } texturedMeshes.clear(); if (pointIndicator != NULL) delete pointIndicator; pointIndicator = NULL; ...
; A190365: n + [n*r/s] + [n*t/s] + [n*u/s]; r=sqrt(2), s=1/r, t=sqrt(3), u=1/t. ; 5,11,18,24,31,36,43,49,56,62,67,74,80,87,93,100,105,112,118,124,131,136,143,149,156,162,169,174,181,187,193,200,205,212,218,225,231,238,243,249,256,262,269,274,281,287,294,300,307,312,318,325,331,338,343,350,356,363,369,374,381,387,394,40...
; A039823: a(n) = ceiling( (n^2 + n + 2)/4 ). ; 1,2,4,6,8,11,15,19,23,28,34,40,46,53,61,69,77,86,96,106,116,127,139,151,163,176,190,204,218,233,249,265,281,298,316,334,352,371,391,411,431,452,474,496,518,541,565,589,613,638,664,690,716,743,771,799,827 add $0,2 bin $0,2 add $0,2 div $0,2
; A134945: Decimal expansion of 1 + sqrt(5). ; Submitted by Jon Maiga ; 3,2,3,6,0,6,7,9,7,7,4,9,9,7,8,9,6,9,6,4,0,9,1,7,3,6,6,8,7,3,1,2,7,6,2,3,5,4,4,0,6,1,8,3,5,9,6,1,1,5,2,5,7,2,4,2,7,0,8,9,7,2,4,5,4,1,0,5,2,0,9,2,5,6,3,7,8,0,4,8,9,9,4,1,4,4,1,4 mov $2,12 mov $3,$0 mul $3,4 mov $5,47 lpb $3 add $1,$5 mov $5,$1 ...
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 126 card_no equ "126" card_sub equ "Mod Card 126" card_sub_x...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x10114, %rsi nop add $29836, %r13 and $0xffffffffffffffc0, %rsi movntdqa (%rsi), %xmm0 vpextrq $1, %xmm0, %rbx nop nop nop nop nop add $15127, %r8 lea addresses_WC_ht+0xd23c, ...
; $Id: PATMA.asm $ ;; @file ; PATM Assembly Routines. ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; Genera...
#include "DigitalInput.h" namespace Victor::Components { DigitalInput::DigitalInput(uint8_t pin, uint8_t trueValue, uint8_t mode) { _pin = pin; _trueValue = trueValue; pinMode(_pin, mode); } bool DigitalInput::getValue() { const auto value = digitalRead(_pin); return value == _trueValue; ...
; A267256: Middle column of the "Rule 111" elementary cellular automaton starting with a single ON (black) cell. ; Submitted by Christian Krause ; 1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0...
; void *tshr_cy2saddr(uchar row) SECTION code_clib SECTION code_arch PUBLIC _tshr_cy2saddr EXTERN _zx_cy2saddr defc _tshr_cy2saddr = _zx_cy2saddr
//****************************************************************************** //* //* FULLNAME: Single-Chip Microcontroller Real-Time Operating System //* //* NICKNAME: scmRTOS //* //* PROCESSOR: ADSP-BF533 (Analog Devices) //* //* TOOLKIT: VDSP (Analog Devices) //* //* ...
; A269497: Number of length-6 0..n arrays with no repeated value differing from the previous repeated value by one. ; 40,591,3680,14695,44904,114695,257536,524655,990440,1758559,2968800,4804631,7501480,11355735,16734464,24085855,33950376,46972655,63914080,85666119,113264360,147903271,190951680,243968975,308722024,38720...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The thunderhot developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bitcoinunits.h" ...
; A215602: a(n) = L(n)*L(n+1), where L = A000032 (Lucas numbers). ; 2,3,12,28,77,198,522,1363,3572,9348,24477,64078,167762,439203,1149852,3010348,7881197,20633238,54018522,141422323,370248452,969323028,2537720637,6643838878,17393796002,45537549123,119218851372,312119004988,817138163597,2139295485798,5600748293802,14662...
#include "../imgui/imgui.hpp" #include "../imgui/imgui_key.hpp" #include <windows.h> #include <iostream> namespace ImGui { namespace detail { const char* m_array[] = { "none", "mouse 1", "mouse 2", "none", "mouse 3", "mouse 4", "mouse 5", "none", "backspace", "tab", "none", "none", "none",...
main START 0 EXTREF result EXTREF fact EXTREF print EXTREF stinit EXTREF end +LDA #end +JSUB stinit . initialize the stack loop LDA #1 +STA result . result = 1 LDA i ADD #1 . i++ STA i COMP #10 JEQ halt . if i == 10 then halt +JSUB fact . call fact(i) +LDA re...
; A047614: Numbers that are congruent to {0, 1, 2, 4, 5} mod 8. ; 0,1,2,4,5,8,9,10,12,13,16,17,18,20,21,24,25,26,28,29,32,33,34,36,37,40,41,42,44,45,48,49,50,52,53,56,57,58,60,61,64,65,66,68,69,72,73,74,76,77,80,81,82,84,85,88,89 mov $2,$0 lpb $0,1 mul $0,2 div $0,5 mov $3,$0 mov $0,2 add $1,6 mul $1,$3 ...
; A331319: a(n) = [x^n](x - 2*x^3)/(1 - 2*x*(x + 1))^2. ; Submitted by Jon Maiga ; 0,1,4,14,48,156,496,1544,4736,14352,43072,128224,379136,1114560,3260160,9494656,27545600,79642880,229573632,659951104,1892478976,5414755328,15461117952,44064835584,125371383808,356137570304,1010187124736,2861518086144,8095486246912,22875...
LMPyramid label byte word C_BLACK Bitmap <71,100,0,BMF_MONO> db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 db 0x77, 0xef, 0xf6, 0xc0, 0x00, 0x00, 0x13, 0xff, 0xdc db 0x5f, 0xff, 0xca, 0x40, 0x00, 0x00, 0x3b, 0xff, 0xf4 db 0xfe, 0xfc, 0xb0, 0x00, 0x00, 0x00, 0x47, 0xff, 0xfc db 0x...
#ifdef TRACY_ENABLE #ifdef _WIN32 # ifndef NOMINMAX # define NOMINMAX # endif # include <winsock2.h> # include <windows.h> # include <tlhelp32.h> # include <inttypes.h> # include <intrin.h> #else # include <sys/time.h> # include <sys/param.h> #endif #ifdef _GNU_SOURCE # include <errno.h> #endif #ifdef _...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0xdb58, %rsi lea addresses_WC_ht+0x15696, %rdi nop nop and $27451, %r8 mov $54, %rcx rep movsw and %rbp, %rbp lea addresses_D_ht+0x18306, %rsi lea addresses_WC_ht+0x122d8, %rdi cmp $...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft %> <%docstring>setgid(gid) -> str Invokes the syscall setgid. See 'man 2 setgid' for more information. Arguments: gid(gid_t): gid Returns: int </%docstring> <%page args="gid=0"/> <% abi = pwnlib.abi.ABI.syscall() ...
%include "../defaults_common.asm" extern table frames equ 838 positions equ 154 scanlines equ 200 footerSize equ (footerEnd-footer) headerSize equ (headerEnd-header) strideSegs equ ((frames*2 + 15) >> 4) pixelTableSize equ 2*6*2*154*16 stackSize equ 0x200 stackEnd equ stackSize+pixelTableSize segTable equ seg table ;...
; A027557: Number of 3-balanced strings of length n: let d(S)= #(1)'s in S - #(0)'s, then S is k-balanced if every substring T has -k<=d(T)<=k; here k=3. ; Submitted by Christian Krause ; 1,2,4,8,14,26,44,78,130,224,370,626,1028,1718,2810,4656,7594,12506,20356,33374,54242,88640,143906,234594,380548,619238,1003882,16313...
; A285400: Start with a single cell at coordinates (0, 0, 0), then iteratively subdivide the grid into 3 X 3 X 3 cells and remove the cells whose sum of modulo 2 coordinates is 0 or 3; a(n) is the number of cells after n iterations. ; Submitted by Christian Krause ; 1,18,378,7938,166698,3500658,73513818,1543790178,3241...
; A282232: a(n) = ((3*n + 1)^6 - 1)/9. ; 0,455,13072,111111,536312,1864135,5227320,12597767,27126736,53543367,98611520,171644935,285080712,455111111,702373672,1052699655,1537920800,2196734407,3075626736,4229854727,5724486040,7635497415,10050931352,13072111111,16814914032,21411103175,27009717280 mov $1,$0 mul $1,3 add ...
#include "Render.h" namespace md { string Render::visit(Text *p) { if (p->style == Style::BOLD) { return "<b>" + p->text + "</b>"; } else if (p->style == Style::QUOTE) { return "<code>" + p->text + "</code>"; } else if (p->style == Style::ITALIC) { return "<em>" + p->text + "</em>"; ...
; A168379: a(n) = 4*n - 2*(-1)^n + 1. ; 7,7,15,15,23,23,31,31,39,39,47,47,55,55,63,63,71,71,79,79,87,87,95,95,103,103,111,111,119,119,127,127,135,135,143,143,151,151,159,159,167,167,175,175,183,183,191,191,199,199,207,207,215,215,223,223,231,231,239,239,247,247,255,255,263,263,271,271,279,279,287,287,295,295,303,303,31...
IDEAL SEGMENT SEG1 PUBLIC ASSUME CS: SEG1, DS: SEG1 start: call [word loc1] call [dword loc2] int 20h loc1 dw 0 loc2 dd 0 ENDS SEG1 SEGMENT SEG2 PUBLIC ASSUME CS: SEG2 db 'padding' quit: dw 0 ENDS SEGMENT _STACK STACK DB 10h DUP (0) ENDS _STACK END start
# @Name: DynamicArray # @Description: The program allocates (iteratively) a NxN array, as defined by the user. # # @Author: Giacomo Marciani <giacomo.marciani@gmail.com> .data msg_welcome: .asciiz "Il programma carica nel data segment un array bidimensionale nxn impostato dall'utente attraverso un ciclo iterativo." m...
############################################################################### # 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...
/** * \file Module.cpp * \author Nicholas Ammann * \date 2/24/2018 * \brief Member function definitions for Module. */ #include "Elba/Framework/Module.hpp" #include "Elba/Engine.hpp" namespace Elba { Module::Module(Engine* engine) : mEngine(engine) { } Engine* Module::GetEngine() const { return mEngine; } } // ...
; Boolean checks FALSE EQU 0 TRUE EQU 1 ; flag operations const_def const FLAG_RESET ; 0 const FLAG_SET ; 1 const FLAG_TEST ; 2
// 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...
default rel %define XMMWORD %define YMMWORD %define ZMMWORD section .text code align=64 EXTERN OPENSSL_ia32cap_P global bn_mul_mont_gather5 ALIGN 64 bn_mul_mont_gather5: mov QWORD[8+rsp],rdi ;WIN64 prologue mov QWORD[16+rsp],rsi mov rax,rsp $L$SEH_begin_bn_mul_mont_gather5: mov rdi,rcx mov rsi,rdx mov rdx,r8 ...
; A315746: Coordination sequence Gal.6.637.5 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. ; Submitted by Christian Krause ; 1,6,12,18,23,29,33,39,44,50,56,62,68,74,80,85,91,95,101,106,112,118,124,130,136,142,147,153,157,163,168,174,...
// myimagelist.cpp - Implementation of CMyImageList // // WinDirStat - Directory Statistics // Copyright (C) 2003-2005 Bernhard Seifert // Copyright (C) 2004-2017 WinDirStat Team (windirstat.net) // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public L...
; ; CPC fcntl Library ; ; Donated by **_warp6_** <kbaccam@free.fr> ; ; $Id: cpc_closeout.asm,v 1.6 2017-01-02 21:02:22 aralbrec Exp $ SECTION code_clib PUBLIC cpc_closeout PUBLIC _cpc_closeout INCLUDE "target/cpc/def/cpcfirm.def" .cpc_closeout ._cpc_closeout call firmware ...
CeladonMart3F_Object: db $f ; border block def_warps warp 12, 1, 0, CELADON_MART_4F warp 16, 1, 1, CELADON_MART_2F warp 1, 1, 0, CELADON_MART_ELEVATOR def_signs sign 2, 4, 6 ; CeladonMart3Text6 sign 3, 4, 7 ; CeladonMart3Text7 sign 5, 4, 8 ; CeladonMart3Text8 sign 6, 4, 9 ; CeladonMart3Text9 si...
; A254895: Indices of octagonal numbers (A000567) that are also centered square numbers (A001844). ; Submitted by Jon Maiga ; 1,13,53,1241,5161,121573,505693,11912881,49552721,1167340733,4855660933,114387478921,475805218681,11208805593493,46624055769773,1098348560683361,4568681660219041,107626950141375853,4476841786456...
; A309335: a(n) = n^3 if n odd, 7*n^3/8 if n even. ; 0,1,7,27,56,125,189,343,448,729,875,1331,1512,2197,2401,3375,3584,4913,5103,6859,7000,9261,9317,12167,12096,15625,15379,19683,19208,24389,23625,29791,28672,35937,34391,42875,40824,50653,48013,59319,56000,68921,64827,79507,74536,91125 pow $0,3 mul $0,7 mov $1,$0 mov ...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.24215.1 TITLE D:\!!Scene\rw2018\Outside\src\shaders\shaders.cpp .686P .XMM include listing.inc .model flat INCLUDELIB LIBCMT INCLUDELIB OLDNAMES PUBLIC ?common_init_frag@@3PBDB ; common_init_frag PUBLIC ??_C@_0CJHL@FILDGGGI@?$...
; A170232: Number of reduced words of length n in Coxeter group on 31 generators S_i with relations (S_i)^2 = (S_i S_j)^40 = I. ; 1,31,930,27900,837000,25110000,753300000,22599000000,677970000000,20339100000000,610173000000000,18305190000000000,549155700000000000,16474671000000000000,494240130000000000000,1482720390000...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>oldstat(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall oldstat. See 'man 2 oldstat' for more information. Arguments: vararg(int): vararg Returns: long </%docstring>...
// Copyright 2015 the V8 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. #if V8_TARGET_ARCH_S390 #include "src/interface-descriptors.h" #include "src/frames.h" namespace v8 { namespace internal { const Register CallInterf...