text
stringlengths
1
1.05M
dnl AMD K6 mpn_divexact_by3 -- mpn division by 3, expecting no remainder. dnl dnl K6: 11.0 cycles/limb dnl Copyright (C) 2000 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the ter...
.data .text addi $t0, $zero, 30 addi $t1, $zero, 5 div $s0, $t0, 10 # Print li $v0, 1 add $a0, $zero, $s0 syscall
dnl Intel Pentium-III mpn_popcount, mpn_hamdist -- population count and dnl hamming distance. dnl Copyright 2000, 2002, 2004 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the terms of...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
.byte $01 ; Unknown purpose .byte OBJ_GREENPIRANHA_FIRE, $0A, $14 .byte OBJ_GREENPIRANHA_FIRE, $12, $14 .byte OBJ_GREENPIRANHA, $1E, $15 .byte OBJ_GREENPIRANHA_FIREC, $2C, $12 .byte OBJ_REDPIRANHA, $31, $15 .byte OBJ_GREENPIRANHA_FIRE, $33, $13 .byte OBJ_GREENPIRANHA_FIRE, $3A, $14 .byte $FF ; Terminator
// Copyright © 1996-2018, Valve Corporation, All rights reserved. // // Purpose: Engineer's Dispenser // // $NoKeywords: $ #include "cbase.h" #include "tf_obj_dispenser.h" #include "engine/IEngineSound.h" #include "tf_player.h" #include "tf_team.h" #include "vguiscreen.h" #include "world.h" #include "explode.h" #incl...
;worksheet 2 ;exercise 21 ; SNAKE ; 0 1 2 3 .... 9 ; tail[0] --> head[9] %TITLE "Automatic movement with delay" .8086 .MODEL small .STACK 256 ;-----------------------------; ; DATA SEGEMENT ; ;-----------------------------; DATA SEGMENT direction db 00h ; 0 - right , ...
; A142935: Primes congruent to 23 mod 64. ; Submitted by Jon Maiga ; 23,151,599,727,919,983,1303,1367,1559,1879,2647,2711,2903,3607,3671,3863,4567,4759,4951,5399,5527,5591,5783,6359,6551,6679,6871,7127,7639,7703,8087,8599,8663,9239,9431,9623,10007,10391,10711,10903,11159,11287,11351,11863,11927,12119,12503,12823,13399,...
; A081039: 4th binomial transform of (1,3,0,0,0,0,0,.....). ; 1,7,40,208,1024,4864,22528,102400,458752,2031616,8912896,38797312,167772160,721420288,3087007744,13153337344,55834574848,236223201280,996432412672,4191888080896,17592186044416,73667279060992,307863255777280,1284229581242368,5348024557502464,22236523160141824...
; =============================================================== ; Jun 2007 ; =============================================================== ; ; void *zx_cyx2aaddr(uchar row, uchar col) ; ; Attribute address of character square at row, col. ; ; =============================================================== SECTION...
; Default Window Theme ;) align 4 wm_color dd 0x808080 ;wm_color dd 0x004288 window_title dd 0xFFFFFF window_inactive_title dd 0xC0C0C0 window_border dd 0x303030 window_active_border dd 0x303030 window_active_outline dd 0x00A2E8 window_close_color dd 0xD80000 window_background dd 0xD0D0D0 window_opacity ...
; this sample gets two numbers from the user, ; then it calculates the sum of these numbers, ; and prints it out. name "calc" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; these maros are copied from emu8086.inc ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; this macro prints a string that is given as a...
; A165857: Totally multiplicative sequence with a(p) = 36. ; 1,36,36,1296,36,1296,36,46656,1296,1296,36,46656,36,1296,1296,1679616,36,46656,36,46656,1296,1296,36,1679616,1296,1296,46656,46656,36,46656,36,60466176,1296,1296,1296,1679616,36,1296,1296,1679616,36,46656,36,46656,46656,1296,36,60466176,1296,46656,1296,46656,...
_ln: 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 ...
#include "Hammer.h" #define HAMMER_CODE 'H' #define HAMMER_STATE '0' Hammer::Hammer(int posX, int posY, int width, int height, int speedX, int speedY) : Entity(HAMMER_CODE, posX, posY, width, height, speedX, speedY, HAMMER_STATE,'T') {} Hammer::~Hammer(){}
; A303589: Floor(n*alpha)-1, where alpha is the number with continued fraction expansion [1;1,2,3,4,5,...] (A247844). ; 0,2,4,5,7,9,10,12,14,15,17,19,21,22,24,26,27,29,31,32,34,36,38,39,41,43,44,46,48,49,51,53,55,56,58,60,61,63,65,66,68,70,72,73,75,77,78,80,82,83,85,87,88,90,92,94,95,97,99,100,102,104,105,107,109,111,1...
; int dup2(int fd, int fd2) SECTION code_clib SECTION code_fcntl PUBLIC _dup2 EXTERN asm_dup2 _dup2: pop af pop hl pop de push de push hl push af jp asm_dup2
#include <atomic> #include <utility> #include <common/instance_id.hpp> namespace { std::uint32_t get_id() { static std::atomic<std::uint32_t> uid{0}; return ++uid; } } // namespace namespace framework { InstanceId::InstanceId() : m_id(get_id()) {} bool operator==(const InstanceId& lhs, const InstanceId&...
global _print_space _print_space: push bp mov bp, sp call os_print_space pop bp ret
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */ #include "pubnub.hpp" #include <iostream> #include <exception> /* Please note that this sample is the same whether you use the Pubnub C "sync" or "callback" interface during the build. Also, code that assumes C++ 11 features is protected by the ...
// Copyright (c) 2017-2018, The Monero Project // // 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 the above copyright notice, this list o...
; A199405: y-values in the solution to 13*x^2 - 12 = y^2. ; Submitted by Christian Krause ; 1,14,25,155,274,1691,2989,18446,32605,201215,355666,2194919,3879721,23942894,42321265,261176915,461654194,2849003171,5035874869,31077857966,54932969365,339007434455,599226788146,3698003921039,6536561700241,40339035696974,7130295...
/********** Copyright (c) 2019, Xilinx, 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 the above copyright notice, this list of conditions and the fol...
;5-2.asm 计算Y=5X-18,用正常程序格式 data segment x db -6 ;x初始为-6 y dw ? ;y初始为空 cc db 0ah,0dh,'Y=$' data ends code segment assume cs:code,ds:data start: mov ax,data mov ds,ax mov al,5 ;5X imul x sub ax,18 ;-18 jns let0 ;结果...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: CommonUI/CSpec FILE: cspecSummons.asm ROUTINES: Name Description ---- ----------- GLB OLBuildSummons Convert a generic summons to the OL ...
.686 ; create 32 bit code, required for "cpuid" instruction .model flat, stdcall ; 32 bit memory model option casemap: none ; case sensitive option language: stdcall .code ;stdcall calling convention used for 32-bit ; EBP+28 pedx:NEAR PTR DWORD ; EBP+24 pecx:NEAR PTR DWORD ...
#include <bits/stdc++.h> using namespace std; /* * Complete the downToZero function below. */ int downToZero(int n) { /* * Write your code here. */ if(n==0) { return 0; } int ctr[1000007]; queue<int> q; q.push(n); ctr[n] = 1; while(!q.empty()) { ...
.386p _DATA segment use32 dword public 'DATA' ;IGNORE a db 1 b dw 2 c dd 3 d db 4 e db 5 f db 6 g dd 12345 h db -1 h2 db 1 _DATA ends ;IGNORE _TEXT segment use32 dword public 'CODE' ;IGNORE assume cs:_TEXT,ds:_DATA start: ;IGNORE mov ebx,0aabbccddh cmp bl,0ddh jne failure cmp bh,0cch jne failure mov eax,2...
; A258943: Exponential reversion of Fibonacci numbers A000045. ; Submitted by Simon Strandgaard ; 1,-1,1,2,-25,132,-209,-5104,77121,-550000,-1212751,104886144,-1708324409,11026947008,204999609375,-8086017144832,130002259664321,-256459066769664,-50556576336151391,1626772400000000000,-22785408268305809049,-25171773296547...
/********************************************************************** Audacity: A Digital Audio Editor ScrubbingToolBar.cpp Paul Licameli See ScrubbingToolBar.h for details *******************************************************************/ // Much of this is imitative of EditToolBar. Should there be a c...
; CRT0 for the ZX80 ; ; Stefano Bodrato Dec. 2012 ; ; If an error occurs (eg. out if screen) we just drop back to BASIC ; ; ZX80 works in FAST mode only, thus the screen is visible only ; during a PAUSE or waiting for a keypress. ; ; ; - - - - - - - ; ; $Id: zx80_crt0.asm,v 1.15 2016-07-1...
#include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include <boost/spirit/include/phoenix_stl.hpp> #include <iostream> #include <string> #include <vector> namespace client{ namespace...
; A102846: a(0)=1, a(1)=1, a(n) = a(n-1)*a(n-2) + 2. ; Submitted by Jon Maiga ; 1,1,3,5,17,87,1481,128849,190825371,24587658227981,4691949003375676905953,115364038518117215020660724770070895,541282185550473269502054702460138578085934426170057537937 mov $1,1 mov $2,1 mov $3,1 lpb $0 sub $0,1 mov $3,$2 mov $2,$1 ...
############################################################################### # 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...
; ; Copyright (c) 2020 Phillip Stevens ; ; 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 at http://mozilla.org/MPL/2.0/. ; ; feilipu, August 2020 ; ;-----------------------------------------------...
// // main.cpp // // Created by Nissim Hadar on 2 Nov 2017. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <QtWidgets/QApplication> #include "ui/AutoTester.h" AutoTes...
// We index overrides. //- @f defines/binding CF class C { virtual void f() { } }; //- @f defines/binding DF //- DF overrides CF class D : public C { void f() override { } };
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE NIRVANA ENGINE - by Einar Saukas ; ; See "nirvana-.h" for further details ; ---------------------------------------------------------------- ; void NIRVANAM_tiles(unsigned char *addr) ; fastcall SECTION code_clib SECT...
\ ROM Filing System for Electron Wifi Board \ (C) 2021 John Wike \ \ low level read and write routines for the EEPROM \ Workspace include "electron.asm" \ Bank 0: &0000 - &3FFF mfa = 1 bank = 0 the first two banks are the "hidden" banks used by the filing system \ Bank 1: &4000 - &7FFF mfa = 1 ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1167a, %rsi lea addresses_normal_ht+0x522e, %rdi nop nop nop nop nop sub $36281, %r8 mov $19, %rcx rep movsw nop nop nop nop nop add %r14, %r14 lea addresses_WT_ht+0x18632, %rcx nop add...
; A017371: a(n) = (10*n + 8)^7. ; 2097152,612220032,13492928512,114415582592,587068342272,2207984167552,6722988818432,17565568854912,40867559636992,86812553324672,171382426877952,318547390056832,562949953421312,953133216331392,1555363874947072,2458100350228352,3777156435935232,5661610866627712,8300513205665792,11930436...
pushl %eax;ret x: pushl %eax; ret y: pushl %eax; z: ret
// https://www.codechef.com/START11B/problems/FILLGRID #include <bits/stdc++.h> using namespace std; #define ll long long #define mod 1000000007 ll gcd(ll a, ll b) { if (b == 0) return a; return gcd(b, a % b); } ll to_number(string s) { ll ans = 0; int n = s.size(), i; for (i = 0; i < n; ...
// Copyright 2021 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 "components/subresource_filter/content/browser/ad_tagging_browser_test_utils.h" #include <string> #include "base/bind.h" #include "base/strings...
//------------------------------------------------------------------------- /* Copyright (C) 2010-2019 EDuke32 developers and contributors Copyright (C) 2019 Nuke.YKT Copyright (C) 2020 Christoph Oelckers This file is part of Raze. NBlood is free software; you can redistribute it and/or modify it under the terms of t...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1bc07, %rcx nop nop nop nop nop sub $38679, %rbx movw $0x6162, (%rcx) nop nop nop nop dec %r8 lea addresses_A_ht+0x2633, %r11 nop nop nop dec %r13 mov $0x61626364656...
// Copyright 2018 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 "content/browser/picture_in_picture/picture_in_picture_window_controller_impl.h" #include <set> #include <utility> #include "components/viz/com...
/* Print.cpp - Base class that provides print() and println() Copyright (c) 2008 David A. Mellis. All right reserved. Modified by Brian T. Park 2019. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software...
#include "httpd.h" #include "log.h" #define JPEG_QUALITY 80 string Httpd::ApiKey=""; Httpd * Httpd::me=NULL; void Httpd::start(int port, ILightController * light, IStatus * status) throw (ThreadCreateException){ if (Httpd::me==NULL) { Httpd::me=new Httpd(port, light,status); Httpd::me->running=true; if(pthre...
#include "PythonEntityPrototypeGenerator.h" #include "Interface/PrototypeServiceInterface.h" #include "Interface/ScriptServiceInterface.h" #include "Environment/Python/PythonEventReceiver.h" #include "PythonEntityBehavior.h" #include "Kernel/FactoryPool.h" #include "Kernel/AssertionFactory.h" #include "Kernel/Asser...
global _main extern _printf section .data matriz times 12 dw 2 LONG_ELEM equ 2 CANT_FIL equ 4 CANT_COL equ 3 elem db '%d ',0 crlf db 10,13,0 section .bss fil resw 1 col resw 1 section .text _main: ;Imprimo la matriz con los valores iniciales call printMat call printCRLF ;Modifico un elemento mov ...
/* Problem: https://leetcode.com/problems/implement-queue-using-stacks/ Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty). */ #include <iostream> #include <vector> using namespace std; class MyQueue...
// // Created by zhangyongcheng on 18-8-7. // #include "watch_event_buffer.h" namespace sharkstore { namespace dataserver { namespace watch { void printBufferValue(CEventBufferValue &val) { FLOG_DEBUG("key:%s value:%s version:%" PRId64, EncodeToHexString(val.key(0)).c_str(...
.data stack : .word 0 # Puntatore all'ultimo elemento inserito nello stack stack_n : .word 0 # Nummero di elementi attualmente nello stack first_string: .asciiz "Ascissa: " second_string: .asciiz "Ordinata: " third_string: .asciiz "Angolo: " # Nodo di esempio: # struct{ # int x; # int y; # int angle; # ...
; A100504: a(n) = (4*n^3 + 6*n^2 + 8*n + 6)/3. ; 2,8,26,64,130,232,378,576,834,1160,1562,2048,2626,3304,4090,4992,6018,7176,8474,9920,11522,13288,15226,17344,19650,22152,24858,27776,30914,34280,37882,41728,45826,50184,54810,59712,64898,70376,76154,82240,88642,95368,102426,109824,117570,125672,134138,142976,152194,16180...
; ; jidctfst.asm - fast integer IDCT (SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2016, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsim...
info: scarlet.asm, Anonymous main: // select a random direction and distance to move rand [dir], 4 rand [count], 5 //edit add [count], 1 //edit loop: // check if I'm top of food and eat if so sense r2 jns noFood eat noFood: // see if we're...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "filestorhandlerimpl.h" #include "filestormetrics.h" #include <vespa/storageapi/message/bucketsplitting.h> #include <vespa/storageapi/message/persistence.h> #include <vespa/storageapi/message...
#include <AK/QuickSort.h> #include <AK/String.h> #include <AK/StringBuilder.h> #include <AK/Vector.h> #include <LibCore/CDirIterator.h> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <grp.h> #include <pwd.h> #include <stdio.h> #include <string.h> #include <sys/ioctl.h> #include <...
// 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 "chrome/browser/plugins/plugin_observer.h" #include "base/auto_reset.h" #include "base/bind.h" #include "base/stl_util.h" #include "base/utf...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1934d, %rdi add $30536, %rcx mov (%rdi), %r15w nop nop nop nop nop add $42299, %rbp lea addresses_WT_ht+0x7b9b, %rsi lea addresses_D_ht+0x8dbf, %rdi nop sub %r14, %r14 mov $53, %rcx rep movsw no...
; Provided under the MIT License: http://mit-license.org/ ; Copyright (c) 2020 Andrew Kallmeyer <ask@ask.systems> %define SECTOR_SIZE 0x200 ; Segment register value (so the actual start is at the address 0x10*this) ; This is the first sector after the editor's code %define USER_CODE_LOC (CODE_SEGMENT+(SECTOR_SIZE/0x10...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rsi lea addresses_WT_ht+0x11a53, %r13 nop nop cmp $35705, %rsi vmovups (%r13), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %r8 nop and $47662, %r13 pop %rsi pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r15...
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> extern bool fWalletUnlockStakingOnly; AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent),...
.686 .model flat, C ; https://docs.microsoft.com/en-us/cpp/porting/overview-of-potential-upgrade-issues-visual-cpp#libraries includelib legacy_stdio_definitions.lib extern printf: PROTO C fmt:PTR BYTE, :VARARG extern setlocale: PROTO C category:SDWORD, locale:PTR BYTE .const fmt db "ACP locale: %s", 0ah, 0 locale db...
; ******************************************************** ; Music Bank ; ; created with Beyond Gameboy Tracker ; ******************************************************** ; ************************ Pattern Streams ******************* SECTION "MkillerP0", ROMX PATTERN_killer0: DB $0A DB $02, $01, $1C, $10, $0...
/* Title: Arrays Description: This program demonstrates an array. Author: William Kwabla. Date:02/09/19 */ #include <iostream> using namespace std; int main() { const int NUM_EMPLOYEES = 6; int hours[NUM_EMPLOYEES]; int count; cout << "Enter the hours worked by " << NUM_EMPLOYEES <<...
;--- MSX-UNAPI standalone RAM helper installer ; By Konamiman, 6-2019 ; ; See USAGE_S for usage instructions. ; ; You can compile it with sjasm (https://github.com/Konamiman/Sjasm/releases): ; sjasm ramhelpr.asm ramhelpr.com (if INSTALLMSR = 0) ; sjasm ramhelpr.asm msr.com (if INSTALLMSR = 10) ; ...
;; defines to require multi define-substitution DEFINE _zzzzz _zzzz DEFINE _zzzz _zzz DEFINE _zzz _zz DEFINE _zz _z DEFINE _z hl MACRO xxx /* /* /* 3x nested block comment */ */ */ halt ENDM /* ld _zzzzz,0 /* 2x nested block comment ass...
RuinsOfAlphKabutoWordRoom_MapScripts: db 0 ; scene scripts db 0 ; callbacks RuinsOfAlphKabutoWordRoom_MapEvents: db 0, 0 ; filler db 3 ; warp events warp_event 9, 5, RUINS_OF_ALPH_KABUTO_ITEM_ROOM, 3 warp_event 10, 5, RUINS_OF_ALPH_KABUTO_ITEM_ROOM, 4 warp_event 17, 11, RUINS_OF_ALPH_INNER_CHAMBER, 4 db ...
#include "CppUTest/TestHarness.h" extern "C" { #include "trace.h" } TEST_GROUP(test_trace) { trace trace_0; void setup() { } void teardown() { } }; TEST(test_trace, test_trace_basic) { const int trigger_level = 120; trace_init(&trace_0, 1337, trigger_level); ...
// // Created by Edward Pfremmer on 1/30/16. // #include "BuzzwordFactory.h" Buzzword* BuzzwordFactory::make(const std::string &string) { return new Buzzword(string); }
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; *********************************************************************** ; File: JitHelpers_Fast.asm ; ; Notes: routinues which we believe to be on the hot path for managed ; c...
object_const_def ; object_event constants FloaromaHouseW_MapScripts: db 0 ; scene scripts db 0 ; callbacks FloaromaHouseW_MapEvents: db 0, 0 ; filler db 2 ; warp events warp_event 2, 7, FLOAROMA_TOWN, 3 warp_event 3, 7, FLOAROMA_TOWN, 3 db 0 ; coord events db 0 ; bg events db 0 ; object events
; ; ZX IF1 & Microdrive functions ; ; char* if1_getname(char *location); ; ; Picks a file name from the specified location ; ; $Id: if1_getname.asm,v 1.2 2015/01/19 01:33:10 pauloscustodio Exp $ ; PUBLIC if1_getname tempmdvname: defs 11 if1_getname: pop bc ; ret addr pop hl ; location push hl push bc ...
.EQU Ram_Memory = 255 .CSEG .ORG 0x40 main: MOV R30, Ram_Memory ;Moves the number of memory adddresses to register 30 MOV R8, 0x00 ;Moves 0 into R8 MOV R5, 0xFF ;Moves 0xFF into register 5 Loop: ST R8, (R30) ;Stores the current value of R30 into R8 SUB R30, 0x01 ;Subtracts 1...
page ,132 title strrchr - find last occurence of character in string ;*** ;strrchr.asm - find last occurrence of character in string ; ; Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved. ; ;Purpose: ; defines strrchr() - find the last occurrence of a given character ; in a string. ; ;Rev...
; A133823: Triangle whose rows are sequences of increasing and decreasing cubes:1; 1,8,1; 1,8,27,8,1; ... . ; Submitted by Jamie Morken(s3) ; 1,1,8,1,1,8,27,8,1,1,8,27,64,27,8,1,1,8,27,64,125,64,27,8,1,1,8,27,64,125,216,125,64,27,8,1,1,8,27,64,125,216,343,216,125,64,27,8,1,1,8,27,64,125,216,343,512,343,216,125,64,27,8,...
; A126335: a(n) = n*(4*n^2+5*n-3)/2. ; 3,23,72,162,305,513,798,1172,1647,2235,2948,3798,4797,5957,7290,8808,10523,12447,14592,16970,19593,22473,25622,29052,32775,36803,41148,45822,50837,56205,61938,68048,74547,81447,88760,96498,104673,113297,122382,131940,141983,152523,163572,175142,187245,199893,213098,226872,241227,2...
ARCH_ARM equ 0 ARCH_MIPS equ 0 ARCH_X86 equ 0 ARCH_X86_64 equ 1 ARCH_PPC32 equ 0 ARCH_PPC64 equ 0 HAVE_ARMV5TE equ 0 HAVE_ARMV6 equ 0 HAVE_ARMV7 equ 0 HAVE_MIPS32 equ 0 HAVE_MMX equ 1 HAVE_SSE equ 1 HAVE_SSE2 equ 1 HAVE_SSE3 equ 1 HAVE_SSSE3 equ 1 HAVE_SSE4_1 equ 1 HAVE_ALTIVEC equ 0 HAVE_VPX_PORTS equ 1 HAVE_STDINT_H ...
; ================================================================== ; MikeOS -- The Mike Operating System kernel ; Copyright (C) 2006 - 2019 MikeOS Developers -- see doc/LICENSE.TXT ; ; FAT12 FLOPPY DISK ROUTINES ; ================================================================== ; ----------------------------------...
#include <bits/stdc++.h> using namespace std; const int MAX = 26; // Returneaza un sir cu litere albitrare de lungime n string printRandomString(int n) { char alphabet[MAX] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p...
UndergroundPathRoute7_h: db GATE ; tileset db UNDERGROUND_PATH_ROUTE_7_HEIGHT, UNDERGROUND_PATH_ROUTE_7_WIDTH ; dimensions (y, x) dw UndergroundPathRoute7_Blocks ; blocks dw UndergroundPathRoute7_TextPointers ; texts dw UndergroundPathRoute7_Script ; scripts db 0 ; connections dw UndergroundPathRoute7_Object ; o...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 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...
; A243283: One more than the partial sums of the characteristic function of A070003. ; 1,1,1,2,2,2,2,3,4,4,4,4,4,4,4,5,5,6,6,6,6,6,6,6,7,7,8,8,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,11,12,12,12,12,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,15,15,15,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,1...
; A129591: For each permutation p of {1,2,...,n} define min(p) = min{ p(i) + i : i = 1..n }; a(n) is the sum of min(p) of all p. ; Submitted by Christian Krause ; 2,5,17,75,407,2619,19487,164571,1555007,16252779,186167087,2319025851,31210884767,451319283339,6978220721807,114883713395931,2006375649873407,370487624225058...
section .text global is_isogram is_isogram: ; Provide your implementation here ret
; A052472: Number of independent components for a Weyl tensor in n dimensions. ; 0,10,35,84,168,300,495,770,1144,1638,2275,3080,4080,5304,6783,8550,10640,13090,15939,19228,23000,27300,32175,37674,43848,50750,58435,66960,76384,86768,98175,110670,124320,139194,155363,172900,191880,212380,234479,258258,283800,311190,34051...
/* * Copyright 2018 The Android Open Source Project * * 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...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/workspaces-web/model/GetIdentityProviderResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #in...
db DEX_MR_RIME ; pokedex id db 80 ; base hp db 85 ; base attack db 75 ; base defense db 70 ; base speed db 110 ; base special db PSYCHIC ; species type 1 db ICE ; species type 2 db 46 ; catch rate db 136 ; base exp yield INCBIN "pic/ymon/mrrime.pic",0,1 ; 66, sprite dimensions dw MrRimePicFront dw MrRimePicBack ; attac...
#include "CDEHead.h" // User Include Section #include "Funcs.h" // Data Section static const CDE_data CDE_FUN_TestSplineLibrary[] = { _T("TestSplineLibrary"), // name NULL, 1, // # of parameters _T("TestSplineLibrary"), // function name _T(""), ...
.MODEL SMALL .STACK 100H .DATA ;variables s db "ENTER THREE INITIALS: $" .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX ; enter your code here ;Printing the prompt lea dx, s mov ah, 9 int 21h ;First intial input mov ah,1 int 21h mov bh , al ;...
set 6 add R1 cpy R3
; A001741: Squares written in base 6. ; 0,1,4,13,24,41,100,121,144,213,244,321,400,441,524,1013,1104,1201,1300,1401,1504,2013,2124,2241,2400,2521,3044,3213,3344,3521,4100,4241,4424,5013,5204,5401,10000,10201,10404,11013,11224,11441,12100,12321,12544,13213,13444,14121,14400,15041,15324,20013,20304,21001,21300,22001,2230...
; A004201: Accept one, reject one, accept two, reject two, ... ; 1,3,4,7,8,9,13,14,15,16,21,22,23,24,25,31,32,33,34,35,36,43,44,45,46,47,48,49,57,58,59,60,61,62,63,64,73,74,75,76,77,78,79,80,81,91,92,93,94,95,96,97,98,99,100,111,112,113,114,115,116,117,118,119,120,121,133,134,135,136,137,138,139,140,141,142,143,144,157...
// DlgOpacity.cpp : implementation file // #include "stdafx.h" #include "demo.h" #include "DlgOpacity.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // DlgOpacity dialog DlgOpacity::Dlg...
; A001341: E.g.f.: 6*exp(x)/(1-x)^4; ; Submitted by Christian Krause ; 6,30,174,1158,8742,74046,696750,7219974,81762438,1005151902,13336264686,189992451270,2893180308774,46904155833918,806663460996462,14669947577257926,281298999630211590,5672559830998316574,120014233288249367598,2658221288671765756422,61517040495645640...
/**Kattis - walkway * Simple-ish Dijkstra problem, use map rather than vector, and we calculate the edge weights using geometry. * * Time: O(E log V), Space: O(V + E) */ #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma") #pragma GCC optimize("unroll-loops") #i...
;; ;; Copyright (c) 2012-2018, Intel Corporation ;; ;; 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 notice, ;; this list of conditions and...