text
stringlengths
1
1.05M
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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.tx...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004A10 move.w D1, -(A0) 004A12 dbra D0, $4a10 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enem...
;https://github.com/weltling/ml64_exercise/blob/master/int64_overflow/mul.asm .code mult_qWord proc xor eax,eax cvtsi2sd xmm0,rcx cvtsi2sd xmm1,rdx imul rcx,rdx mulsd xmm0,xmm1 mov [r8],rcx movsd real8 ptr [r9],xmm0 jno @NOF xor eax,1 ; integer overflow -> rax = 1 @NOF: ret mul...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 4.0.7 #12017 (Linux) ;-------------------------------------------------------- ; Processed by Z88DK ;-------------------------------------------------------- EXTERN __divschar EXTERN __divsc...
#pragma once #include "KNoise.hpp" #define PERLIN_ALLOCATION_SIZE 32 namespace KNoise { struct Perlin { Perlin(); ~Perlin(); enum CacheType { // Seed cache types, Deafult is recomended Single, // Saves last PTable Array, // PTables are stored in array, array needs to be searched to find c...
; unsigned char esx_f_open_p3(unsigned char *filename,unsigned char mode,struct esx_p3_hdr *h) SECTION code_esxdos PUBLIC _esx_f_open_p3_callee PUBLIC l0_esx_f_open_p3_callee EXTERN asm_esx_f_open_p3 _esx_f_open_p3_callee: pop bc pop hl dec sp pop af pop de push bc l0_esx_f_open_p3_callee: p...
; A249118: Position of 32n^6 in the ordered union of {h^6, h >=1} and {32*k^6, k >=1}. ; 2,5,8,11,13,16,19,22,25,27,30,33,36,38,41,44,47,50,52,55,58,61,63,66,69,72,75,77,80,83,86,89,91,94,97,100,102,105,108,111,114,116,119,122,125,127,130,133,136,139,141,144,147,150,152,155,158,161,164 mov $3,$0 add $0,1 mov $1,5 mul ...
db 0 ; species ID placeholder db 80, 105, 65, 70, 100, 70 ; hp atk def spd sat sdf db GRASS, POISON ; type db 45 ; catch rate db 191 ; 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/victreebe...
; A230462: Numbers congruent to {1, 11, 13, 17, 19, or 29} mod 30. ; 1,11,13,17,19,29,31,41,43,47,49,59,61,71,73,77,79,89,91,101,103,107,109,119,121,131,133,137,139,149,151,161,163,167,169,179,181,191,193,197,199,209,211,221,223,227,229,239,241,251,253,257,259,269,271,281,283,287,289,299,301,311,313,317,319,329,331,341...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .text@150 lbegin: ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a ld a, 02 ldff(ff), a ei nop halt .text@1000 lstatint: nop nop nop nop nop nop nop nop nop nop ldff a, (c) and a, b j...
; A146083: Expansion of 1/(1 - x*(1 - 11*x)). ; 1,1,-10,-21,89,320,-659,-4179,3070,49039,15269,-524160,-692119,5073641,12686950,-43123101,-182679551,291674560,2301149621,-907270539,-26219916370,-16239940441,272179139629,450818484480,-2543152051439,-7502155380719,20472517185110,102996226373019,-122201462663191,-12551599...
; A272459: The total number of different isosceles trapezoids, excluding squares, that can be drawn on an n X n square grid where the corners of each individual trapezoid lie on a lattice point. ; 0,1,7,18,40,71,119,180,264,365,495,646,832,1043,1295,1576,1904,2265,2679,3130,3640,4191,4807,5468,6200,6981,7839,8750,9744,...
; A142755: Primes congruent to 28 mod 59. ; Submitted by Jon Maiga ; 677,1031,1621,2447,2683,2801,3037,3391,3863,4099,4217,5279,5869,5987,6577,7639,7757,7993,8111,8819,9173,10589,11887,12241,12713,13421,14011,15073,15427,16253,16607,16843,17551,17669,18731,19793,20029,20147,21563,21799,22153,22271,22861,23333,23687,246...
; ; ZX 81 specific routines ; by Stefano Bodrato, 04/08/2009 ; ; Copy a variable from basic to float ; ; float zx_getfloat(char *variable); ; ; ; $Id: zx_getfloat.asm,v 1.4 2016-06-26 20:32:08 dom Exp $ ; SECTION code_clib PUBLIC zx_getfloat PUBLIC _zx_getfloat EXTERN zx_locatenum EXTERN fa IF FORlambda INCLUDE "l...
Route5_Script: jp EnableAutoTextBoxDrawing Route5_TextPointers: dw Route5Text1 Route5Text1: text_far _Route5Text1 text_end
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; for (int k = a; k <= b; k++) { int part1 = k / 100; int part2 = k % 100; if (part1 * part1 == part2) { cout << k << " "; } } cout << endl; return 0; }
; A135497: a(n) = n^5 - n^2. ; 0,0,28,234,1008,3100,7740,16758,32704,58968,99900,160930,248688,371124,537628,759150,1048320,1419568,1889244,2475738,3199600,4083660,5153148,6435814,7962048,9765000,11880700,14348178,17209584,20510308,24299100,28628190,33553408,39134304,45434268,52520650,60464880,69342588,79233724,9022267...
; ; Startup for CP/M ; ; Stefano Bodrato - Apr. 2000 ; Apr. 2001: Added MS-DOS protection ; ; Dominic Morris - Jan. 2001: Added argc/argv support ; - Jan. 2001: Added in malloc routines ; - Jan. 2001: File support added ; ; $Id: cpm_crt0.asm,v 1.43 2016/10/31 16:16:33 stef...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x7ded, %rsi nop nop nop nop nop add %r13, %r13 movw $0x6162, (%rsi) cmp %r13, %r13 lea addresses_WC_ht+0x15ae9, %rsi lea addresses_WC_ht+0x19109, %rdi cmp %r11, %r11 mov $44, %rcx rep m...
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation 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 so...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
; A024082: 7^n-n^7. ; 1,6,-79,-1844,-13983,-61318,-162287,0,3667649,35570638,272475249,1957839572,13805455393,96826261890,678117659345,4747390650568,33232662134145,232630103648534,1628412985690417,11398894291501404,79792265017612001,558545862282195466,3909821046088630161,27368747336676090896,191581231375979942977,13410...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE590_Free_Memory_Not_on_Heap__delete_struct_static_52a.cpp Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml Template File: sources-sink-52a.tmpl.cpp */ /* * @description * CWE: 590 Free Memory Not on Heap * BadSource: static Da...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2015, 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...
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "fork test OK\n"); } 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 push...
.byte 0x02,0x00,0x09,0x00 .word 0x08095838 .byte 0x09,0x00,0x0F,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x00,0x01,0x00,0x00 .byte 0x00,0x1E,0x00,0x03 .byte 0x09,0x00,0x00,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x20,0x52,0x0A,0x00 .byte 0x44,0x46,0x00,0x00 .byte 0x09,0x00,0x01,0x00 .byte 0x02,0x00,0x00,0x00 .byte 0x64,0x98,0...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020, STEREOLABS. // // All rights reserved. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIE...
;http://blog.csdn.net/wwyyxx26/article/details/23562689 .model flat .data end
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x14f21, %r14 nop nop add $54792, %r10 movb $0x61, (%r14) cmp $14653, %rsi lea addresses_WT_ht+0x134db, %rsi lea addresses_D_ht+0x7ef9, %rdi nop nop xor $25189, %r14 mov $25, %r...
; A314056: Coordination sequence Gal.4.135.3 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,5,11,15,21,27,31,37,42,47,53,57,63,69,73,79,84,89,95,99,105,111,115,121,126,131,137,141,147,153,157,163,168,173,179,183,189,195,199,205,21...
/* * myworkcell_core.cpp * * Created on: Sep 12, 2019 * Author: Jorge Nicho */ #include <rclcpp/rclcpp.hpp> #include <myworkcell_msgs/srv/localize_part.hpp> #include <myworkcell_msgs/srv/plan_cartesian_path.hpp> #include <myworkcell_msgs/srv/move_to_pose.hpp> #include <myworkcell_msgs/srv/execute_trajectory...
Name: game_over_usa.asm Type: file Size: 75996 Last-Modified: '1993-07-20T07:13:25Z' SHA-1: 488D330AFC2CFF9D0DD6B0C952301E881FAC32E3 Description: null
; ASM data file from a ZX-Paintbrush picture with 256 x 256 pixels (= 32 x 32 characters) ; and an attribute area of 1024 bytes ; block based output of pixel data - each block contains 8 x 8 pixels ; blocks at pixel positionn (y=0): defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 defb 0x47 defb 0x00, 0x...
; A046980: Numerators of Taylor series for exp(x)*cos(x). ; 1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1 lpb $0,1 sub $0,8 lpe mov $1,1 mov $...
;************************************************** ;** Part 5. SCREEN AND PRINTER HANDLING ROUTINES ** ;************************************************** XDEF L09F4 XDEF L0BDB XDEF L0C0A XDEF L0D4D XDEF L0D6B XDEF L0D6E XDEF L0DAF XDEF L0DD9 XDE...
//============================================================================== // Copyright 2003 - 2013 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
Route5Gate_h: db GATE ; tileset db ROUTE_5_GATE_HEIGHT, ROUTE_5_GATE_WIDTH ; dimensions (y, x) dw Route5Gate_Blocks ; blocks dw Route5Gate_TextPointers ; texts dw Route5Gate_Script ; scripts db 0 ; connections dw Route5Gate_Object ; objects
// license:BSD-3-Clause // copyright-holders:Quench /*************************************************************************** ToaPlan game hardware from 1987 -------------------------------- Driver by: Quench Supported games: Toaplan Board Number: TP-009 Taito Game Number: ...
; A295556: a(n) = 0 for n <= 1; thereafter a(n) = a(floor(n/2)) + a(ceiling(n/2)) + floor(n/2) if n not congruent to 0 mod 4, a(n) = a(n/2-1) + a(n/2+1) + n/2 if n == 0 (mod 4). ; 0,0,1,2,4,5,7,9,11,13,15,17,20,22,25,27,30,32,35,37,40,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99,102,105,108,112,115,119,1...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Spool/UI FILE: uiPrintControl.asm ROUTINES: Name Description ---- ----------- Section #1 - Object creation & destruction MSG PrintCo...
#include <bits/stdc++.h> using namespace std; class Solution{ public: ull getNthUglyNo(int n) { set <long long int> s; s.insert(1); n--; while(n--){ auto it = s.begin(); long long int x = *it; s.erase(it); s.insert(x*2); s.insert(x*3);...
.global s_prepare_buffers s_prepare_buffers: push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1068b, %rbp nop nop nop nop nop dec %rbx mov $0x6162636465666768, %r8 movq %r8, (%rbp) nop nop nop nop nop cmp $55981, %rdi lea addresses_normal_ht+0x15ef7, %rsi lea addresses_UC_h...
; _________________ ; // \\ ; || HOW TO COMPILE IT || ; \\_________________// ; ; ------ x86_64 ------ ; nasm -f elf64 nice2meet64.asm ; ld -s -o nice2meet64 nice2meet64.o ; ; _________________ ; // \\ ; || DESCRIPTION || ; \\_________________// ; ; The NASM "Hello, Wor...
/*========================================================================= Program: Visualization Toolkit Module: vtkInteractorStyleTerrain.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x14bbd, %r15 nop nop nop add $40435, %r10 mov (%r15), %bp nop nop nop cmp $462, %rdi lea addresses_WC_ht+0x161bd, %rsi lea addresses_D_ht+0x1a46d, %rdi inc %r11 mov $14, %rcx ...
TITLE 'SEE IF MEMBER IS IN THE PDS' SPACE 3 CLEQUM10 BASEREG EQU 12 CLASMM10 CSECT ******************************************************************* ** SAVE REGISTERS, ETC. ******************************************************************* STM R14,R12,12(R13) ...
LCNefertite label byte word C_BLACK Bitmap <71,100,BMC_PACKBITS,BMF_4BIT or mask BMT_MASK> db 0x00, 0x1f, 0xfa, 0xff, 0x00, 0xf0 db 0x01, 0xdd, 0xd0, 0xe1, 0x00, 0x01, 0xdd, 0xd0 db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc db 0x03, 0xd0, 0x07, 0x77, 0x78, 0xfb, 0x77, 0x00, 0x87, 0xfe, 0x77, 0x03, 0x7f, 0x77, ...
; void __FASTCALL__ *adt_QueueCreateS(struct adt_Queue *q) ; 11.2006 aralbrec SECTION code_clib PUBLIC adt_QueueCreateS PUBLIC _adt_QueueCreateS EXTERN l_setmem ; initialize an adt_Queue ; ; hl = struct adt_Queue* .adt_QueueCreateS ._adt_QueueCreateS xor a jp l_setmem-11
ivpu_immediateJump: mov rbx, 0x100000 test rbx, r15 #Check the architecture of the current instruction. cmovz ebx, dword ptr [r13 + rdi + 4] #If the result of the check is 0, then this is a 32 bit instruction. As such, the instruction is only 4 bytes, se we use ebx to move the address in instruction part 2...
#include<cstdio> #include<sstream> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm> #include<set> #include<queue> #include<stack> #include<list> #include<iostream> #include<fstream> #include<numeric> #include<string> #include<vector> #include<cstring> #include<map> #include<iterator> using namespa...
; A322008: 1/(1 - Integral_{x=0..1} x^(x^n) dx), rounded to the nearest integer. ; 2,5,10,17,26,37,50,65,82,101,123,146,171,198,227,258,291,326,364,403,444,487,532,579,628,679,733,788,845,904,965,1028,1093,1160,1230,1301,1374,1449,1526,1605,1686,1769,1855,1942,2031,2122,2215,2310,2407,2506,2608 mov $1,$0 sub $1,2 div ...
; ====================================== ; CryEd - cry editor for Pokémon Crystal ; ====================================== INCLUDE "macros.asm" INCLUDE "constants.asm" INCLUDE "wram.asm" ; ============= ; Reset vectors ; ============= section "Reset $00",rom0[$00] CallHL: jp hl section "Reset $08",rom0[...
/* -*- Mode: C++; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /* * Copyright (C) Flamewing 2011-2016 <flamewing.sonic@gmail.com> * * This program 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...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xee32, %rsi lea addresses_normal_ht+0x1eca3, %rdi nop nop cmp %r11, %r11 mov $7, %rcx rep movsw nop nop nop dec %rbx lea addresses_D_ht+0x16bab, %r9 clflush (%r9) nop add %r13, %r13 mov ...
/* * Driver.cpp * - Entry for Testing. * * Copyright (c) 2019~2021 numver8638(신진환, Jinhwan Shin) * Released under the MIT License. * See the LICENSE file in the project root to get more information. */ #define CATCH_CONFIG_MAIN #include <catch2/catch.hpp>
; A276950: Characteristic function for A273670: 1 if there is at least one maximal digit present in the factorial representation of n (A007623), otherwise 0. ; 0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,0,1,...
; A168995: Number of reduced words of length n in Coxeter group on 30 generators S_i with relations (S_i)^2 = (S_i S_j)^23 = I. ; 1,30,870,25230,731670,21218430,615334470,17844699630,517496289270,15007392388830,435214379276070,12621216999006030,366015292971174870,10614443496164071230,307818861388758065670,8926746980273...
!macro w_inc_08 .mem { lda .mem ; load low byte clc ; clear carry adc #$08 ; add 8 sta .mem ; write back bcc .cc ; carry clear, done inc .mem+1 ; otherwise increment high byte .cc } !macro w_mov .mem, .val16 { lda #<.val16 ; load low byte of value sta .mem ; store in .mem lda #>.val16 ; load high b...
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2014 Alec Jacobson <alecjacobson@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one ...
/* * Copyright (c) 2019 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 "ogpch.h" #include "OpenGLContext.h" #include <GLFW/glfw3.h> #include "glad/glad.h" namespace Orange { OpenGLContext::OpenGLContext(GLFWwindow* windowHandle) : m_WindowHandle(windowHandle) { OG_CORE_ASSERT(windowHandle, "Window handle is null!"); } void OpenGLContext::Init() { OG_PROFILE_FUNCTION(...
; A025967: Expansion of 1/((1-2x)(1-4x)(1-6x)(1-9x)). ; Submitted by Jon Maiga ; 1,21,289,3321,34705,343257,3282913,30740457,283960369,2599944633,23667405697,214622461833,1941330570193,17530479823449,158125883415841,1425244488222249,12839878208747377,115635005126816505 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 ...
; A324128: a(n) = 2*n*Fibonacci(n) + (-1)^n + 1. ; 2,2,6,12,26,50,98,182,338,612,1102,1958,3458,6058,10558,18300,31586,54298,93026,158878,270602,459732,779286,1318222,2225666,3751250,6312438,10606572,17797418,29825282,49922402,83468678,139411778,232622148,387796318,645922550,1074985346,1787678458,2970700846,4933186908,...
; A198680: Multiples of 3 whose sum of base-3 digits are also multiples of 3. ; 0,15,21,33,39,45,57,63,78,87,93,99,111,117,132,135,150,156,165,171,186,189,204,210,222,228,234,249,255,261,273,279,294,297,312,318,327,333,348,351,366,372,384,390,396,405,420,426,438,444,450,462,468,483,489,495,510,513,528,534,546,552,558,5...
INCLUDE "config_private.inc" SECTION code_driver PUBLIC asm_sd_cs_lower ;Lower the SC130 SD card CS using the GPIO address ; ;input (H)L = SD CS selector of 0 or 1 ;uses AF .asm_sd_cs_lower in0 a,(CNTR) ;check the CSIO is not enabled and CNTR_TE|CNTR_RE jr NZ,asm_sd_cs_lower ...
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01 ; Generated by VC++ for Common Language Runtime .file "E:\MegaTemp\.NETFramework,Version=v4.0.AssemblyAttributes.cpp"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation 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 s...
#include <StandAlone/tools/puda/AA_MMS.h> #include <StandAlone/tools/puda/util.h> #include <Core/DataArchive/DataArchive.h> #include <Core/Exceptions/InvalidGrid.h> #include <iomanip> #include <fstream> #include <vector> using namespace Uintah; using namespace std; //////////////////////////////////////////////////...
; Copyright 2001, 2002 Free Software Foundation, Inc. ; ; This file is part of the GNU MP Library. ; ; The GNU MP Library is free software; you can redistribute it and/or ; modify it under the terms of the GNU Lesser General Public License as ; published by the Free Software Foundation; either version 2.1 of th...
// Copyright (c) 2012 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 "ui/gfx/color_utils.h" #include <math.h> #if defined(OS_WIN) #include <windows.h> #endif #include <algorithm> #include "base/basictypes.h"...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994. All rights reserved. GEOWORKS CONFIDENTIAL PROJECT: Pasta MODULE: Fax FILE: group3UI.asm AUTHOR: Andy Chiu, Oct 10, 1993 ROUTINES: Name Description ---- ----------- Methods: F...
; SameBoy CGB bootstrap ROM ; Todo: use friendly names for HW registers instead of magic numbers SECTION "BootCode", ROM0[$0] Start: ; Init stack pointer ld sp, $fffe ; Clear memory VRAM call ClearMemoryPage8000 ld a, 2 ld c, $70 ld [c], a ; Clear RAM Bank 2 (Like the original boot ROM) ld h, $...
; uchar __FASTCALL__ *zx_cy2aaddr(uchar row) ; Stefano, 2014.12 SECTION code_clib PUBLIC zx_cy2aaddr PUBLIC _zx_cy2aaddr EXTERN HRG_LineStart .zx_cy2aaddr ._zx_cy2aaddr ld a,l ; rra ; rra ; rra and $1f ld b,a IF FORlambda ld hl,8319 ELSE ld hl,HRG_LineStart+2+32768 ENDIF jr z,zrow IF FORlambd...
;****************************************************************************** ;* AAC Spectral Band Replication decoding functions ;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com> ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under ...
; A114607: Start with 1 0 1 0 then add a one every time (e.g. 1 1 0 1 1 1 0 1 1 1 1 0 ...). ; 1,0,1,0,1,1,0,1,1,1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1 sub $0,1 lpb $0...
LMNefertite label byte word C_BLACK Bitmap <71,100,0,BMF_MONO> db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04 db 0x00, 0x02, 0x10, 0x22, 0x40, 0x88, 0x88, 0x00, 0x84 db 0x00, 0x81, 0x00, 0x80, 0x00, 0x20, 0x21, 0x04, 0x44 db 0x80, 0x10, 0x00, 0x01, 0x08, 0x00, 0x44, 0x20, 0x0c db ...
lsrq {z1} lsrq {z1}
default rel %define XMMWORD %define YMMWORD %define ZMMWORD section .text code align=64 EXTERN OPENSSL_ia32cap_P global rsaz_512_sqr ALIGN 32 rsaz_512_sqr: mov QWORD[8+rsp],rdi ;WIN64 prologue mov QWORD[16+rsp],rsi mov rax,rsp $L$SEH_begin_rsaz_512_sqr: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 mov r8,Q...
; ; Modified to run on the RC2014 and the YAZ180 by ; Phillip Stevens @feilipu https://feilipu.me ; February / March 2017 ; ; Converted to z88dk z80asm for RC2014 and YAZ180 by ; Phillip Stevens @feilipu https://feilipu.me ; August 2017 ; INCLUDE "config_yaz180_private.inc" EXTERN APU_ISR_NMI EXTERN APU_INIT, APU_C...
# Copyright (C) 2000, 2001, 2008, 2009 Free Software Foundation, Inc. # Written By Timothy Wall # # This file 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 3, or (at your option) any # later...
; A094304: Sum of all possible sums formed from all but one of the previous terms, starting 1. ; 1,0,1,4,18,96,600,4320,35280,322560,3265920,36288000,439084800,5748019200,80951270400,1220496076800,19615115520000,334764638208000,6046686277632000 mov $1,1 lpb $0,1 sub $0,1 gcd $2,$0 mov $1,$2 mov $3,$1 cal $1,...
// // Event.cpp // // Library: XML // Package: DOM // Module: DOMEvents // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/DOM/Event.h" #include "Poco/DOM/Document.h" namespace Poco { namespace XML { Event::E...
addi x10, x0, 1 addi x11, x0, 2 addi x12, x0, 3 addi x13, x0, 4 fcvt.s.w f0, x10 fcvt.s.w f1, x11 fcvt.s.w f2, x12 fcvt.s.w f3, x13 fdiv.s f5, f0, f2 fmul.s f6, f5, f2 addi x15, x0, 5 fcvt.s.w f30, x15 fdiv.s f31, f30, f1
#include "../src/CollisionDetector.h" #include "../src/DeltatimeMonitor.h" #include "../src/EntityContainer.h" #include "../src/EntityProperties.h" #include "../src/EntityShape.h" #include "EntityImpl.h" #include "catch.hpp" TEST_CASE("CollisionDetectorTests", "[collision]") { flat2d::DeltatimeMonitor* dtm; flat2d::...
; generated by esotope-bfc (DCPU branch) SET A, mem SET [A], 0 SET [A+1], 23 SET [A+2], 0 SET [A+3], 0 :L0 IFE [A+1], 0 SET PC, L1 SET PUSH, 6 ADD PEEK, [A+1] ADD [A+2], POP ADD [A+3], [A+1] SET PUSH, 90 ADD PEEK, [A+2] SET [A+1], POP SET PUSH, 65535 ADD PEEK, [A+3] SET [A+2], POP ...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; Add64RI8 mov rax, 0x2 ;TEST_BEGIN_RECORDING add rax, 0x7 ;TEST_END_RECORDING
; A081503: Number of steps to reach a single digit when map in A081502 is iterated. ; 0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,2,2,2,1,1,1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,3,3,2,2,2,2,2,3,3,3,2,2,2,2,3,3,3,2,2,2,2,3,3,3,2,2,2,2,3,3,3,3,2,2,2,3,3,3,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3,3,3 lpb $0 mov $2,$0 seq $2,81502...
// Copyright 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. #include "net/quic/quic_sent_entropy_manager.h" #include <algorithm> #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtes...
BattleCommand_spite: ; spite ld a, [wAttackMissed] and a jp nz, .failed ld bc, PARTYMON_STRUCT_LENGTH ; ???? ld hl, wEnemyMonMoves ldh a, [hBattleTurn] and a jr z, .got_moves ld hl, wBattleMonMoves .got_moves ld a, BATTLE_VARS_LAST_COUNTER_MOVE_OPP call GetBattleVar and a jr z, .failed ld b, a push bc ...
DATA SEGMENT NUM1 DB ? NUM2 DB ? RESULT DB ? MSG1 DB 10,13,"ENTER INT 1 : $" MSG2 DB 10,13,"ENTER INT 2 : $" MSG3 DB 10,13,"MUL : $" CODE SEGMENT ASSUME DS:DATA CS:CODE START: MOV AX,DATA MOV DS,AX LEA DX,MSG1 MOV AH,9 ...
#include <stdio.h> #include <algorithm> #include <cmath> using namespace std; int main(){ int n; bool degenerate = true; scanf("%d", &n); int segments[n]; for(int i = 0; i < n; i++) scanf("%d", &segments[i]); sort(segments, segments + n); for(int i = 1; i < n - 1; i++){ if(segments...
; A172123: Number of ways to place 2 nonattacking bishops on an n X n board. ; 0,4,26,92,240,520,994,1736,2832,4380,6490,9284,12896,17472,23170,30160,38624,48756,60762,74860,91280,110264,132066,156952,185200,217100,252954,293076,337792,387440,442370,502944,569536,642532,722330,809340,903984,1006696,1117922,1238120,1367...
// Copyright 2019 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 "chrome/browser/chromeos/attestation/tpm_challenge_key_result.h" #include <ostream> #include "base/base64.h" #include "base/check_op.h" #includ...
##Writer: Minhas Kamal ##Date: 02-MAY-2014 ##Function: This program is a simple demonstration of stack. #####**data**##### .data prompt: .asciiz "\n# What operation do you want to perform?\nPress-\t1.for push \n\t2.for pop \n\t3.for print all \n\t4.for exit \nSelection: " prompt2: .asciiz "Enter the value: ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x387a, %rsi lea addresses_WC_ht+0x3f7a, %rdi nop nop nop sub $4718, %rbx mov $36, %rcx rep movsw nop nop nop xor $63497, %r11 lea addresses_A_ht+0x1b69e, %rsi nop nop nop nop ...
; A093359: Primes of the form 28n + 1. ; Submitted by Jon Maiga ; 29,113,197,281,337,421,449,617,673,701,757,953,1009,1093,1289,1373,1429,1597,1709,1877,1933,2017,2129,2213,2269,2297,2381,2437,2521,2549,2633,2689,2801,2857,2969,3109,3137,3221,3361,3389,3529,3557,3613,3697,4201,4229,4397,4481,4621,4649,4733,4789,4817,49...
; double pow(double x, double y) SECTION code_clib SECTION code_fp_math48 PUBLIC am48_pow EXTERN mm48_pwr ; compute (AC')^(AC) ; ; enter : AC' = double x ; AC = double y ; ; exit : success ; ; AC' = x^y ; carry reset ; ; fail if out of domain o...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; size_t strlen(const char *s) ; ; Return length of string s. ; ; =============================================================== SECTION code_string PUBLIC asm_strlen as...