text
stringlengths
1
1.05M
db 100; define byte dw 0xaa55; define two byte dd 0x12345678; define four byte db "hello world!!!" ,12,13; define string
;; ;; Copyright (c) Microsoft. All rights reserved. ;; Licensed under the MIT license. See LICENSE file in the project root for full license information. ;; #include "AsmMacros.h" TEXTAREA ;;----------------------------------------------------------------------------- ;; This helper routine enregisters the ...
; A033486: a(n) = n*(n + 1)*(n + 2)*(n + 3)/2. ; 0,12,60,180,420,840,1512,2520,3960,5940,8580,12012,16380,21840,28560,36720,46512,58140,71820,87780,106260,127512,151800,179400,210600,245700,285012,328860,377580,431520,491040,556512,628320,706860,792540,885780,987012,1096680,1215240,1343160,1480920,1629012,1787940,19582...
// Copyright 2016-2021 Doug Moen // Licensed under the Apache License, version 2.0 // See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0 #include <libcurv/io/builtin.h> #include <libcurv/io/cpp_program.h> #include <libcurv/analyser.h> #include <libcurv/context.h> #include <libcurv/exception...
; A052640: E.g.f. x*(1-x)/(1-2*x-x^2+x^3). ; Submitted by Jon Maiga ; 0,1,2,18,144,1680,22320,352800,6330240,128096640,2877638400,71131737600,1917922406400,56024506137600,1762396334899200,59401108166400000,2135568241078272000,81575844571533312000 mov $2,$0 seq $0,52994 ; Expansion of 2x(1-x)/(1-2x-x^2+x^3). lpb $2 m...
; A034692: a(n+1) = smallest number that is not the sum of a(n) or fewer terms of a(1),...,a(n). ; Submitted by Christian Krause ; 1,2,5,23,455,197447,38895873863,1512881323770591465287,2288809899755012359449577849239960517955399,5238650757216549725917660910593720468102050623548424798300898740084824366637074960199 mov...
############################################################################### # 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...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xf57f, %rsi lea addresses_UC_ht+0x9ecf, %rdi nop nop nop nop inc %r14 mov $101, %rcx rep movsb and $1978, %rax lea addresses_WC_ht+0x1157f, %r15 nop nop nop nop nop add $16515...
;--------------------------------------------------------------- ; Tick Counter ; ; The tick counter provides a measure of elapsed time that is ; based on a periodic interrupts from ctc0 channel 3. The choice ; of channel 3 is based on the fact that due to package ...
; A017523: a(n) = (12*n)^3. ; 0,1728,13824,46656,110592,216000,373248,592704,884736,1259712,1728000,2299968,2985984,3796416,4741632,5832000,7077888,8489664,10077696,11852352,13824000,16003008,18399744,21024576,23887872,27000000,30371328,34012224,37933056,42144192,46656000,51478848,56623104,62099136,67917312,74088000,80...
#include <iostream> #include <vector> int AddEvenNumbers(const std::vector<int>& vec) { int sum {0}; for (const int element : vec) { if (!(element % 2)) sum += element; } return sum; } // int main() { // std::vector<int> vec{1, 2, 3, 4, 5}; // std::cout << AddEvenNumbers(vec) << "\n"; // ret...
; (Shamelessely stolen | Adapted) from http://www.osdever.net/ global _idt_load _idt_load: [extern _idtp] lidt [_idtp] ret ;;;;;;;;;;;;;;;;;;;;;;;; INTERRUPT SERVICE ROUTINES ;;;;;;;;;;;;;;;;;;;;;;;;;; global _isr0 global _isr1 global _isr2 global _isr3 global _isr4 global _isr5 global _isr6 global _isr7 globa...
; A112063: Positive integers i for which A112049(i) == 3. ; 11,12,23,36,47,48,71,72,83,96,107,108,131,132,143,156,167,168,191,192,203,216,227,228,251,252,263,276,287,288,311,312,323,336,347,348,371,372,383,396,407,408,431,432,443,456,467,468,491,492,503,516,527 lpb $0,1 mov $2,$0 sub $2,1 cal $2,112133 ; First d...
;----------------------------------------------------------------------------- [bits 64] ; Global symbols global _start ;----------------------------------------------------------------------------- section .code ;===============================================================...
; ********************************************************************************* ; ********************************************************************************* ; ; File: multiply.asm ; Purpose: 16 bit unsigned multiply ; Date : 8th November 2018 ; Author: paul@robsons.org.uk ; ; ************************...
; A141952: Primes congruent to 7 mod 27. ; Submitted by Jon Maiga ; 7,61,223,277,331,439,547,601,709,1033,1087,1249,1303,1627,1789,1951,2113,2221,2383,2437,2707,3301,3463,3517,3571,3733,4003,4057,4111,4219,4273,4327,4597,4651,4759,4813,5407,5569,5623,5839,6163,6217,6271,6379,6703,7027,7243,7297,7351,7459,7621,8053,8161...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="path, mode"/> <%docstring> Invokes the syscall mkdir. See 'man 2 mkdir' for more information. Arguments: path(char): path mode(mode_t): mode </%docstring> ${syscall('SYS_mkdir', path, mode)}
; A070665: n^6 mod 42. ; 0,1,22,15,22,1,36,7,22,15,22,1,36,1,28,15,22,1,36,1,22,21,22,1,36,1,22,15,28,1,36,1,22,15,22,7,36,1,22,15,22,1,0,1,22,15,22,1,36,7,22,15,22,1,36,1,28,15,22,1,36,1,22,21,22,1,36,1,22,15,28,1,36,1,22,15,22,7 pow $0,6 mod $0,42 mov $1,$0
db DEX_HITMONCHAN ; pokedex id db 50, 105, 79, 76, 35 ; hp atk def spd spc db FIGHTING, FIGHTING ; type db 45 ; catch rate db 140 ; base exp INCBIN "gfx/pokemon/front/hitmonchan.pic", 0, 1 ; sprite dimensions dw HitmonchanPicFront, HitmonchanPicBack db COMET_PUNCH, AGILITY, NO_MOVE, NO_MOVE ; lev...
; ; Size-optimized LZSA2 decompressor by spke & uniabis (139 bytes) ; ; ver.00 by spke for LZSA 1.0.0 (02-09/06/2019, 145 bytes); ; ver.01 by spke for LZSA 1.0.5 (24/07/2019, added support for backward decompression); ; ver.02 by uniabis (30/07/2019, 144(-1) bytes, +3.3% speed and support for Hitachi HD64180);...
class Solution { public: array<vector<int>, 26> GetIndicesArray(const string& T) { array<vector<int>, 26> indicesArr{}; for (int i = 0; i < (int)T.length(); ++i) { indicesArr[T[i] - 'a'].push_back(i); } return indicesArr; } int FindNextIn...
;; Bootstrap loader. Loads an image into RAM. ;; ;; Requires image to be in the first 64K and the SD card to not be set ;; up for sector addressing. Also needs the destination to not overlap ;; the loader! ;; ;; Put this in the first block of the SD card, so that the ;; monitor can load it, and it can then load the res...
; A003231: a(n) = floor(n*(sqrt(5)+5)/2). ; 3,7,10,14,18,21,25,28,32,36,39,43,47,50,54,57,61,65,68,72,75,79,83,86,90,94,97,101,104,108,112,115,119,123,126,130,133,137,141,144,148,151,155,159,162,166,170,173,177,180,184,188,191,195,198,202,206,209 mov $3,$0 mov $4,$0 add $4,1 lpb $4,1 mov $0,$3 sub $4,1 sub $0,$4...
; int isgreaterequal(float x, float y) __z88dk_callee SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdcciy_isgreaterequal_callee EXTERN am48_isgreaterequal, cm48_sdcciyp_dcallee2 cm48_sdcciy_isgreaterequal_callee: call cm48_sdcciyp_dcallee2 ; AC'= y ; AC = x jp am48_isgreaterequal
; A098354: Multiplication table of the powers of 2 read by antidiagonals. ; 4,8,8,16,16,16,32,32,32,32,64,64,64,64,64,128,128,128,128,128,128,256,256,256,256,256,256,256,512,512,512,512,512,512,512,512,1024,1024,1024,1024,1024,1024,1024,1024,1024,2048,2048,2048,2048,2048,2048,2048,2048 mov $1,4 lpb $0,1 sub $0,1 a...
/* * Copyright 2018-2021 Mahdi Khanalizadeh * * 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 o...
/* file: input.cpp */ /******************************************************************************* * Copyright 2014-2019 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 ...
; A237133: Values of x in the solutions to x^2 - 3xy + y^2 + 19 = 0, where 0 < x < y. ; 4,5,7,11,17,28,44,73,115,191,301,500,788,1309,2063,3427,5401,8972,14140,23489,37019,61495,96917,160996,253732,421493,664279,1103483,1739105,2888956,4553036,7563385,11920003,19801199,31206973,51840212,81700916,135719437,213895775,355...
/* * Copyright (C) 2011 Ericsson AB. All rights reserved. * Copyright (C) 2012 Google Inc. 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...
; TITLE RWCHAR - Character read/write for MSHERC. ;*** ;RWCHAR ; ; Copyright <C> 1987, 1988, Microsoft Corporation ; ;Purpose: ; Single character read and write. ; ;****************************************************************************** include hgcdefs.inc code segment para public 'code' ...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld c, 41 ld b, 02 ld d, 03 lbegin_waitm2: ldff a, (c) and a, d cmp a, b jrnz lbegin_waitm2 ld a, 08 ldff(c), a xor a, a ldff(0f), a ld a, 02 ldff(ff), a ei ld c, 0f .text@1000 lstatint: nop .text@1064 xor a, a ...
; A161834: a(n) = A161828(n)/3. ; Submitted by Jamie Morken(s4) ; 0,0,1,1,3,3,5,7,11,13 mov $1,$0 div $0,2 sub $1,3 trn $1,3 add $0,$1 mul $0,2 trn $0,1
PUBLIC VDM_CAPS PUBLIC VDM_CAPS_MASK INCLUDE "ioctl.def" defc VDM_CAPS = CAP_GENCON_UNDERLINE defc VDM_CAPS_MASK = @00001000
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #incl...
; A108732: a(0)=22; if n odd, a(n) = a(n-1)/2, otherwise a(n) = 4*a(n-1). ; 22,11,44,22,88,44,176,88,352,176,704,352,1408,704,2816,1408,5632,2816,11264,5632,22528,11264,45056,22528,90112,45056,180224,90112,360448,180224,720896,360448,1441792,720896 mov $1,$0 gcd $1,2 lpb $0,1 sub $0,2 mul $1,2 lpe mul $1,11
; A123903: Total number of "Emperors" in all tournaments on n labeled nodes. ; 0,1,2,6,32,320,6144,229376,16777216,2415919104,687194767360,387028092977152,432345564227567616,959230691832896684032,4231240368651202111471616,37138201178561408246973726720,649037107316853453566312041152512 mov $1,2 mov $2,$0 sub $2,1 bin $...
Name: zel_enmy3.asm Type: file Size: 334969 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 03E16D840FA79B53D57770236DA6E734C06577EE Description: null
; =============================================================== ; Dec 2013 ; =============================================================== ; ; char *strchrnul(const char *s, int c) ; ; Return ptr to first occurrence of c in string s or ptr to ; terminating 0 in s if c is not found. ; ; ===========================...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 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 <script/uniteconsensus.h> #include <primitives/transaction.h> #include ...
[global gdt_flush] [extern __gdt_ptr] gdt_flush: lgdt [__gdt_ptr] mov ax, 0x10 mov ds, ax mov es, ax mov ss, ax ;mov fs, ax ;mov gs, ax mov ax, 0x30 ;or ax, 3 mov fs, ax ;gs mov ax, 0x38 ;or ax, 3 mov gs, ax jmp 0x08:__gdt_flush_exit __gdt_flush_exit: re...
/* * Copyright 2021 MusicScience37 (Kenta Kabashima) * * 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 applica...
/*============================================================================= PHAS0100ASSIGNMENT1: PHAS0100 Assignment 1 Game of Life Simulation. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x14f6c, %r9 nop nop cmp %r13, %r13 mov $0x6162636465666768, %rdi movq %rdi, %xmm6 movups %xmm6, (%r9) nop nop nop add $17875, %rbp lea addresses_UC_ht+0x7fc6, %rsi lea addresses_normal_ht+0x1a876...
; A210622: Decimal expansion of 377/120. ; 3,1,4,1,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6 mov $7,$0 mov $9,2 lpb $9,1 mov $0,$7 sub $9,1 add $0,$9 sub $0,1 mo...
GLOBAL _cli GLOBAL _sti GLOBAL picMasterMask GLOBAL picSlaveMask GLOBAL haltcpu GLOBAL _hlt GLOBAL _irq00Handler EXTERN scheduler GLOBAL _irq01Handler GLOBAL _irq02Handler GLOBAL _irq03Handler GLOBAL _irq04Handler GLOBAL _irq05Handler EXTERN irqDispatcher GLOBAL _syscallHandler EXTERN sysCallDispatcher GLOBAL _excep...
; A123958: Expansion of x^3 / ( 1+2*x^2+2*x^3 ). ; Submitted by Christian Krause ; 0,0,1,0,-2,-2,4,8,-4,-24,-8,56,64,-96,-240,64,672,352,-1472,-2048,2240,7040,-384,-18560,-13312,37888,63744,-49152,-203264,-29184,504832,464896,-951296,-1939456,972800,5781504,1933312,-13508608,-15429632,23150592,57876480,-15441920,-16205...
#include <iostream> #include <vector> using namespace std; vector<int> lookup_table[1000001]; int main() { int n, m, k, v; while (cin >> n >> m) { for (int i = 0; i < n; i++) { int elem; cin >> elem; lookup_table[elem].push_back(i+1); } ...
# ORG 8000 MVI H,34 // load by question MVI D,12 // load by question MVI A,99 // for 10s complement SUB D // sub for complement INR A // 10s complement obtained ADD H // adds 10s complement of D and H DAA // convert Hex to BCD MOV H,A // moved final answer to H ,as question HLT
db "CAT FERRET@" ; species name db "Its fur will stand" next "on end if it" next "smells a SEVIPER" page "nearby. It uses" next "its sharp claws to" next "tear up its foes.@"
; A044790: Numbers n such that string 7,7 occurs in the base 10 representation of n but not of n+1. ; 77,177,277,377,477,577,677,779,877,977,1077,1177,1277,1377,1477,1577,1677,1779,1877,1977,2077,2177,2277,2377,2477,2577,2677,2779,2877,2977,3077,3177,3277,3377,3477,3577,3677,3779,3877 mov $1,2 mov $4,$0 add $0,3 mod $...
; A157716: One-eighth of triangular numbers (integers only). ; 0,15,17,62,66,141,147,252,260,395,405,570,582,777,791,1016,1032,1287,1305,1590,1610,1925,1947,2292,2316,2691,2717,3122,3150,3585,3615,4080,4112,4607,4641,5166,5202,5757,5795,6380,6420,7035,7077,7722,7766,8441,8487,9192,9240,9975,10025,10790,10842,11637,1169...
; ; Constants ; .EQU INITV_NUM_BYTE = 8 .EQU PTEXT_NUM_BYTE = (8*16) .EQU KEY0_NUM_BYTE = 8 .EQU KEY1_NUM_BYTE = 8 .EQU KEYR_NUM_BYTE = (8*12) #define KEYSCHEDULE #define ENCRYPT #define iKEYSCHEDULE #define DECRYPT ; Original State: ;303, 302, 301, 300 : 203, 202, 201, 200 : 103, 102, 101, 100 : 003, ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x13751, %r8 and %rcx, %rcx vmovups (%r8), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %rax nop sub %r12, %r12 lea addresses_WC_ht+0x1e87b, %rsi lea addresses_UC_ht+0...
; A285354: Positions of 1 in A285351; complement of A285353. ; Submitted by Jamie Morken(s2) ; 2,4,5,6,8,10,11,12,14,15,17,18,20,22,23,24,26,28,29,30,32,33,35,36,38,40,41,42,44,45,47,49,50,51,53,54,56,58,59,60,62,64,65,66,68,69,71,72,74,76,77,78,80,82,83,84,86,87,89,90,92,94,95,96,98,99,101,103,104,105,107,108,110,112,...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2008, 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 distr...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r15 push %r8 push %r9 push %rcx // Store lea addresses_UC+0x11694, %r15 inc %r8 movl $0x51525354, (%r15) nop nop cmp $30477, %r15 // Faulty Load lea addresses_normal+0x8994, %r12 nop nop nop ...
; Copyright (c) 2020, The rav1e contributors. All rights reserved ; ; This source code is subject to the terms of the BSD 2 Clause License and ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ; was not distributed with this source code in the LICENSE file, you can ; obtain it at www.aomedia...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif // Flowgraph Construction and Maintenance void Compiler::fgInit() { impInit(); /* Initialization for fgWalkTreeP...
<% from pwnlib.util import lists, packing, fiddling %> <% from pwnlib import shellcraft %> <% import six %> <%page args="string, append_null = True, register1='x14', register2='x15', pretty=None"/> <%docstring> Pushes a string onto the stack. r12 is defined as the inter-procedural scratch register ($ip), so this shoul...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xbd57, %r10 nop nop nop cmp $53755, %r13 mov $0x6162636465666768, %r9 movq %r9, %xmm2 vmovups %ymm2, (%r10) nop inc %rdx lea addresses_A_ht+0xc1f7, %r13 clflush (%r13) nop and...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; ; Module Name: ; ; FspTempRamInit.nasm ; ; Abstract: ; ; This is the code that will call into FSP Te...
; A131924: Row sums of triangle A131923. ; 1,4,10,20,36,62,106,184,328,602,1134,2180,4252,8374,16594,33008,65808,131378,262486,524668,1048996,2097614,4194810,8389160,16777816,33555082,67109566,134218484,268436268,536871782,1073742754,2147484640,4294968352,8589935714,17179870374,34359739628,68719478068,137438954878,2748...
db 0 ; 312 DEX NO db 60, 40, 50, 95, 75, 85 ; hp atk def spd sat sdf db ELECTRIC, ELECTRIC ; type db 200 ; catch rate db 120 ; 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/hoenn/minun/fron...
; ; Small C+ Long Library Functions ; ; Divide 2 32 bit numbers ; ; Hopefully this routine does work! ; ; I think the use of ix is unavoidable in this case..unless you know ; otherwise! ; ; This is for unsigned quantities..separate routine for signed.. ; ; Replaced use of ix wi...
.cseg .org 0x03 rjmp timer2_comp_handler ; timer 2 compare rjmp timer2_ovf_handler ; timer 2 overflow ;.org 0x05 ;rjmp timer1_capt_handler ; timer 1 compared ;rjmp timer1_compa_handler ; timer 1 overflow ;rjmp timer1_compb_handler ; timer 1 overflow ;rjmp timer1_ovf_handler ; timer 1 overflow ;.org 0x09 ;rjmp...
; char *strncat(char * restrict s1, const char * restrict s2, size_t n) SECTION code_clib SECTION code_string PUBLIC strncat EXTERN asm_strncat strncat: pop af pop bc pop hl pop de push de push hl push bc push af jp asm_strncat ; SDCC bridge for Classic IF __CLASSIC PUBLIC _str...
Map_58780: dc.w word_58786-Map_58780 dc.w word_58786-Map_58780 dc.w word_5879A-Map_58780 word_58786: dc.w 3 dc.b $F0, $F, 0, 0, $FF, $D0 dc.b $F0, $F, 0, $10, $FF, $F0 dc.b $F0, $F, $18, 0, 0, $10 word_5879A: dc.w 2 dc.b $F4, $E, 0, $20, $FF, $E0 dc.b $F4, $E, 0, $2C, 0, ...
db 204,136,0,204,136,204,238,238,0,136,0,238,238,0,0,136 db 238,238,238,238,204,0,0,0,0,238,0,238,204,238,136,0 db 204,204,204,204,238,204,238,0,0,0,0,0,238,204,238,238 db 238,238,238,204,136,0,136,204,0,204,204,136,238,0,238,204 db 0,136,238,0,0,238,238,238,0,136,0,0,204,0,0,204 db 136,0,238,136,238,136,0,0,204...
; double copysign(double x, double y) SECTION code_clib SECTION code_fp_math48 PUBLIC am48_copysign am48_copysign: ; Make sign of AC' the same as sign of AC ; ; enter : AC' = double x ; AC = double y ; ; exit : AC' = abs(x) * sgn(y) ; ; uses : af, b' ld a,l or a jr z, z...
// comment test (a) @R0 @R1 @R2 @R3 @R4 @R5 // comment test @R6 @R7 @R8 @R9 @R10 @R11 @R12 @R13 @R14 @R15 @SP @LCL // あああああ @THIS @THAT @SCREEN @KBD @a // comment test@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_.$: @ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz12...
; ; Created by Mateusz Stompór on 25/06/2019. ; %include "source/iterator.asm" global LLI_DEREFERENCE section .text LLI_DEREFERENCE: mov rax, [rdi] mov rax, [rax] ret
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. ;; See the LICENSE file in the project root for more information. .586 .model flat option casemap:none .code include AsmMacros.inc ifdef FEATURE...
#include <btrc/builtin/film_filter/box.h> BTRC_BUILTIN_BEGIN CVec2f BoxFilter::sample(Sampler &sampler) const { var x = sampler.get1d() - 0.5f; var y = sampler.get1d() - 0.5f; return CVec2f(x, y); } RC<FilmFilter> BoxFilterCreator::create(RC<const factory::Node> node, factory::Context &context) { ret...
SFX_Swap_3_Ch5: duty_cycle 2 square_note 8, 14, 1, 1856 sound_ret SFX_Swap_3_Ch6: duty_cycle 2 square_note 2, 0, 8, 0 square_note 8, 11, 1, 1857 sound_ret
;------------------------------------------------------------------------------ ; ; Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; Abstract: ; ; Switch the stack from temporary memory to permanent memory. ; ;------------------------------------...
; A302058: Numbers that are not square pyramidal numbers. ; 2,3,4,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82 add $0,1 mov $1,$0 mov $3,1 lpb $1 ...
; A079861: a(n) is the number of occurrences of 7's in the palindromic compositions of 2*n-1, or also, the number of occurrences of 8's in the palindromic compositions of 2*n. ; 10,22,48,104,224,480,1024,2176,4608,9728,20480,43008,90112,188416,393216,819200,1703936,3538944,7340032,15204352,31457280,65011712,134217728,2...
; SYNTAX TEST "Packages/User/x86_64 Assembly.tmbundle/Syntaxes/Nasm Assembly.sublime-syntax" ideal jumps p386 p486 p586 end ;^^^^^ invalid.deprecated ; ^^^^^ invalid.deprecated ; ^^^^ invalid.deprecated ; ^^^^ invalid.deprecated ; ^^^^ invalid.deprecated ; ...
; A233904: a(2n) = a(n) - n, a(2n+1) = a(n) + n, with a(0)=0. ; 0,0,-1,1,-3,1,-2,4,-7,1,-4,6,-8,4,-3,11,-15,1,-8,10,-14,6,-5,17,-20,4,-9,17,-17,11,-4,26,-31,1,-16,18,-26,10,-9,29,-34,6,-15,27,-27,17,-6,40,-44,4,-21,29,-35,17,-10,44,-45,11,-18,40,-34,26,-5,57,-63,1,-32,34,-50,18,-17,53,-62,10,-27,47,-47,29,-10,68,-74,6,...
; A192967: Constant term of the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments. ; 1,0,2,4,9,17,31,54,92,154,255,419,685,1116,1814,2944,4773,7733,12523,20274,32816,53110,85947,139079,225049,364152,589226,953404,1542657,2496089,4038775,6534894,10573700,17108626,27682359,44791019,72473413,117264468,1...
; The constants for the Multiboot 2 header MAGIC equ 0xE85250D6 ARCHITECTURE equ 0x0 CHECKSUM equ -(MAGIC + ARCHITECTURE + HEADER_LENGTH) HEADER_LENGTH equ multiboot_end - multiboot_start ; Declare a multiboot header that marks the program as a kernel. These are magic ; values that are documented in the multiboot s...
/* * INY.asm * * Created: 5/13/2018 4:12:18 PM * Author: ROTP */ INY_implied: ;UNTESTED but highly likely to work. swapPCwithTEMPPC INC YR updateNZfromREGISTER YR ADIW ZH:ZL, 1 RET
; A036573: Size of maximal triangulation of an n-antiprism with regular polygonal base. ; 4,8,12,17,22,28,34,41,48,56,64,73,82,92,102,113,124,136,148,161,174,188,202,217,232,248,264,281,298,316,334,353,372,392,412,433,454,476,498,521,544,568,592,617,642,668,694,721,748,776,804,833,862,892,922,953,984,1016,1048,1081,111...
//alternating-characters.cpp //Alternating Characters //Weekly Challenges - Week 10 //Author: derekhh #include<iostream> #include<string> using namespace std; int main() { int t; cin >> t; while (t--) { string str; cin >> str; int len = (int)str.size(); int cnt = 0, ans = 0; for (int i = 0; i < len; i++...
; A129955: Third differences of A129952. ; 2,3,8,18,40,88,192,416,896,1920,4096,8704,18432,38912,81920,172032,360448,753664,1572864,3276800,6815744,14155776,29360128,60817408,125829120,260046848,536870912,1107296256,2281701376,4697620480,9663676416,19864223744,40802189312,83751862272,171798691840,352187318272,721554505...
org $8000 tilestest: INCBIN "tiles_nivel06.SR5.plet1"
frame 1, 14 frame 2, 14 frame 1, 17 frame 2, 10 frame 3, 04 frame 4, 06 frame 2, 08 frame 3, 04 frame 4, 08 endanim
#pragma once #include <Register/Utility.hpp> namespace Kvasir { // Base Timer I/O Select namespace Btiosel47Btsel4567{ ///<I/O Select Register using Addr = Register::Address<0x40025300,0xffff00ff,0x00000000,unsigned>; ///I/O select bits for Ch.6/Ch.7 constexpr Register::FieldLocation<Ad...
ChrisNameMenuHeader: db MENU_BACKUP_TILES ; flags menu_coords 0, 0, 10, TEXTBOX_Y - 1 dw .MaleNames db 1 ; ???? db 0 ; default option .MaleNames: db STATICMENU_CURSOR | STATICMENU_PLACE_TITLE | STATICMENU_DISABLE_B ; flags db 5 ; items db "NEW NAME@" MalePlayerNameArray: db "Yellow@" db "Ash@" db "Daniel@" ...
; 16 bit dos assembly .model small .stack .data message db "Happy New Year 1396!", "$" .code main proc mov ax,seg message mov ds,ax mov ah,09 lea dx,message int 21h mov ax,4c00h int 21h main endp end main
stack segment stack ends data segment data ends code segment assume cs:code, ds:data, ss:stack mov ah,02h mov cx,26 mov dl,41h lop: int 21h add dl,1h loop lop mov dl,0ah mov ah,02h int 21h mov dl,0dh mov ah,02h int 21h mov ah,02h mov cx,26 mov dl,61h lop1: ...
; A059018: Write 10*n in base 4; a(n) = sum of digits mod 4. ; 0,0,2,2,0,1,2,0,2,2,0,0,2,0,1,2,0,0,2,2,1,2,3,0,2,2,2,2,0,1,2,3,2,2,0,0,2,3,0,2,0,0,2,2,0,2,3,0,2,2,0,0,0,1,2,3,1,1,0,0,2,3,0,1,0,0,2,2,0,1,2,0,2,2,0,0,2,1,2,3,1,1,3,3,2,3,0,1,3,3,2,2,0,1,2,3,2,2,0,0 mul $0,10 lpb $0 add $1,$0 div $0,4 lpe lpb $1 mod...
; A002203: Companion Pell numbers: a(n) = 2*a(n-1) + a(n-2), a(0) = a(1) = 2. ; 2,2,6,14,34,82,198,478,1154,2786,6726,16238,39202,94642,228486,551614,1331714,3215042,7761798,18738638,45239074,109216786,263672646,636562078,1536796802,3710155682,8957108166,21624372014,52205852194,126036076402,304278004998,734592086398,17...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "futf8strchrfieldsearcher.h" #include "fold.h" using vespalib::Optimized; using search::byte; using search::QueryTerm; using search::v16qi; namespace vsm { IMPLEMENT_DUPLICATE(FUTF8StrChrF...
//////////////////////////////////////////////////////////////////////////////// // // VirtualJetProducer // ------------------ // // 04/21/2009 Philipp Schieferdecker <philipp.schieferdecker@cern.ch> //////////////////////////////////////////////////////////////////////////////// #include "FWCore/Parameter...
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; shadowssdt asm stub for 6.2.9200-sp0-windows-8 amd64 option casemap:none option prologue:none option epilogue:none .code ; ULONG64 __stdcall NtUserYieldTask( ); NtUserYieldTask PROC STDCALL mov r10 , rcx mov eax , 4096 ;syscall db 0Fh , 05h ret N...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF|FLAG_OF ;TEST_FILE_META_END ; Sar32RI1 mov ebx, 0x56 ;TEST_BEGIN_RECORDING sar ebx, 0x3 ;TEST_END_RECORDING
/***************************************************************************** * degrib1.c * * DESCRIPTION * This file contains the main driver routines to unpack GRIB 1 files. * * HISTORY * 4/2003 Arthur Taylor (MDL / RSIS): Created. * * NOTES * GRIB 1 files are assumed to be big endian. ************...
/* * DRace, a dynamic data race detector * * Copyright 2020 Siemens AG * * Authors: * Felix Moessbauer <felix.moessbauer@siemens.com> * * SPDX-License-Identifier: MIT */ #include <iostream> #include <mutex> #include <thread> #define NUM_INCREMENTS 10000 // #define USE_HEAP // race on the heap // #define...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX ...