text
stringlengths
1
1.05M
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0x12382, %rax nop nop cmp %r15, %r15 and $0xffffffffffffffc0, %rax movaps (%rax), %xmm1 vpextrq $1, %xmm1, %rsi inc %rsi lea addresses_WC_ht+0x2782, %r11 nop nop nop cmp $49418...
; A071858: (Number of 1's in binary expansion of n) mod 3. ; 0,1,1,2,1,2,2,0,1,2,2,0,2,0,0,1,1,2,2,0,2,0,0,1,2,0,0,1,0,1,1,2,1,2,2,0,2,0,0,1,2,0,0,1,0,1,1,2,2,0,0,1,0,1,1,2,0,1,1,2,1,2,2,0,1,2,2,0,2,0,0,1,2,0,0,1,0,1,1,2,2,0,0,1,0,1,1,2,0,1,1,2,1,2,2,0,2,0,0,1,0,1,1,2,0,1,1,2,1,2,2,0,0,1,1,2,1,2,2,0,1,2,2,0,2,0,0,1,1,2...
db WEEZING ; 110 db 65, 90, 120, 60, 85, 70 ; hp atk def spd sat sdf db POISON, POISON ; type db 60 ; catch rate db 173 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/weezing/front.dimensi...
; A093509: Multiples of 5 or 6. ; 0,5,6,10,12,15,18,20,24,25,30,35,36,40,42,45,48,50,54,55,60,65,66,70,72,75,78,80,84,85,90,95,96,100,102,105,108,110,114,115,120,125,126,130,132,135,138,140,144,145,150,155,156,160,162,165,168,170,174,175 mov $3,$0 mov $6,$0 lpb $3 mov $0,$6 sub $3,1 sub $0,$3 mov $4,$0 mul $...
; A064917: a(n) is the result of beginning with n and iterating k -> A064916(k) until a prime is reached. ; 2,3,3,5,3,7,5,5,3,11,7,13,5,7,5,17,3,19,11,5,7,23,13,5,5,11,7,29,5,31,17,13,3,11,19,37,11,7,5,41,7,43,23,17,13,47,5,13,5,19,11,53,7,7,29,5,5,59,31,61,17,23,13,17,3,67,11,5,19,71,37,73,11,11,7,17,5,79,41,29,7,83,4...
; A238192: In the Collatz (3x+1) iteration of n, the last odd number before 1, or 0 if there is no such number. ; Submitted by Christian Krause ; 0,0,5,0,5,5,5,0,5,5,5,5,5,5,5,0,5,5,5,5,21,5,5,5,5,5,5,5,5,5,5,0,5,5,5,5,5,5,5,5,5,21,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,0,5,5,5,5,5,5,5,5,5,5,85,5,5,5,5,5,5,5,5,21,85...
#include<cstdio> #include<iostream> #include<cmath> #include<vector> #include<algorithm> #include<string> #include<cstring> using namespace std; int main(){ vector<int> a; a.resize(0); a.resize(3); cin >> a[0] >> a[1] >> a[2]; while ((a[0] != 0)&&(a[1] != 0)&&(a[2] != 0)){ sort(a.begin(), a.end()...
SECTION code_fcntl PUBLIC console_01_output_char_proc_linefeed EXTERN console_01_output_char_proc_putchar_scroll console_01_output_char_proc_linefeed: ; ix = FDSTRUCT.JP * ld d,(ix+15) inc d ; d = y++ ld a,d sub (ix+19) jr c, y_ok_2 inc a call console_01_o...
Map_602D6: dc.w word_602E6-Map_602D6 dc.w word_602E8-Map_602D6 dc.w word_602FC-Map_602D6 dc.w word_60316-Map_602D6 dc.w word_60330-Map_602D6 dc.w word_60344-Map_602D6 dc.w word_60352-Map_602D6 dc.w word_60360-Map_602D6 word_602E6: dc.w 0 word_602E8: dc.w 3 dc.b $EC, $E, 0, 0, $FF, $EC dc....
; A336651: Odd part of n divided by its largest squarefree divisor. ; 1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,5,1,9,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1,7,5,1,1,1,9,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,5,1,1,1,1,1,27,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,7,3,5 seq $0,336551 ; a(n) = A003557(n) - 1. add $0,1 ...
; SMSQ Q40 Hardware Initialisation V3 ; ; 2003-09-27 2.00 Added OSPS config item (wl) ; 2018-03-08 2.01 Disable ABC keyboard as it caused problems (MK) ; Called with a7 a valid, safe stack ; d4 the host (QDOS) version number ; The hardware is initialised. ; If d7 = 0 The caches are invalidated ; The RAM is ...
; sp1_DrawUpdateStructAlways(struct sp1_update *u) SECTION code_clib SECTION code_temp_sp1 PUBLIC _sp1_DrawUpdateStructAlways_fastcall EXTERN asm_sp1_DrawUpdateStructAlways defc _sp1_DrawUpdateStructAlways_fastcall = asm_sp1_DrawUpdateStructAlways
; ; ZX Spectrum specific routines ; by Stefano Bodrato, 29/06/2006 ; Fixed by Antonio Schifano, Dec 2008 ; ; Copy a string to a BASIC variable ; ; int __CALLEE__ zx_setstr_callee(char variable, char *value); ; ; CPIR, debugged version by Antonio Schifano, 29/12/2008 ; ; $Id: zx_setstr_callee.asm,v 1.7 2016-06-10 21:30...
TITLE PRACTICE PROBLEM 3 .MODEL SMALL .DATA STR1 DB 'Enter 1st Number: $' STR2 DB 'Enter 2nd Number: $' STR3 DB 'You have entered: $' STR4 DB 'After swapping: $' .CODE MAIN PROC MOV DX, @DATA MOV DS, DX LEA DX, STR1 ;1st string ...
; 8080 assembler code .hexfile PrintNumbersRev.hex .binfile PrintNumbersRev.com ; try "hex" for downloading in hex format .download bin .objcopy gobjcopy .postbuild echo "OK!" ;.nodump ; OS call list PRINT_B equ 1 PRINT_MEM equ 2 READ_B equ 3 READ_ME...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x9c1d, %rsi nop nop nop nop add %rbp, %rbp mov (%rsi), %rbx nop nop nop nop xor %r10, %r10 lea addresses_D_ht+0xb9ed, %r10 inc %r9 mov (%r10), %r14 nop nop inc %r10 lea addres...
; A179744: a(0) = 1, a(n) = 3*2^(n-1) - n for n>0. ; 1,2,4,9,20,43,90,185,376,759,1526,3061,6132,12275,24562,49137,98288,196591,393198,786413,1572844,3145707,6291434,12582889,25165800,50331623,100663270,201326565,402653156,805306339,1610612706,3221225441 mov $2,$0 seq $0,170108 ; Number of reduced words of length n in...
public ui_label_IX_draw extern ui_box_IX_calculate_absolute_position_DE include "ui.inc" include "video_io.inc" ui_label_IX_draw: CALL ui_box_IX_calculate_absolute_position_DE LD B, (IX+ui_box_width) LD C, (IX+ui_box_height) LD L, (IX+ui_label_text) LD H, (IX+ui_label_text+1) ui_label_IX_draw_loop: LD A, E OU...
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:20 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.ValueType #include "System/ValueType.hpp" // Includin...
; int __CALLEE__ strpos_callee(char *s, char c) ; find index of first occurrence of c in s ; 01.2007 aralbrec XLIB strpos_callee XDEF ASMDISP_STRPOS_CALLEE .strpos_callee pop hl pop de pop bc push hl ; enter : e = char c ; bc = char *s ; exit : found : hl = index of char c, NC flag...
; int fgetpos(FILE *stream, fpos_t *pos) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC fgetpos_callee EXTERN asm_fgetpos fgetpos_callee: pop af pop hl pop ix push af jp asm_fgetpos ;;;;;;;;;;;;...
; A128016: Expansion of (1+x+x^2+x^3)/(1-x^2+x^4). ; 1,1,2,2,1,1,-1,-1,-2,-2,-1,-1,1,1,2,2,1,1,-1,-1,-2,-2,-1,-1,1,1,2,2,1,1,-1,-1,-2,-2,-1,-1,1,1,2,2,1,1,-1,-1,-2,-2,-1,-1,1,1,2,2,1,1,-1,-1,-2,-2,-1,-1,1,1,2,2,1,1,-1,-1,-2,-2,-1,-1 mov $1,1 mov $2,1 lpb $0 sub $0,2 add $1,$2 sub $2,$1 lpe mov $0,$1
; A198682: Nonnegative multiples of 3 whose sum of base-3 digits are of the form 3*k+2. ; 6,12,18,30,36,51,54,69,75,84,90,105,108,123,129,141,147,153,162,177,183,195,201,207,219,225,240,246,252,267,270,285,291,303,309,315,324,339,345,357,363,369,381,387,402,411,417,423,435,441,456,459,474,480,486,501,507,519,525,531,54...
; Dummy function to keep rest of libs happy ; ; $Id: close.asm,v 1.5 2016-03-06 21:39:54 dom Exp $ ; SECTION code_clib PUBLIC close PUBLIC _close .close ._close ret
; int wv_priority_queue_reserve(wv_priority_queue_t *q, size_t n) SECTION code_adt_wv_priority_queue PUBLIC wv_priority_queue_reserve EXTERN asm_wv_priority_queue_reserve wv_priority_queue_reserve: pop af pop bc pop hl push hl push bc push af jp asm_wv_priority_queue_reserve
; sp1_DrawUpdateStructIfInv(struct sp1_update *u) SECTION code_temp_sp1 PUBLIC sp1_DrawUpdateStructIfInv sp1_DrawUpdateStructIfInv: INCLUDE "temp/sp1/zx/updater/asm_sp1_DrawUpdateStructIfInv.asm"
; ; This file contains the VGA mode 0x13 setup and color palette ; [bits 32] global init_vga global palette section .text ; void init_vga() ; Initialize VGA mode (0x13) init_vga: pushad ; Set mode mov esi, mode0x13 call set_regs ; Set up palette mov esi...
// Copyright (c) 2013 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. // Browser test for basic Chrome OS file manager functionality: // - The file list is updated when a file is added externally to the Downloads // ...
// Copyright 2009-2017 Sandia Corporation. Under the terms // of Contract DE-NA0003525 with Sandia Corporation, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2017, Sandia Corporation // All rights reserved. // // This file is part of the SST software package. For license // in...
; A168915: Number of reduced words of length n in Coxeter group on 46 generators S_i with relations (S_i)^2 = (S_i S_j)^21 = I. ; 1,46,2070,93150,4191750,188628750,8488293750,381973218750,17188794843750,773495767968750,34807309558593750,1566328930136718750,70484801856152343750,3171816083526855468750,1427317237587084960...
; A112562: Sieve performed by successive iterations of steps where step m is: keep m terms, remove the next 4 and repeat; as m = 1,2,3,.. the remaining terms form this sequence. ; 1,6,31,96,241,546,1171,1776,2761,5046,7591,11856,19021,20706,31711,44016,60481,71946,92191,120216,138601,181986,226831,302496,379381,400686,...
; A024023: a(n) = 3^n - 1. ; 0,2,8,26,80,242,728,2186,6560,19682,59048,177146,531440,1594322,4782968,14348906,43046720,129140162,387420488,1162261466,3486784400,10460353202,31381059608,94143178826,282429536480,847288609442,2541865828328,7625597484986,22876792454960,68630377364882,205891132094648,617673396283946,1853020...
db 0 ; species ID placeholder db 35, 55, 35, 35, 30, 30 ; hp atk def spd sat sdf db DARK, DARK ; type db 255 ; catch rate db 55 ; base exp db NO_ITEM, PSNCUREBERRY ; items db GENDER_F50 ; gender ratio db 15 ; step cycles to hatch INCBIN "gfx/pokemon/poochyena/front.dimensions" db GROWTH_MEDIUM...
; Don't even think of reading this code ; It was automatically generated by sha1-586.pl ; Which is a perl program used to generate the x86 assember for ; any of ELF, a.out, COFF, Win32, ... ; eric <eay@cryptsoft.com> ; ; TITLE sha1-586.asm ; .486 ;.model FLAT ;_TEXT$ SEGMENT PAGE 'COD...
SECTION code_clib SECTION code_fp_math48 PUBLIC ___fsdiv EXTERN cm48_sdccixp_dsdiv defc ___fsdiv = cm48_sdccixp_dsdiv
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x3837, %rsi lea addresses_WT_ht+0x19cbe, %rdi nop nop nop nop nop cmp $43770, %r14 mov $91, %rcx rep movsw nop nop sub %rax, %rax lea addresses_UC_ht+0x8dfe, %r8 clflush (%r8) ...
db "POISON GAS@" ; species name dw 311, 210 ; height, weight db "When it inhales" next "poisonous gases" next "from garbage, its" page "body expands, and" next "its insides smell" next "much worse.@"
.data # Array of 8k bytes used to store user input. line_buffer: .byte 0 : 8192 # Index of current character in line buffer. cursor_pos: .word 0 # Output strings for print_status. message_v0: .asciiz "$v0: " message_v1: .asciiz "$v1: " message_cursor: .asciiz "Cursor: \n" message_hat: .asciiz "^\n" message_error: .a...
; int esxdos_f_unlink(void *filename) INCLUDE "config_private.inc" SECTION code_clib SECTION code_esxdos PUBLIC asm_esxdos_f_unlink EXTERN error_znc EXTERN __esxdos_error_mc asm_esxdos_f_unlink: ; F_UNLINK: ; Delete a file ; A=drive, HL=pointer to asciiz file/path ; ; enter : a = uchar drive ...
GetQuantityOfItemInBag: ; In: b = item ID ; Out: b = how many of that item are in the bag call GetPredefRegisters ld hl, wNumBagItems .loop inc hl ld a, [hli] cp $ff jr z, .notInBag cp b jr nz, .loop ld a, [hl] ld b, a ret .notInBag ld b, 0 ret
; ; ATL_dJIK30x30x30TN30x30x0_a1_b0.asm ; ; ATLAS "Speed of Light" DGEMM() kernel for AMD Athlon ; Code author: Julian Ruhe (ruheejih@linux.zrz.tu-berlin.de | Julian.Ruhe@t-online.de) ; ; void ATL_dJIK30x30x30TN30x30x0_a1_b0(const int M, const int N, const int K, const double alpha, ; const double *A, const...
// Copyright (c) 2011-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #include "clientversion.h" #include "init.h" #include "ui_interface.h" #include "util.h" #ifdef ENA...
[ENABLE] aobscanmodule(INJECT,ninja.exe,D9 5F 28 D9 44 24 0C) // should be unique alloc(newmem,$1000) label(code) label(return) newmem: code: fstp st(0) fld dword ptr [esp+0C] jmp return INJECT: jmp newmem nop nop return: registersymbol(INJECT) [DISABLE] INJECT: db D9 5F 28...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_int64_t_calloc_16.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-16.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory M...
.text .global main main: sll , , j 0, $, 100 j 00, $, 001011 j 1001, , 001001 j 0, $,
//P2 = 0; //S = 0xFF + (x>>8); //S = 0xFF + ((x*S)>>8); //S= 0x7F + ((x*S)>>8); //P2 = 0x1F; //P3 = S; CSEG AT 0 START: mov r0, #0 // r0 = x; LOOP: mov P2, #0 mov a, #0xFF //S = 0xFF + (x>>8); mov b, r0 mul ab mov a, b add a, #0xFF //S = 0xFF + ((x*S)>>8); mov b, r0 mul ab mov a, b //((x*S)>>8); mov b, #...
; ; Copyright (c) 2010 The WebM 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 contributing proje...
; ROM header org &4000 db "AB" ; magic number dw Execute ; program execution address dw 0, 0, 0, 0, 0, 0 VDPOutData equ &98 VDPOutControl equ &99 RomSize equ &4000 CHGMOD equ &005f WRTVDP equ &0047 Execute: ld a, 2 call CHGMOD ; ld bc, &e201 ; write 1110 0010 = 0xe2 to VDP(1) ...
MIN_WAIT_TIME = 30 MAX_WAIT_TIME = 120 MIN_WALK_TIME = 60 MAX_WALK_TIME = 240 SCAN_DISTANCE = 120 ATTACK_TIME = 150 main: .waiting: ; Decide how long to wait here push MAX_WAIT_TIME push MIN_WAIT_TIME call rand_int mov esi, eax .wait_loop: pause call look_for_player test eax, eax jnz .wait_loop ; Stop moving and ...
; A069178: Centered 21-gonal numbers. ; 1,22,64,127,211,316,442,589,757,946,1156,1387,1639,1912,2206,2521,2857,3214,3592,3991,4411,4852,5314,5797,6301,6826,7372,7939,8527,9136,9766,10417,11089,11782,12496,13231,13987,14764,15562,16381,17221,18082,18964,19867,20791,21736,22702,23689,24697,25726,26776,27847,28939,30052,3...
; ; LZ4 decompressor by spke (v.1 28/08/2017) ; ; I wrote this LZ4 decompressor from scratch; however, I looked at previously released ; LZ4 decompressors by Piotr Drapich, see http://www.union.org.pl/download/z80/ ; and stephenw32768, see https://www.worldofspectrum.org/forums/discussion/45185/lz4-decoder/p2 ...
Boa: DB $05 DW $1324 DW BoaEdges DB BoaEdgesSize DB $00, $26 DB BoaVertSize /6 DB BoaVertSize DB BoaEdgesCnt DB...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>newfstatat(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall newfstatat. See 'man 2 newfstatat' for more information. Arguments: vararg(int): vararg Returns: long </%d...
user/_alarmtest: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <periodic>: volatile static int count; void periodic() { 0: 1141 addi sp,sp,-16 2: e406 sd ra,8(sp) 4: e022 sd s0,0(sp) 6: 0800 addi s0,sp,1...
#ifndef IPSPATCH_HH #define IPSPATCH_HH #include "PatchInterface.hh" #include "Filename.hh" #include <utility> #include <vector> #include <memory> namespace openmsx { class IPSPatch final : public PatchInterface { public: using PatchMap = std::vector<std::pair<size_t, std::vector<byte>>>; IPSPatch(const Filename&...
; A013754: a(n) = 14^(3*n + 1). ; 14,38416,105413504,289254654976,793714773254144,2177953337809371136,5976303958948914397184,16398978063355821105872896,44998795805848373114515226624,123476695691247935826229781856256,338820052976784335907174521413566464 mul $0,3 add $0,1 mov $1,14 pow $1,$0 mov $0,$1
; A044416: Numbers n such that string '84' occurs in the base 10 representation of n but not of n-1. ; Submitted by Christian Krause ; 84,184,284,384,484,584,684,784,840,884,984,1084,1184,1284,1384,1484,1584,1684,1784,1840,1884,1984,2084,2184,2284,2384,2484,2584,2684,2784,2840,2884,2984,3084,3184,3284,3384,3484,3584 a...
.globl install_seccomp install_seccomp: lghi %r1, 172 /* __NR_prctl */ lghi %r2, 38 /* PR_SET_NO_NEW_PRIVS */ lghi %r3, 1 xgr %r4, %r4 xgr %r5, %r5 xgr %r6, %r6 svc 0 lghi %r1, 172 /* __NR_prctl */ lghi %r2, 22 /* PR_SET_SECCOMP */ lghi %r3, 2 /* SECCOMP_MODE...
.data V: .word 1 2 3 4 5 6 7 space: .asciiz "\t" .text .globl main main: li $s0, 5 li $s1, 5 la $s2, V li $s3, 7 move $a0, $s0 move $a1, $s1 move $a2, $s2 move $a3, $s3 jal emerge2 li $t0, 0 print_array: beq $t0, $s3, continue mul $t1, $t0, 4 add $t1, $t1, $s2 lw $t1, ($t1) li $v0, 1 ...
;=============================================================================== ; Copyright 2014-2020 Intel Corporation ; ; 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.apa...
; A040616: Continued fraction for sqrt(642). ; Submitted by Christian Krause ; 25,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1,24,1,2,50,2,1 seq $0,10222 ; Continued fraction for sqrt(178). se...
; char *strpbrk(const char *s1, const char *s2) SECTION code_string PUBLIC _strpbrk EXTERN asm_strpbrk _strpbrk: pop af pop hl pop de push de push hl push af jp asm_strpbrk
_ln: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 53 ...
/** * Aeolia AHCI device. * * Copyright 2017-2021. Orbital project. * Released under MIT license. Read LICENSE for more details. * * Authors: * - Alexandro Sanchez Bach <alexandro@phi.nz> */ #include "aeolia_ahci.h" constexpr U32 AEOLIA_AHCI_BAR_IDP = 4; constexpr U32 AEOLIA_AHCI_BAR_MEM = 5; AeoliaAHCIDevic...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 test Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.o...
; A173135: Primes other than 3 and 5. ; 2,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271 seq $0,215848 ; Primes > 3. sub $0,2 lpb $0 bin $0,4 lpe add $0,2
#pragma once /// \file nearest_neighbor.hpp Nearest neighbor container #include <utility> #include <vector> #include <unordered_map> #include <ndtree/tree.hpp> #include <ndtree/algorithm.hpp> #include <ndtree/utility/stack_vector.hpp> #include "nearest_neighbor.hpp" namespace nearest_neighbor { namespace faster { te...
#include <algorithm> #include <iostream> #include <vector> #include <unordered_map> using std::vector; int majority_element(vector<long long> &a) { std::unordered_map<long long, int> hashtable; for (int i = 0; i < a.size(); i++) { if (hashtable.find(a[i]) != hashtable.end()) { hashtable[a[...
COPY START 100X ILLEGAL OPERAND IN START STATEMENT START 1000 DUPLICATE OR MISPLACED START DIRECTIVE FIRST STL RETADR CLOOP JSUB RDREC LDA LENGTH CMP ZERO ILLEGAL FORMAT IN OPERATION FIELD ...
#include "FrozenWasteland.hpp" #include "ui/knobs.hpp" #include "ui/ports.hpp" struct PNChordExpander : Module { enum ParamIds { // MIN_NOTE_PARAM, // MIN_NOTE_CV_ATTENUVERTER_PARAM, // MAX_NOTE_PARAM, // MAX_NOTE_CV_ATTENUVERTER_PARAM, // NOTE_NUMBER_BALANCE_PARAM, // NOTE_NUMBER_BALANC...
#include<bits/stdc++.h> #define REP(x,y,z) for(int x=y;x<=z;x++) #define MSET(x,y) memset(x,y,sizeof(x)) #define M using namespace std; int main() { int n,a,b,ans; map<pair<int,int>,bool> mp; while (~scanf("%d", &n)) { ans = 0; mp.clear(); REP(i,1,n) { scanf("%d %d",&a,&...
/* Copyright 2019 The TensorFlow Authors. 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 Unless required by applicable law or a...
; Test case: ld bc,1 ; <-- should not be optimized, as we don't know what undefinedSymbol does call undefinedSymbol ld bc,2 ; <-- should be optimized call definedSymbol end: jp end definedSymbol: ld bc,2 ret
section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, hl mov edx, hll int 0x80 mov eax, 1 int 0x80 section .data hl db 'Hello World', 0xa hll equ $ - hl
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * * (C) 2003 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpi.h" #include "mpitestconf.h" #ifdef HAVE_IOSTREAM // Not all C++ compilers have iostream instead of iostream.h #include <iostream> #ifdef HAV...
; A015453: Generalized Fibonacci numbers. ; Submitted by Jamie Morken(s4) ; 1,1,8,57,407,2906,20749,148149,1057792,7552693,53926643,385039194,2749201001,19629446201,140155324408,1000716717057,7145172343807,51016923123706,364263634209749,2600862362591949,18570300172353392,132592963569065693,946721045155813243,6759640279...
; RTF to Deskjet filter 06/11/93 O.Fink ; include win1_spread_printer_mac section prog data 4096 printer DeskJet rtf_cmds prtcmd line prtcmd page prtcmd smal prtcmd norm prtcmd lett prtcmd dr...
.MODEL SMALL .STACK 64 DATA SEGMENT STRING DB ? SYM DB '$' INPUT_M DB 0ah,0dh,0AH,0DH, 'ENTER INPUT STRING: ',0DH,0AH,'$' STRLEN1 DW $-STR1 STRREV DB 20 DUP(' ') STR_PALIN DB 'STRING IS PALINDROME.','$' STR_NOT_PALIN DB 'STRING IS NOT PALINDROME.','$' DATA ENDS CODE SEGMENT ASSUME CS:CODE, DS:DATA BEGIN:...
; void mtx_destroy(mtx_t *m) SECTION code_threads_mutex PUBLIC _mtx_destroy EXTERN asm_mtx_destroy _mtx_destroy: pop af pop hl push hl push af jp asm_mtx_destroy
/* * File: ArbolGeneralPrincipal1.hxx * Author: Carlos de la Torre * * Created on 11 de diciembre de 2015, 19:20 */ /*--------------------------------Private-------------------------------------*/ template <class Tbase> void ArbolGeneral::destruir(nodo * n) { } template <class Tbase> void ArbolGeneral::copia...
; A168547: a(n) = 1 - 2*n^2 + 4*n*(1 + 2*n^2)/3. ; 1,3,17,59,145,291,513,827,1249,1795,2481,3323,4337,5539,6945,8571,10433,12547,14929,17595,20561,23843,27457,31419,35745,40451,45553,51067,57009,63395,70241,77563,85377,93699,102545,111931,121873,132387,143489,155195,167521,180483,194097,208379,223345,239011,255393,2725...
; ; written by Waleed Hasan ; ; $Id: set4pix.asm,v 1.2 2003/03/13 15:02:09 dom Exp $ XLIB set4pix LIB setpixsave .set4pix ld a,b add a,h ld d,a ld a,c add a,l ld e,a call setpixsave ;PIX(xc+x,yc+y) ld a,b sub h ld d,a call setpixsave ;PIX(xc-x,yc+y) ld a,c sub l ld e,a call setpixsave ;PIX(xc-x...
db "SEA LION@" ; species name dw 307, 1980 ; height, weight db "The light blue fur" next "that covers it" next "keeps it protected" page "against the cold." next "It loves iceberg-" next "filled oceans.@"
TITLE LINNUM - Copyright (c) SLR Systems 1994 INCLUDE MACROS INCLUDE SYMBOLS INCLUDE MODULES INCLUDE IO_STRUC PUBLIC LINNUM,LINNUM32,LINNUM_CONTINUE .DATA EXTERNDEF DEBUG_TYPES_SELECTED:BYTE,SYMBOL_TEXT:BYTE EXTERNDEF END_OF_RECORD:DWORD,LINNUM_ADDER:DWORD,LINNUM_DELTA:DWORD,DEFAULT_SIZE:DWORD,L...
/* * Copyright (c) 2017, 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 rights to use, copy, modify, merge, publi...
; A014448: Even Lucas numbers: L(3n). ; Submitted by Jamie Morken(s1) ; 2,4,18,76,322,1364,5778,24476,103682,439204,1860498,7881196,33385282,141422324,599074578,2537720636,10749957122,45537549124,192900153618,817138163596,3461452808002,14662949395604,62113250390418,263115950957276,1114577054219522,4721424167835364,2000...
/** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
; A017285: a(n) = (10*n + 1)^5. ; 1,161051,4084101,28629151,115856201,345025251,844596301,1804229351,3486784401,6240321451,10510100501,16850581551,25937424601,38579489651,55730836701,78502725751,108175616801,146211169851,194264244901,254194901951,328080401001,418227202051,527182965101,657748550151,812990017201,99625062...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * ...
; int im2_remove_generic_callback(uint8_t vector, void *callback) SECTION code_clib SECTION code_z80 PUBLIC _im2_remove_generic_callback EXTERN asm_im2_remove_generic_callback _im2_remove_generic_callback: pop af pop hl pop de push de push hl push af jp asm_im2_remove_generic_callback...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args=""/> <%docstring> Invokes the syscall getgid. See 'man 2 getgid' for more information. Arguments: </%docstring> ${syscall('SYS_getgid')}
Route4Object: db $2c ; border block db $3 ; warps db $5, $b, $0, MT_MOON_POKECENTER db $5, $12, $0, MT_MOON_1 db $5, $1c, $7, MT_MOON_2 db $3 ; signs db $5, $c, $4 ; PokeCenterSignText db $7, $11, $5 ; Route4Text5 db $7, $1f, $6 ; Route4Text6 db $3 ; objects object SPRITE_LASS, $9, $8, WALK, $0, $1 ; pers...
; A122112: a(n) = 4*a(n-2) - a(n-1), with a(0)=1, a(1)=-2. ; Submitted by Jamie Morken(s2) ; 1,-2,6,-14,38,-94,246,-622,1606,-4094,10518,-26894,68966,-176542,452406,-1158574,2968198,-7602494,19475286,-49885262,127786406,-327327454,838473078,-2147782894,5501675206,-14092806782,36099507606,-92470734734,236868765158,-6067...
; Writestring procedure (chapter 10) Writestring proc pusha push ds ; set ES to DS pop es mov di,dx ; let ES:DI point to the string call Str_length ; get length of string in AX mov cx,ax ; CX = number of bytes to write mov ah,40h ; write...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
; A060871: Number of n X n matrices over GF(7) with rank 1. ; 6,384,19494,960000,47073606,2306841984,113036904294,5538819840000,271402252867206,13298710955443584,651636840771389094,31930205225480640000,1564580056242329380806,76664422757230585805184,3756556715113793827473894,184071279040642363407360000,90194926729919410...
SECTION "romheader",ROM0[$100] nop jp Start
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
//------------------------------------------------------------------------------ // // Copyright (c) 2013 - 2014, ARM Limited. All rights reserved. // Copyright (c) Microsoft Corporation. All rights reserved. // // This program and the accompanying materials // are licensed and made available under the terms and condit...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xf6f0, %rbp nop nop sub $6723, %r8 movw $0x6162, (%rbp) nop nop nop nop sub $32780, %rbx lea addresses_UC_ht+0x17f0, %rsi lea addresses_A_ht+0xedc0, %rdi nop nop xor %r12, %r12 ...