text
stringlengths
1
1.05M
lui $1,32431 ori $1,$1,36452 lui $2,56489 ori $2,$2,11395 lui $3,50532 ori $3,$3,34949 lui $4,57213 ori $4,$4,63337 lui $5,50547 ori $5,$5,47223 lui $6,32253 ori $6,$6,2414 mthi $1 mtlo $2 sec0: nop nop nop beq $3,$2,yes0 nop no0:addiu $k1,$k1,1 yes0:addiu $k0,$k0,1 sec1: nop nop xor $3,$1,$6 beq $3,$2,yes1 ...
; A155705: Triangle read by rows where T(m,n) = 2*m*n + m + n + 2. ; Submitted by Christian Krause ; 6,9,14,12,19,26,15,24,33,42,18,29,40,51,62,21,34,47,60,73,86,24,39,54,69,84,99,114,27,44,61,78,95,112,129,146,30,49,68,87,106,125,144,163,182,33,54,75,96,117,138,159,180,201,222,36,59,82,105,128,151,174,197,220,243,266,...
/** * @file kernel_traits.hpp * @author Ryan Curtin * * This provides the KernelTraits class, a template class to get information * about various kernels. */ #ifndef MLPACK_CORE_KERNELS_KERNEL_TRAITS_HPP #define MLPACK_CORE_KERNELS_KERNEL_TRAITS_HPP namespace mlpack { namespace kernel { /** * This is a templat...
; A173557: a(n) = Product_{primes p dividing n} (p-1). ; 1,1,2,1,4,2,6,1,2,4,10,2,12,6,8,1,16,2,18,4,12,10,22,2,4,12,2,6,28,8,30,1,20,16,24,2,36,18,24,4,40,12,42,10,8,22,46,2,6,4,32,12,52,2,40,6,36,28,58,8,60,30,12,1,48,20,66,16,44,24,70,2,72,36,8,18,60,24,78,4,2,40,82,12,64,42,56,10,88,8,72,22,60,46,72,2,96,6,20,4 se...
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file...
; A008332: Sum of divisors of p-1, p prime. ; 1,3,7,12,18,28,31,39,36,56,72,91,90,96,72,98,90,168,144,144,195,168,126,180,252,217,216,162,280,248,312,252,270,288,266,372,392,363,252,308,270,546,360,508,399,468,576,456,342,560,450,432,744,468,511,396,476,720,672,720,576,518,702,576,840,560,864,992,522,840,756,540,744,89...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h A DB 1,2,3,4,5,6,7,8,9,10 B DB 10 DUP(0) MOV AH,4CH INT 21H CODE ENDS END START ret
SFX_Cry0A_1_Ch4: dutycycle 240 unknownsfx0x20 8, 247, 224, 6 unknownsfx0x20 6, 230, 229, 6 unknownsfx0x20 3, 244, 224, 6 unknownsfx0x20 3, 246, 208, 6 unknownsfx0x20 3, 227, 192, 6 unknownsfx0x20 4, 242, 176, 6 unknownsfx0x20 15, 162, 200, 6 endchannel SFX_Cry0A_1_Ch5: dutycycle 5 unknownsfx0x20 3, 8, 0, 0...
; --------------------------------------------------------------------------- ; Copyright (c) 1998-2013, Brian Gladman, Worcester, UK. All rights reserved. ; ; The redistribution and use of this software (with or without changes) ; is allowed without the payment of fees or royalties provided that: ; ; source code di...
; void tshc_cls_wc(struct r_Rect8 *r, uchar attr) SECTION code_clib SECTION code_arch PUBLIC _tshc_cls_wc EXTERN asm_tshc_cls_wc _tshc_cls_wc: pop af pop ix pop hl push hl push hl push af jp asm_tshc_cls_wc
; A320283: Lexicographical ordering of pure imaginary integers in the base (-1+i) numeral system. ; Submitted by Christian Krause ; 0,1,-2,-1,-4,-3,-6,-5,8,9,6,7,4,5,2,3,16,17,14,15,12,13,10,11,24,25,22,23,20,21,18,19,-32,-31,-34,-33,-36,-35,-38,-37,-24,-23,-26,-25,-28,-27,-30,-29,-16,-15,-18,-17,-20,-19,-22,-21,-8,-7,...
// Fill out your copyright notice in the Description page of Project Settings. #include "MyMoveTool.h" #include "TransformTool.h" // Sets default values ATransformTool::ATransformTool() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActor...
; A108357: Expansion of (1+x^2+x^4)/(1-x^8). ; 1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0 mod $0,8 mul $0,3 mov $1,15 trn $1,$0 mod $1,2 mov $0,$1
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: w_xorcircle_callee.asm $ ; ; Usage: xorcircle(int x, int y, int radius, int skip); SECTION code_graphics PUBLIC xorcircle_callee PUB...
; char *fzx_string_partition_ww(struct fzx_font *ff, char *s, uint16_t allowed_width) SECTION code_font_fzx PUBLIC fzx_string_partition_ww EXTERN asm_fzx_string_partition_ww fzx_string_partition_ww: pop af pop hl pop de pop ix push hl push de push hl push af jp asm_fzx_string_pa...
; A139639: Numbers n such that 168n+31 is prime. ; Submitted by Christian Krause ; 0,1,2,6,9,11,14,15,16,17,20,21,22,25,27,29,32,34,36,37,45,46,47,49,50,51,54,56,60,66,67,71,76,77,82,84,86,89,91,94,95,100,102,106,111,114,117,119,121,125,130,131,134,141,142,144,145,154,157,164,165,166,167,170,171,172,176,179,180,191,202...
#include <gtest/gtest.h> #include "test_quantile.h" #include "../../../src/common/quantile.h" #include "../../../src/common/hist_util.h" namespace xgboost { namespace common { TEST(Quantile, LoadBalance) { size_t constexpr kRows = 1000, kCols = 100; auto m = RandomDataGenerator{kRows, kCols, 0}.GenerateDMatrix();...
;================================================= ; Name: Sungho Ahn ; Email: sahn025@ucr.edu ; GitHub username: ptr2578 ; ; Lab: lab 8 ; Lab section: B21 ; TA: Jason Goulding ;================================================= .ORIG x3000 ;-------------- ; Instructions ;-------------- ;-----------------------------...
.macro StabilizeRaster() { // // Register a new irq handler for the next line. // lda #<stabilizedirq sta $fffe lda #>stabilizedirq sta $ffff inc $d012 // // ACK the current IRQ // lda #$ff sta $d019 // Save the old stack pointer so we can just restore the stack...
/** * @file advanced/cloud_trace/resources.hpp * @brief Declares resource-allocation-related classes and functions. * * @author Matus Chochlik * * Copyright 2008-2019 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www...
[extern _irq_dispatcher] KRNL_DATA_SEL equ 0x10 %macro irq 1 global _irq_handler%1 _irq_handler%1: cli push %1 ; irq index jmp irq_routine %endmacro irq 0 irq 1 irq 2 irq 3 irq 4 irq 5 irq 6 irq 7 irq 8 irq 9 irq 10 irq 11 irq 12 irq 13 irq 14 irq 15 irq_routine: pushad push ds push es p...
; $Id: bs3-cmn-SelFlatCodeToRealMode.asm 69222 2017-10-24 15:10:29Z vboxsync $ ;; @file ; BS3Kit - Bs3SelFlatCodeToRealMode. ; ; ; Copyright (C) 2007-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 c...
_DudeAutoInput_A:: ld hl, DudeAutoInput_A jr _DudeAutoInput _DudeAutoInput_RightA: ld hl, DudeAutoInput_RightA jr _DudeAutoInput _DudeAutoInput_DownA: ld hl, DudeAutoInput_DownA jr _DudeAutoInput _DudeAutoInput: ld a, BANK(DudeAutoInputs) call StartAutoInput ret DudeAutoInputs: ; used only for BANK(DudeAut...
; ; CLS for the Amstrad NC ; Stefano - 2017 ; ; ; $Id: clg.asm $ ; SECTION code_clib PUBLIC clg PUBLIC _clg EXTERN swapgfxbk EXTERN swapgfxbk1 .clg ._clg IF FORzcn ld e,1 ; ^A ld c,2 jp 5 ELSE jp $B824 ENDIF
; void dostm_from_tm(struct dos_tm *,struct tm *) SECTION code_time PUBLIC dostm_from_tm_callee EXTERN asm_dostm_from_tm dostm_from_tm_callee: pop hl pop de ex (sp),hl jp asm_dostm_from_tm ; SDCC bridge for Classic IF __CLASSIC PUBLIC _dostm_from_tm_callee defc _dostm_from_tm_callee = dostm_from_t...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %rbp lea addresses_WT_ht+0xeae6, %rbp nop nop nop sub %r11, %r11 mov $0x6162636465666768, %r13 movq %r13, %xmm0 and $0xffffffffffffffc0, %rbp vmovntdq %ymm0, (%rbp) nop nop nop nop sub %r13, %r13 pop %rbp pop %r13 pop %r11 ret .global s_faulty_l...
.data si: .ascii "Es un palindromo\n" .space 4 no: .ascii "No es un palindromo\n" str: .space 1024 .text main: li $a1,1024 la $a0, str li $v0, 8 syscall la $t1,str la $t2, ($t1) # Encontramos el ultimo caracter apuntar_final: lb $t3, ($t2) beq $t3, 10, palindromo add $t2, $t2, 1 b apuntar_final palindromo...
; A286444: Number of non-equivalent ways to tile an n X n X n triangular area with two 2 X 2 X 2 triangular tiles and an appropriate number (= n^2-8) of 1 X 1 X 1 tiles. ; 0,3,10,32,70,143,252,424,660,995,1430,2008,2730,3647,4760,6128,7752,9699,11970,14640,17710,21263,25300,29912,35100,40963,47502,54824,62930,71935,818...
; A074607: a(n) = 3^n + 6^n. ; 2,9,45,243,1377,8019,47385,282123,1686177,10097379,60525225,362974203,2177313777,13062288339,78368947065,470199333483,2821152954177,16926788584899,101560344088905,609360902271963,3656161926847377,21936961100731059,131621735223326745,789730317196781643,4738381620751153377,28430288877218310...
_kill: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char **argv) { 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 ...
; A173184: Partial sums of A000166. ; 1,1,2,4,13,57,322,2176,17009,150505,1485466,16170036,192384877,2483177809,34554278858,515620794592,8212685046337,139062777326001,2494364438359954,47245095998005060 mov $2,$0 mov $3,$0 add $3,1 lpb $3 mov $0,$2 sub $3,1 sub $0,$3 mov $4,2 mov $6,3 lpb $0 sub $0,1 ...
; ASM MiniLibC ; strlen ; arthur.delattre@epitech.eu %ifndef __MINILIBC_STRLEN__ %define __MINILIBC_STRLEN__ __MINILIBC_STRLEN__ [BITS 64] SECTION .text global strlen:function ;; size_t strlen(const char *s); strlen: mov rax, rdi .check_char: cmp byte [rax], 0 jz .finished ; *s == 0, len was found inc rax jm...
; A199108: 4*3^n+1. ; 5,13,37,109,325,973,2917,8749,26245,78733,236197,708589,2125765,6377293,19131877,57395629,172186885,516560653,1549681957,4649045869,13947137605,41841412813,125524238437,376572715309,1129718145925,3389154437773,10167463313317,30502389939949,91507169819845,274521509459533,823564528378597,24706935851...
DATA SEGMENT NUM1 DB ? NUM2 DB ? MSG1 DB 10,13,"ENTER FIRST NUMBER TO COMPARE : $" MSG2 DB 10,13,"ENTER SECOND NUMBER TO COMPARE : $" MSG3 DB 10,13,"SMALLER NUMBER IS : $" ENDS CODE SEGMENT ASSUME DS:DATA CS:CODE START: MOV AX,DATA MOV DS,AX LEA DX,MSG1 MOV AH,9 INT 21H MOV AH,1 INT 21H MOV NUM1,AL ...
; A286582: a(n) = A001222(A048673(n)). ; 0,1,1,1,2,3,2,2,1,1,1,1,2,1,3,1,2,2,3,5,3,3,2,3,2,2,3,3,4,1,1,2,2,1,2,1,2,2,1,2,2,1,4,1,4,3,3,2,1,2,5,2,3,3,2,1,2,1,1,2,2,4,3,2,4,3,4,2,1,3,1,3,4,2,2,4,5,7,3,3,1,2,3,4,1,1,3,5,2,1,2,1,2,5,4,6,2,3,1,2 seq $0,3961 ; Completely multiplicative with a(prime(k)) = prime(k+1). seq $0,...
; A179135: a(n) = (3-sqrt(5))*((3+sqrt(5))/10)^(-n)/2+(3+sqrt(5))*((3-sqrt(5))/10)^(-n)/2. ; 3,35,450,5875,76875,1006250,13171875,172421875,2257031250,29544921875,386748046875,5062597656250,66270263671875,867489013671875,11355578613281250,148646453857421875,1945807342529296875 mul $0,2 add $0,2 seq $0,147748 ; Row sum...
_setPriority: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "types.h" #include "stat.h" #include "user.h" int main(int argc, char* argv[]) { 0: f3 0f 1e fb endbr32 4: 8d 4c 24 04 lea 0x4(%esp),%ecx 8: 83 e4 f0 and $0xfffffff0,%es...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#ifndef __XMLParserAdapter_hpp__ #define __XMLParserAdapter_hpp__ // ================================================================================================= // Copyright 2005 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file in accord...
/* ********************************************************** * Copyright (c) 2016 ARM Limited. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
// bindgen-flags: --opaque-type 'Template<int>' --with-derive-hash --with-derive-partialeq --with-derive-eq -- -std=c++14 template <typename T> class Template { T member; }; class ContainsInstantiation { Template<char> not_opaque; }; class ContainsOpaqueInstantiation { // We should not generate a layout...
// Display Speed as Star Count origin 0x09D9AC base 0x802E29AC jal DisplaySpeedasStarCount
; A047271: Numbers that are congruent to {0, 3, 5} mod 6. ; 0,3,5,6,9,11,12,15,17,18,21,23,24,27,29,30,33,35,36,39,41,42,45,47,48,51,53,54,57,59,60,63,65,66,69,71,72,75,77,78,81,83,84,87,89,90,93,95,96,99,101,102,105,107,108,111,113,114,117,119,120,123,125,126,129,131,132,135,137,138,141,143,144,147,149,150,153,155,156...
section .data msg db "XOR - find proper number or char to pass this level",0x0a lenmsg equ $-msg msg1 db "XOR - without GDB just press ENTER 10 times and you would see incredable,.... your first xor symbol f___",0x0a,0x00 lenmsg1 equ $-msg1 msg2 db "ADD - add Bitwise operator just add somthg to ...
; A017318: a(n) = (10*n + 4)^2. ; 16,196,576,1156,1936,2916,4096,5476,7056,8836,10816,12996,15376,17956,20736,23716,26896,30276,33856,37636,41616,45796,50176,54756,59536,64516,69696,75076,80656,86436,92416,98596,104976,111556,118336,125316,132496,139876,147456,155236,163216,171396,179776,188356,197136,206116,215296,224...
sty {m1}+1 stx {m1}
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 48 sub $0x48,%esp int i, n; int l, w, c, inword; l = w = c = 0; 6: c7...
// Copyright (c) 2017-2019 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "chainparams.h" #include "coincontrol.h" #include "denomination_functions.h" #include "main.h" #include ...
SECTION "Effect Commands", ROMX CompareMove: ; checks if the move ID in a matches the move in bc push hl call GetMoveIndexFromID ld a, h cp b ld a, l pop hl ret nz cp c ret GetOppUnderwaterAddr: call BattleCommand_switchturn call GetUserUnderwaterAddr jp BattleCommand_switchturn GetUserUnderwaterAddr: ...
[XCX_FRIENDPOINTSX] moduleMatches = 0xF882D5CF, 0x30B6E091, 0xAB97DE6B ; 1.0.1E, 1.0.2U, 1.0.1U .origin = codecave .int $mod ; ---------------------------------------------------------------------------- ; WHO : RegistDamage_SoulVoiceLink__Q2_12DamageSystem7FactorySFRCQ2_3cfs30CfHandleKey__tm__11_XCUiL_2_12T1Ui ; W...
# Important: do not put any other data before the frameBuffer # Also: the Bitmap Display tool must be connected to MARS and set to # display width in pixels: 512 # display height in pixels: 256 # base address for display: 0x10010000 (static data) .data frameBuffer: .space 0x80000 .text # Example of drawing a rec...
;--- "hello world" for 64-bit Linux, using SYSCALL. ;--- assemble: JWasm -elf64 -Fo=Lin64_1.o Lin64_1.asm ;--- link: gcc Lin64_1.o -o Lin64_1 stdout equ 1 SYS_WRITE equ 1 SYS_EXIT equ 60 .data string db 10,"Hello, world!",10 .code _start: mov edx, sizeof string mov rsi, offset string ...
// Given a non-negative number represented as an array of digits, // add 1 to the number ( increment the number represented by the digits ). // The digits are stored such that the most significant digit is at the head of the list. vector<int> Solution::plusOne(vector<int> &A) { int n = A.size(); if(A[n-1...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xc748, %rcx nop dec %r9 mov (%rcx), %r14 nop xor %rdx, %rdx lea addresses_normal_ht+0x6b48, %r10 dec %rbp mov $0x6162636465666768, %r11 movq %r11, %xmm1 movups %xmm1,...
/* * Copyright © <2010>, 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, merg...
; A180498: a(n) = n^2 - 5*floor(n/sqrt(5))^2. ; 1,4,4,11,5,16,4,19,1,20,41,19,44,16,45,11,44,4,41,80,36,79,29,76,20,71,9,64,121,55,116,44,109,31,100,16,89,164,76,155,61,144,44,131,25,116,4,99,196,80,181,59,164,36,145,11,124,239,101,220,76,199,49,176,20,151,284,124,261,95,236,64,209,31,180,331,149,304,116,275,81,244,44,...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2013 Erwin Coumans http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com //============================================================================== // Copyright (c) 2015 - Thomas Retornaz ...
; ; ANSI Video handling for the Philips VG-5000 ; ; Text Attributes ; m - Set Graphic Rendition ; ; The most difficult thing to port: ; Be careful here... ; ; Stefano Bodrato - 2014 ; ; ; $Id: f_ansi_attr.asm,v 1.4 2016/06/12 16:06:43 dom Exp $ ; SECTION code_clib PUBLIC ansi_attr PUBLIC vg5k_attr ;PUBL...
[bits 32] dd $TestProgram_END - $TestProgram_START db "OrcaHLLex", 0 db "Orca HLL Test", 0 $TestProgram_START : dd TestProgram._init ; pointer to the _init function TestProgram.$PRE_RUN : ; Pre-alloc mov ebx, 200 mov word [System.function], Meta.Guppy.Malloc int 0x30 mov [TestProgram.$memLoc], ecx ; Permissio...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; int strcmp(const char *s1, const char *s2) ; ; Compare string s1 to string s2. Return when the first ; differing char is found with *s1 - *s2. ; ; =======================...
/* +----------------------------------------------------------------------+ | Swoole | +----------------------------------------------------------------------+ | This source file is subject to version 2.0 of the Apache license, | | that is bundled wi...
;****************************************************************************** ;* SIMD optimized MPEG-4 Parametric Stereo decoding functions ;* ;* Copyright (C) 2015 James Almer ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Less...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x721d, %rdx nop dec %rcx mov $0x6162636465666768, %r10 movq %r10, %xmm7 and $0xffffffffffffffc0, %rdx vmovaps %ymm7, (%rdx) nop cmp $57350, %r9 lea addresses_normal_ht+0xf94d, %r10 nop no...
LEFT_KANJI_START equ 55 LEFT_KANJI_HEIGHT equ 74 RIGHT_KANJI_START equ 32 RIGHT_KANJI_HEIGHT equ 117 RIGHT_KANJI_OFFSET equ 288 INITIAL_ANIM_DELAY equ 5 PLANE_0 equ 0b0001 PLANE_1 equ 0b0010 PLANE_SHADE equ 0b0100 PLANE_NEGATE equ 0b1000 PIT_FREQ equ 1000 SQ_INDEX equ 3c4h SQ_PLANEMASK...
; A117202: Binomial transform of n*F(n). ; 0,1,4,15,52,170,534,1631,4880,14373,41810,120406,343884,975325,2749852,7713435,21540304,59917826,166094370,458998523,1264919720,3477182961,9536877614,26102772910,71309161752,194468551225,529490287924,1439539861671,3908348148460,10597623588698,28701660781230,77646654240791,2098...
# Penny Ellard -- 9/7/97 # reverse.asm-- A program that reads a string from the user, # then prints out the string in reverse order # # Registers used: # r4 - hold characters as they're read in and printed out # r5 - addresses # r6 - addresses # r7 - index into the arra...
//===--- Cuda.cpp - Cuda Tool and ToolChain Implementations -----*- 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 // //===---------------------------...
/*============================================================================== Program: 3D Slicer Copyright (c) Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distributed under the License...
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "gui/worldEditor/worldEditorSelection.h" #include "gui/worldEditor/worldEditor.h" #include "scene/sceneObject.h" IMPLEMENT_CONOBJECT( WorldEditorSelection ); ConsoleDocClass( WorldEditorSe...
; A028495: Expansion of (1-x^2)/(1-x-2*x^2+x^3). ; 1,1,2,3,6,10,19,33,61,108,197,352,638,1145,2069,3721,6714,12087,21794,39254,70755,127469,229725,413908,745889,1343980,2421850,4363921,7863641,14169633,25532994,46008619,82904974,149389218,269190547,485064009,874055885,1574993356,2838041117,5113971944,9215060822,1660496...
/* * This file is part of the Visual Computing Library (VCL) release under the * MIT license. * * Copyright (c) 2016 Basil Fierz * * 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 with...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
; A055899: Column 3 of triangle A055898. ; 1,7,31,101,272,636,1340,2600,4725,8135,13391,21217,32536,48496,70512,100296,139905,191775,258775,344245,452056,586652,753116,957216,1205477,1505231,1864695,2293025,2800400,3398080,4098496,4915312 mov $16,$0 mov $18,$0 add $18,1 lpb $18 clr $0,16 mov $0,$16 sub $18,1 s...
; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 48, 16) ;Char Size: ( 6, 2) ;Sort Priorities: X char, Char line, Y char ;Data Outputted: Gfx ;Interleave: Column ;Mask: No tile2: DEFB 0,...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 0018B8 add.w ($1c,A6), D0 [123p+ 16, enemy+16, item+16] 0018BC move.w D0, ($16,A6) [123p+ 1C, enemy+1C, item+1C] 0048F4 move.l D0, (A4)+ 0048F6 move.l D0, (A4)+ 004D3E move.l D0, (A4)+ 004D40 dbra ...
; A192761: Coefficient of x in the reduction by x^2->x+1 of the polynomial p(n,x) defined below in Comments. ; 0,1,5,11,22,40,70,119,199,329,540,882,1436,2333,3785,6135,9938,16092,26050,42163,68235,110421,178680,289126,467832,756985,1224845,1981859,3206734,5188624,8395390,13584047,21979471,35563553,57543060,93106650 m...
# timetemplate.asm # Written 2015 by F Lundevall # Copyright abandonded - this file is in the public domain. .macro PUSH (%reg) addi $sp,$sp,-4 sw %reg,0($sp) .end_macro .macro POP (%reg) lw %reg,0($sp) addi $sp,$sp,4 .end_macro .data .align 2 mytime: .word 0x5957 timstr: .ascii "text more text lots of t...
.include "defaults_mod.asm" table_file_jp equ "exe6-utf8.tbl" table_file_en equ "bn6-utf8.tbl" game_code_len equ 3 game_code equ 0x4252354A // BR5J game_code_2 equ 0x42523545 // BR5E game_code_3 equ 0x42523550 // BR5P card_type equ 1 card_id equ 49 card_no equ "049" card_sub equ "Mod Card 049" card_sub_x ...
#include <bits/stdc++.h> #define MAX_LINE 51 using namespace std; bool dfs(int n, int m, vector<vector<char>> grid, int row, int col, char color, int previousRow, int previousCol, vector<pair<int, int>> directions, vector<vector<bool>> *visited) { if (row < 0 || row >= n || col < 0 || col >= m) { retu...
user/_ls: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <fmtname>: #include "user/user.h" #include "kernel/fs.h" char* fmtname(char *path) { 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: ec26 ...
;------------------------------------------------------------------------------ ; @file ; This file includes all other code files to assemble the reset vector code ; ; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;--------------------------------------...
; A173673: a(2k) = floor(F(k)/2), a(2k+1) = ceiling(F(k)/2), where F = A000045 is the Fibonacci sequence. ; 0,0,0,1,0,1,1,1,1,2,2,3,4,4,6,7,10,11,17,17,27,28,44,45,72,72,116,117,188,189,305,305,493,494,798,799,1292,1292,2090,2091,3382,3383,5473,5473,8855,8856,14328,14329,23184,23184,37512,37513,60696,60697,98209,98209,...
;***************************************************************************** ;* predict-a.asm: x86 intra prediction ;***************************************************************************** ;* Copyright (C) 2005-2016 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Holger Lubitz <h...
.model small .stack 100h .data tbn db 'Nhap gia tri vao thanh ghi BX: $' tbx db 13, 10, 'Gia tri dau tien: $' .code xor cx, cx mov ax, @data mov ds, ax lea dx, tbn mov ah, 9 int 21h Nhap: mov ah, 1 int 21h cmp al, 13 je Enter inc cx push a...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xd7e6, %rsi lea addresses_D_ht+0x994e, %rdi nop xor %r9, %r9 mov $90, %rcx rep movsq nop nop nop dec %r9 lea addresses_A_ht+0xc466, %rbx nop nop nop nop nop dec %r15 mov (%rbx), %edx no...
; A300613: Number of partitions of the n-dimensional hypercube resulting from a sequence of n n-sections, each of which divides any part perpendicular to any of the axes. ; 1,1,8,324,35840,7906250,2931489792,1645181968584,1302784779485184,1384565648740109550,1902231808400000000000,3281726715984295577534536,694646640690...
/* * Copyright (c) 2004-2005 The Regents of The University of Michigan * 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 above copyright * not...
; A179540: a(0)=0, a(1)=1, a(n)=2*n*(a(n-1)+a(n-2)), n>1. ; Submitted by Jamie Morken(s3) ; 0,1,4,30,272,3020,39504,595336,10157440,193549968,4074148160,93889358816,2351124167424,63570351682240,1845801323790592,57281150264184960,1892062450815217664,66277682436699689216,2454110815950536647680,95774762938714980802048,392...
#include<iostream> #include<algorithm> using namespace std; int ** LCSUB(string x, string y) { int max_len = 0; int ending = 0; int **dp = new int *[x.size() + 1]; for(int idx = 0; idx < x.size() + 1; idx++) { dp[idx] = new int[y.size() + 1]; for(int kdx = 0; kdx < y.siz...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x5fa6, %rsi lea addresses_A_ht+0x1efee, %rdi and $1032, %r15 mov $74, %rcx rep movsl nop cmp $27320, %r12 lea addresses_D_ht+0x8ce6, %rdi nop nop and %r9, %r9 movb $0x61, (%rdi) nop...
; A192750: Define a pair of sequences c_n, d_n by c_0=0, d_0=1 and thereafter c_n = c_{n-1}+d_{n-1}, d_n = c_{n-1}+4*n+2; sequence here is d_n. ; 1,6,11,21,36,61,101,166,271,441,716,1161,1881,3046,4931,7981,12916,20901,33821,54726,88551,143281,231836,375121,606961,982086,1589051,2571141,4160196,6731341,10891541,1762288...
######################################################## # FileName : common-sse-scalar.asm # Author : DingJing # Mail : dingjing@live.cn # Created Time : 2022年01月06日 星期四 11时58分34秒 ######################################################## .data .balign 16 valueA: .float 1.2 pi: .double 3.14159265358979...
;------------------------------------- ;This file contains functions to use the UART for some basic IO ;--------------------- ;Prints the char in R1 label printc pushr R2 ;addrs pushr R4 ;waiting loop pointer setlab UART ;UART tx_cmd addr load WR cpy R2 setlab printcLoop cpy R4 label pr...
/* * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * 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...
$NOMOD51 ;to suppress the pre-defined addresses by keil $include (C8051F020.h) ; to declare the device peripherals with it's addresses ORG 0H ; to start writing the code from the base 0 ;diable the watch dog MOV WDTCN,#11011110B ;0DEH MOV WDTCN,#10101101B ;0ADH ; config of clock MOV OSCICN , #14H ; 2MH cloc...
; A143859: Ulam's spiral (WNW spoke). ; 1,18,67,148,261,406,583,792,1033,1306,1611,1948,2317,2718,3151,3616,4113,4642,5203,5796,6421,7078,7767,8488,9241,10026,10843,11692,12573,13486,14431,15408,16417,17458,18531,19636,20773,21942,23143,24376,25641,26938,28267,29628,31021,32446,33903,35392,36913,38466,40051,41668,43317...
#include "CppUnitTest.h" #include "dak/element.h" #include "helpers.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace dak; namespace tests { TEST_CLASS(element_tests) { public: TEST_METHOD(element_base) { element e; Assert::AreEqual(e, element()); ...
; ; Section 3.4.5 Control Structures. Question 3. ; Remarks: ; * Translating C if-elseif-else into x86. ; * In writing assembly it is useful to start with C code and then translate it ; into instructions/x86. ; * Using the cmp instruction and conditional jumps. ; * cmp x, y ; * x </<=/>/>=/==/!= y. ; mov bx, 41 ;...
; 编译链接方法 ; $ nasm -f elf kernel.asm -o kernel.o ; $ ld -s kernel.o -o kernel.bin #‘-s’选项意为“strip all” [section .text] ; 代码在此 global _start ; 导出 _start _start: ; 跳到这里来的时候,我们假设 gs 指向显存 mov ah, 0Fh ; 0000: 黑底 1111: 白字 mov al, 'K' mov [gs:((80 * 1 + 39) * 2)], ax ; 屏幕第 1 行, 第 39 列。 jmp $