text
stringlengths
1
1.05M
; A029926: Convert n from degrees Fahrenheit to Centigrade (or Celsius). ; -18,-17,-17,-16,-16,-15,-14,-14,-13,-13,-12,-12,-11,-11,-10,-9,-9,-8,-8,-7,-7,-6,-6,-5,-4,-4,-3,-3,-2,-2,-1,-1,0,1,1,2,2,3,3,4,4,5,6,6,7,7,8,8,9,9,10,11,11,12,12,13,13,14,14,15,16,16,17,17,18,18 mov $1,2 mov $2,$0 mov $0,3 mul $2,5 add $1,$2 ad...
; uint in_LookupKey(uchar c) ; 02.2008 aralbrec PUBLIC in_LookupKey EXTERN in_keytranstbl ; Given the ascii code of a character, returns the scan row and mask ; corresponding to the key that needs to be pressed to generate the ; character. Eg: Calling LookupKey with character 'A' will return ; '$fd' for key row and ...
; Additions to MAZE3D.ASM for MP4 ; External Routines (called from C) PUBLIC _TestGeometry ; Public variables (used by C Program and libmp4) PUBLIC View3d, Side3d, P3d, X3d, W3d, VidMode ; Public variables (used by libmp3) PUBLIC updatescreen ; =================== External Library Procedures ======================...
; --------------------------------------------------------------------------- ; Object 1B - water surface (LZ) ; --------------------------------------------------------------------------- WaterSurface: moveq #0,d0 move.b obRoutine(a0),d0 move.w Surf_Index(pc,d0.w),d1 jmp Surf_Index(pc,d1.w) ; ================...
#walkthrough/44.jpg #SEQUENCE COUNTER #SEQUENCES ARE ZERO-TERMINATED #READ A SEQUENCE FROM IN #WRITE THE SUM TO OUT.S #WRITE THE LENGTH TO OUT.L MOV RIGHT, RIGHT START: ADD UP JEZ EXIT MOV ACC, LEFT MOV 1, RIGHT SWP ADD LEFT SAV MOV 0, ACC JMP START EXIT: SWP MOV 0, RIGHT MOV ACC, DOWN MOV 0, ACC SAV MOV LEFT, DOW...
org 32768 meaning_of_life = 42 start: nop ld hl,hex_string .loop ld de,meaning_of_life ret dz "Captain Black" db "(c)2019 Captain Black",0 hex_string: hex "0123456789ABCDEF00"
; int fgetc_unlocked_fastcall(FILE *stream) SECTION code_clib SECTION code_stdio PUBLIC _fgetc_unlocked_fastcall EXTERN asm_fgetc_unlocked _fgetc_unlocked_fastcall: push hl ex (sp),ix call asm_fgetc_unlocked pop ix ret
gossip_hints: addiu sp, sp, -0x18 sw ra, 0x0014(sp) li v1, SAVE_CONTEXT ; Get Message ID lh t7, 0x001C(s0) andi t8, t7, 0x00FF li at, 0xFF bne t8, at, @@not_grotto addiu v0, t8, 0x0400 lbu t8, 0x1397(v1) ; Grotto ID andi t8, t8, ...
.code ; void AVX2_Packed_Convert_Short_Int_(YmmVal * values, YmmVal result[2]) AVX2_Packed_Convert_Short_Int_ proc ; Convert, sign extending, a int16_t into a int32_t. ; The maximum register size for source is 128 bits (xmm). ; As we're using 256 bits for source, we need two conversions. ; ; values = 16 uint16_t ; ym...
SECTION code_clib SECTION code_l PUBLIC l_small_atoul l_small_atoul: ; ascii buffer to unsigned long conversion ; whitespace is not skipped ; char consumption stops on overflow ; ; enter : de = char * ; ; exit : bc = & next char to interpret in buffer ; dehl = unsigned result (0 on ...
_rm: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 ...
// // Copyright (C) 2020 Christoph Sommer <sommer@cms-labs.org> // // Documentation for these modules is at http://veins.car2x.org/ // // SPDX-License-Identifier: GPL-2.0-or-later // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as publis...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : read.asm ; Purpose : READ/DATA/RESTORE Command ; Date : 31st August 2019 ; Author : Paul Robson (paul@robsons.org...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #include "test_precomp.hpp" namespace opencv_test { namespace { const string FEATURES2D_DIR = "features2d"; const string IMAG...
; ; OZ-7xx DK emulation layer for Z88DK ; by Stefano Bodrato - Oct. 2003 ; ; void ozvline(byte x,byte y,byte len,byte color) ; ; ------ ; $Id: ozvline.asm,v 1.3 2016-06-28 14:48:17 dom Exp $ ; SECTION code_clib PUBLIC ozvline PUBLIC _ozvline EXTERN swapgfxbk EXTERN __oz_gfxend EXTERN ...
EX2DS SEGMENT is2pow DB ? ; 1- is pow, 0-is not pow NUM DW 8192 EX2DS ENDS sseg segment stack dw 100h dup(?) sseg ends cseg segment assume ds:EX2DS,cs:cseg,ss:sseg start: mov ax,EX2DS mov ds,ax ;initialisation mov si,0 mov is2pow,0 mov cx,15 mov ax,NUM ;check bit number ...
; A061340: a(n) = n*omega(n)^n where omega(n) is the number of distinct prime divisors of n. ; Submitted by Jon Maiga ; 0,2,3,4,5,384,7,8,9,10240,11,49152,13,229376,491520,16,17,4718592,19,20971520,44040192,92274688,23,402653184,25,1744830464,27,7516192768,29,6176733962839470,31,32,283467841536,584115552256,12025908428...
; A156573: a(n) = 34*a(n-1)-a(n-2)-4232 for n > 2; a(1)=529, a(2)=13225. ; 529,13225,444889,15108769,513249025,17435353849,592288777609,20120383080625,683500735959409,23218904639535049,788759257008228025,26794595833640213569,910227499086759029089,30920940373116166771225 seq $0,2315 ; NSW numbers: a(n) = 6*a(n-1) - a(n...
; A194114: Sum{floor(j*sqrt(11) : 1<=j<=n}; n-th partial sum of Beatty sequence for sqrt(11). ; 3,9,18,31,47,66,89,115,144,177,213,252,295,341,390,443,499,558,621,687,756,828,904,983,1065,1151,1240,1332,1428,1527,1629,1735,1844,1956,2072,2191,2313,2439,2568,2700,2835,2974,3116,3261,3410,3562,3717 lpb $0 mov $2,$0 ...
; A042986: Primes congruent to {0, 1, 2, 3} mod 5. ; Submitted by Jon Maiga ; 2,3,5,7,11,13,17,23,31,37,41,43,47,53,61,67,71,73,83,97,101,103,107,113,127,131,137,151,157,163,167,173,181,191,193,197,211,223,227,233,241,251,257,263,271,277,281,283,293,307,311,313,317,331,337,347,353,367,373,383,397,401,421,431,433,443,45...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x3026, %rsi lea addresses_D_ht+0x1414, %rdi nop nop nop nop nop xor %r13, %r13 mov $31, %rcx rep movsl nop nop cmp $9830, %r8 lea addresses_normal_ht+0xda6, %r11 nop nop nop no...
SFX_Battle_0C_Ch1: unknownnoise0x20 15, 143, 17 unknownnoise0x20 4, 255, 18 unknownnoise0x20 10, 241, 85 endchannel
; Startup Code for Sega Master System ; ; Haroldo O. Pinheiro February 2006 ; ; $Id: sms_crt0.asm,v 1.20 2016-07-13 22:12:25 dom Exp $ ; DEFC ROM_Start = $0000 DEFC INT_Start = $0038 DEFC NMI_Start = $0066 DEFC CODE_Start = $0100 DEFC RAM_Start = $C000 DEFC RAM_Length = $2000 DEFC Stack_Top = $dff0 ...
db "DARKNESS@" ; species name db "It dwells in the" next "darkness of caves." next "It uses its sharp" page "claws to dig up" next "gems that it uses" next "to nourish itself.@"
//----------------------------------*-C++-*----------------------------------// /*! * \file Utils/utils/Hash_Functions.cc * \author Thomas M. Evans * \date Sat Sep 03 18:55:17 2011 * \brief Member definitions of Hash_Functions classes. * \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, L...
; Program 01 - Addition of two 20-Bytes numbers ; Written by Hamidreza Hosseinkhani (hosseinkhani@live.com) ; June, 2011 TITLE Addition of two 20-Bytes numbers StkSeg SEGMENT para stack 'stack' DB 64 DUP (?) StkSeg ENDS DtaSeg SEGMENT para private 'data' Num1L DT 11223344556677889900h Num1H DT 0A...
#include "UI/MainWindow/MainWindow.h" #include "ui_mainwindow.h" /*! */ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); // Fix to resize MainWindow smaller ui->lblImage->setMinimumSize(1, 1); // Register Events this->connect(ui-...
; A083318: a(0) = 1; for n>0, a(n) = 2^n + 1. ; 1,3,5,9,17,33,65,129,257,513,1025,2049,4097,8193,16385,32769,65537,131073,262145,524289,1048577,2097153,4194305,8388609,16777217,33554433,67108865,134217729,268435457,536870913,1073741825,2147483649,4294967297,8589934593,17179869185,34359738369,68719476737,137438953473,27...
// Copyright 2015 the V8 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. #include "src/wasm/module-decoder.h" #include "src/base/functional.h" #include "src/base/platform/platform.h" #include "src/base/template-utils.h" #inc...
; A040433: Continued fraction for sqrt(455). ; 21,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42 mov $1,7 lpb $0,1 mod $0,2 mul $1,2 lpe gcd $1,$0 mul $1,3
; A137224: Mix 4*n^2, 1+4*n^2, 1+(2n+1)^2, (2n+1)^2 (or A016742, A053755, A069894, A016754). ; 0,1,2,1,4,5,10,9,16,17,26,25,36,37,50,49,64,65,82,81,100,101,122,121,144,145,170,169,196,197,226,225,256,257,290,289,324,325,362,361,400,401,442,441,484,485,530,529,576,577,626,625,676,677,730,729,784,785,842,841,900,901,962,...
; A056489: Number of periodic palindromes using exactly three different symbols. ; 0,0,0,3,6,21,36,93,150,345,540,1173,1806,3801,5796,11973,18150,37065,55980,113493,171006,345081,519156,1044453,1569750,3151785,4733820,9492213,14250606,28550361,42850116,85798533,128746950,257690505,386634060,773661333,1160688606,2322163...
#include <SFML/Graphics/Drawable.hpp> #include <SFML/Graphics/Text.hpp> #include <SFML/System/Vector2.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include "Chronometer.hpp" #ifndef FPS_HPP #define FPS_HPP /**Una clase estupidamente simple, calcula el FrameRate del programa y lo imprime con sf::Text al fondo de la...
; A144844: a(n) = ((2 + sqrt(2))^n - (2 - sqrt(2))^n)^2/8. ; 0,1,16,196,2304,26896,313600,3655744,42614784,496754944,5790601216,67500196864,786839961600,9172078759936,106917585289216,1246322708463616,14528202160472064,169353135091941376,1974124812461670400,23012085209172803584,268248523260228009984,31269339382860470026...
// Copyright 2014 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. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8ServicePortConnectEvent.h" #include "bindin...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; 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...
.586 .model flat .code _conta_vocali_consonanti proc push ebp mov ebp,esp push esi push edi push ebx mov ebx, dword ptr[ebp+8] ;arr ; unsigned char ! mov al, byte ptr [ebx] cmp al, 0 je fine mov esi, 0d mov edi, 0d ; vow mov ecx, 0d ; cons mov edx, 0d ; symbols mov eax, 0d ; min counter ; ABOVE & BELOW UNSIGNED ;...
; void *p_list_pop_front(p_list_t *list) SECTION code_clib SECTION code_adt_p_list PUBLIC p_list_pop_front EXTERN asm_p_list_pop_front defc p_list_pop_front = asm_p_list_pop_front ; SDCC bridge for Classic IF __CLASSIC PUBLIC _p_list_pop_front defc _p_list_pop_front = p_list_pop_front ENDIF
; how to use cmpsb instruction to compare byte strings. name "cmpsb" org 100h ; set forward direction: cld ; load source into ds:si, ; load target into es:di: mov ax, cs mov ds, ax mov es, ax lea si, str1 lea di, str2 ...
<% from pwnlib.shellcraft import i386, pretty, common from pwnlib.util.packing import pack, unpack from pwnlib.util.lists import group from pwnlib import constants, log %> <%page args="egg, start_address = 0"/> <%docstring> egghunter(egg, start_address = 0) Searches memory for the byte sequence 'egg'. Return value is...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_OF ;TEST_FILE_META_END ; ROL8rCL mov bh, 0x41 mov cl, 0x4 ;TEST_BEGIN_RECORDING rol bh, cl ;TEST_END_RECORDING
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed un...
// // windows/object_handle_service.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) // Copyright (c) 2011 Boris Schaeling (boris@highscore.de) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0...
/** ****************************************************************************** * This file is part of the TouchGFX 4.10.0 distribution. * * <h2><center>&copy; Copyright (c) 2018 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under Ultimate Libert...
; A081133: a(n) = n^n*binomial(n+2, 2). ; 1,3,24,270,3840,65625,1306368,29647548,754974720,21308126895,660000000000,22254310307658,811365140791296,31801886192186565,1333440819066961920,59553569091796875000,2822351843277561397248,141458084782563586674267,7475817534306342139330560,415468127688665853716035590,242221056000...
; ; Copyright (c) 2016, Alliance for Open Media. 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.aome...
; ============================================================================= ; Bootable interpreter for a simple yet popular pain-inducing """programming ; language". Fits within a boot sector. ; ; Nice features: ; - Partial line editor (allows for backspace at least, no erasing past ; beginning of line, etc.) ; -...
# FILE: $File$ # AUTHOR: P. White # CONTRIBUTORS: M. Reek, W. Carithers # Alexander Kellermann Nieves # # DESCRIPTION: # In this experiment, you will write some code in a pair of # functions that are used to simplify a fraction. # # ARGUMENTS: # None # # INPUT: # The numerator and denominator of ...
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
#include <range/v3/core.hpp> #include <range/v3/view/tokenize.hpp> #include "../simple_test.hpp" #include "../test_utils.hpp" int main() { using namespace ranges; std::string txt{"abc\ndef\tghi"}; const std::regex rx{R"delim(([\w]+))delim"}; auto&& rng = txt | view::tokenize(rx,1); const auto& crn...
db 0 ; species ID placeholder db 90, 100, 90, 90, 125, 85 ; hp atk def spd sat sdf db FIRE, FLYING ; type db 3 ; catch rate db 217 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_UNKNOWN ; gender ratio db 100 ; unknown 1 db 80 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/moltres...
// Copyright 2020 Open Source Robotics Foundation, Inc. // // 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 appli...
/* * 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...
;============================================================================== ; Constants PlayerFrame = 1 PlayerHorizontalSpeed = 2 PlayerVerticalSpeed = 1 PlayerXMinHigh = 0 ; 0*256 + 24 = 24 minX PlayerXMinLow = 24 PlayerXMaxHigh = 1 ; 1*256 + 64 = 320...
// Copyright 2014 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 "android_webview/browser/aw_browser_context.h" #include "android_webview/browser/aw_contents.h" #include "android_webview/browser/aw_contents_io_...
#include <odyssey/protocol/asset.hpp> #include <boost/rational.hpp> #include <boost/multiprecision/cpp_int.hpp> /* The bounds on asset serialization are as follows: index : field 0 : decimals 1..6 : symbol 7 : \0 */ namespace odyssey { namespace protocol { typedef boost::multiprecision::int128_t int...
; ----- void __CALLEE__ xordrawb(int x, int y, int h, int v) IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION code_graphics PUBLIC xordrawb PUBLIC _xordrawb EXTERN asm_xordrawb .xordrawb ._xordrawb push ix ld ix,2 add ix,sp ld c,(ix+2) ld b,(ix+4) ld ...
; ; Jupiter ACE pseudo graphics routines ; Version for the 2x3 graphics symbols (UDG redefined) ; ; ; Written by Stefano Bodrato 2014 ; ; ; Get pixel at (x,y) coordinate. ; ; ; $Id: pointxy.asm,v 1.2 2016-11-21 11:18:38 stefano Exp $ ; INCLUDE "graphics/grafix.inc" SECTION code_clib PUBLIC...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: GeoWrite FILE: Main/mainManager.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 2/92 Initial version DESCRIPTION: ...
; ---------------------------------------------------------------------------------------- ; Writes "Hello, World" to the console using only system calls. Runs on 64-bit Linux only. ; To assemble and run: ; ; nasm -felf64 hello.asm && ld hello.o && ./a.out ; ---------------------------------------------------------...
; [FORMAT "WCOFF"] [BITS 32] GLOBAL io_hlt ; 程序中包含函数名 [SECTION .text] io_hlt: ; void io_hlt(void); HLT RET
#include "engine.h" #define MAXLIGHTMAPTASKS 4096 #define LIGHTMAPBUFSIZE (2*1024*1024) struct lightmapinfo; struct lightmaptask; struct lightmapworker { uchar *buf; int bufstart, bufused; lightmapinfo *firstlightmap, *lastlightmap, *curlightmaps; cube *c; cubeext *ext; uchar *colorbuf; b...
; BEGIN_LEGAL ; Intel Open Source License ; ; Copyright (c) 2002-2017 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 source code must retain the ab...
; A183314: Number of n X 2 binary arrays with an element zero only if there are an even number of ones to its left and an even number of ones above it. ; Submitted by Christian Krause ; 3,6,13,27,57,119,250,523,1097,2297,4815,10086,21137,44283,92793,194419,407378,853559,1788481,3747361,7851867,16451910,34471669,7222817...
.data msg1: .asciiz "Give a number: " list: .space 400 .text .globl main main: li $v0, 4 la $a0, msg1 syscall # print msg li $v0, 5 syscall # read an int add $a0, $v0, $zero # move to $a0 addi $s1,$a0,0 la $t0,list li $t6,1 sw $t6,0($t0) sw $t6,4($t0) j...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 81 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %62 OpExecutionMode %4 OriginUp...
; A111052: Numbers n such that 3*n^2 + 4 is prime. ; Submitted by Simon Strandgaard ; 1,3,5,7,11,19,21,25,31,33,37,39,45,49,53,73,75,77,81,89,91,93,107,115,119,129,131,135,137,145,157,185,187,193,203,205,207,213,215,221,227,229,231,249,259,261,263,271,283,291,297,299,301,317,325,327,331,343,345,357,359,361,387,395,397,...
; A294629: Partial sums of A294628. ; 4,16,28,56,68,120,132,192,228,296,308,440,452,536,612,736,748,920,932,1112,1204,1320,1332,1624,1676,1808,1916,2144,2156,2496,2508,2760,2884,3048,3156,3600,3612,3792,3932,4336,4348,4784,4796,5120,5388,5600,5612,6224,6292,6640,6812,7184,7196,7728,7868,8384,8572,8832,8844,9712,9724,10...
#include "Platform.inc" #include "FarCalls.inc" #include "Lcd.inc" #include "../../../../firmware/Platform/Lcd/Isr.inc" #include "TestFixture.inc" radix decimal LcdFlagsAreAllClearedTest code global testArrange testArrange: banksel TMR0 movf TMR0, W banksel lcdFlags movwf lcdFlags testAct: fcall initial...
; A187272: a(n) = (n/4)*2^(n/2)*((1+sqrt(2))^2 + (-1)^n*(1-sqrt(2))^2). ; 0,2,6,12,24,40,72,112,192,288,480,704,1152,1664,2688,3840,6144,8704,13824,19456,30720,43008,67584,94208,147456,204800,319488,442368,688128,950272,1474560,2031616,3145728,4325376,6684672,9175040,14155776,19398656,29884416,40894464,62914560,8598323...
<% from pwnlib.shellcraft import i386 from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context %> <%page args="value"/> <%docstring> Thin wrapper around :func:`pwnlib.shellcraft.i386.push`, which sets `context.os` to `'freebsd'` before calling. Example: >>> print pwnlib.s...
; A231688: a(n) = Sum_{i=0..n} digsum(i)^3, where digsum(i) = A007953(i). ; 0,1,9,36,100,225,441,784,1296,2025,2026,2034,2061,2125,2250,2466,2809,3321,4050,5050,5058,5085,5149,5274,5490,5833,6345,7074,8074,9405,9432,9496,9621,9837,10180,10692,11421,12421,13752,15480,15544,15669,15885,16228,16740,17469,18469,19800,21528...
org 0x7e00 jmp 0x0000:start titulo db 'O LABIRINTO CEGO', 0 inst db ' Pressione qualquer tecla para iniciar', 0 comando db ' Movimento: W, S, A, D ', 0 inst1 db ' Leve o tempo que precisar para ', 0 inst2 db ' memorizar cada mapa! ', 0 inst3 db ' Quando estiver pronto, ', 0 inst4 db ' pressione qualquer tecla ', 0 in...
; A027769: a(n) = (n+1)*binomial(n+1, 9). ; 9,100,605,2640,9295,28028,75075,183040,413270,875160,1755182,3359200,6172530,10943240,18795370,31380096,51074375,81238300,126544275,193393200,290435145,429214500,624962325,897561600,1272714300,1783342704,2471261100,3389158080,4602933940,6194442320,8264690148,10937555200,14364...
; A030123: Most likely total for a roll of n 6-sided dice, choosing the smallest if there is a choice. ; 0,1,7,10,14,17,21,24,28,31,35,38,42,45,49,52,56,59,63,66,70,73,77,80,84,87,91,94,98,101,105,108,112,115,119,122,126,129,133,136,140,143,147,150,154,157,161,164,168,171,175,178,182,185,189,192,196,199,203,206,210,213...
db 0 ; species ID placeholder db 80, 92, 65, 68, 65, 80 ; hp atk def spd sat sdf db WATER, WATER ; type db 60 ; catch rate db 170 ; 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/seaking/fr...
; A007088: The binary numbers (or binary words, or binary vectors): numbers written in base 2. ; 0,1,10,11,100,101,110,111,1000,1001,1010,1011,1100,1101,1110,1111,10000,10001,10010,10011,10100,10101,10110,10111,11000,11001,11010,11011,11100,11101,11110,11111,100000,100001,100010,100011,100100,100101,100110,100111,10100...
; compile with nasm -felf64 foo.asm; ld foo.o -o foo.out bits 64 section .start global _start _start: call func1 ; should see the address of `pop rax` ; because call implicitly pushes the ; address of pc onto the stack ; exit mov rax, 60 syscall func1: push rbp ; th...
; A138849: a(n) = AlexanderPolynomial[n] defined as Det[Transpose[S]-n S] where S is Kronecker Product of two 2 X 2 Seifert matrices {{-1, 1}, {0, -1}} [X] {{-1, 1}, {0, -1}} = {{1, -1, -1, 1}, {0, 1, 0, -1}, {0, 0, 1, -1}, {0, 0, 0, 1}}. ; 1,0,7,52,189,496,1075,2052,3577,5824,8991,13300,18997,26352,35659,47236,61425,7...
; A192908: Constant term in the reduction by (x^2 -> x + 1) of the polynomial p(n,x) defined below at Comments. ; 1,1,3,7,17,43,111,289,755,1975,5169,13531,35423,92737,242787,635623,1664081,4356619,11405775,29860705,78176339,204668311,535828593,1402817467,3672623807,9615053953,25172538051,65902560199,172535142545,45170...
.data message: .asciiz "Fim da Execução" space: .asciiz ", " .text main: addi $t0,$zero,0 loop: bgt $t0,9,exit addi $t0,$t0,1 li $v0, 5 # chama função para ler syscall la $t7, ($v0) # carrega o inteiro lido em $t7 add $t1,$t1,$t7 j loop exit: jal...
; A033762: Product t2(q^d); d | 3, where t2 = theta2(q) / (2 * q^(1/4)). ; Submitted by Jamie Morken(s3) ; 1,1,0,2,1,0,2,0,0,2,2,0,1,1,0,2,0,0,2,2,0,2,0,0,3,0,0,0,2,0,2,2,0,2,0,0,2,1,0,2,1,0,0,0,0,4,2,0,2,0,0,2,0,0,2,2,0,0,2,0,1,0,0,2,2,0,4,0,0,2,0,0,0,3,0,2,0,0,2,0,0,2,0,0,3,2,0,2,0,0,2,2,0,0,2,0,2,0,0,2 mul $0,2 add...
[bits 16] [org 0x7c00] start: xor ax, ax mov ds, ax mov es, ax mov bx, 0x8000 mov dx, [VGA_MEM] mov es, dx call clear_screen mov si,PRINT_STRING call print_str ret print_str: ._next_char: lodsb cmp al, 0 je ._done mov di, word[VGA_INDEX] mov [es:di], al add word[VGA_INDEX], 2 jmp ._next_c...
/**************************************************************************************** * Copyright (c) 2017 Korea Electronics Technology Institute. * * All rights reserved. This program and the accompanying materials * * are made available under the terms of ...
; A114182: F(4n) - 2n - 1 where F(n) = Fibonacci numbers. Also, the floor of the log base phi of sequence A090162 (phi = (1+Sqrt(5))/2). ; 0,16,137,978,6754,46355,317796,2178292,14930333,102334134,701408710,4807526951,32951280072,225851433688,1548008755889,10610209857690,72723460248106,498454011879227,3416454622906668,...
%ifndef proj_e_stdio_asm %define proj_e_stdio_asm bits 16 %include "std/macros.asm" nl db 13, 10, 0 ; Routine for outputting a string on the screen ; INPUT : SI (containing address of the string) ; OUTPUT : none proj_e_print: mov ah, 0x0e ; specify int 0x10 (teletype output) .printchar: lodsb ...
// ----------------------------------------------------------------------------- // native.c // ----------------------------------------------------------------------------- #include "low.h" #include "duktape.h" // ----------------------------------------------------------------------------- // native_method_simpl...
/** * @file * Declares the string type. */ #pragma once #include "../values/forward.hpp" #include <limits> #include <ostream> namespace puppet { namespace runtime { namespace types { // Forward declaration of recursion_guard struct recursion_guard; // Forward declaration of integer struct integer...
;THIS IS A PART OF FROST 4k INTRO S4L DB #F7,#02,#00,#8F,#77,#03,#00,#8F DB #77,#04,#00,#8F,#77,#05,#00,#8F DB #77,#06,#00,#8E,#77,#07,#00,#8D DB #77,#08,#00,#8C,#77,#09,#00,#8B DB #77,#0A,#00,#8A,#F7,#0A,#00,#88 DB #77,#0B,#00,#85,#F7,#0B,#00,#81 DB #77,#00,#00,...
;*! ;* \copy ;* Copyright (c) 2009-2013, Cisco Systems ;* 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 abo...
dnl mpn_nand_n dnl Copyright 2009 Jason Moxham dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the Lice...
; A159920: Sums of the antidiagonals of Sundaram's sieve (A159919). ; 4,14,32,60,100,154,224,312,420,550,704,884,1092,1330,1600,1904,2244,2622,3040,3500,4004,4554,5152,5800,6500,7254,8064,8932,9860,10850,11904,13024,14212,15470,16800,18204,19684,21242,22880,24600,26404 add $0,4 mov $1,$0 bin $1,3 sub $1,$0 mul $1,2 ad...
// 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 "android_webview/native/android_webview_jni_registrar.h" #include "base/android/jni_android.h" #include "base/test/test_suite.h" int main(in...
ReinitBattleAnimFrameset: ld hl, BATTLEANIMSTRUCT_FRAMESET_ID add hl, bc ld [hl], a ld hl, BATTLEANIMSTRUCT_DURATION add hl, bc ld [hl], 0 ld hl, BATTLEANIMSTRUCT_FRAME add hl, bc ld [hl], -1 ret GetBattleAnimFrame: .loop ld hl, BATTLEANIMSTRUCT_DURATION add hl, bc ld a, [hl] and a jr z, .next_frame de...
; A152016: a(n) = n^4 - n^3 - n^2 - n. ; 0,-2,2,42,172,470,1038,2002,3512,5742,8890,13178,18852,26182,35462,47010,61168,78302,98802,123082,151580,184758,223102,267122,317352,374350,438698,511002,591892,682022,782070,892738,1014752,1148862 mov $1,$0 bin $0,2 pow $1,2 mov $2,$1 add $1,1 mul $1,$0 sub $1,$2 mov $0,$1 mul...
; A005056: a(n) = 3^n + 2^n - 1. ; 1,4,12,34,96,274,792,2314,6816,20194,60072,179194,535536,1602514,4799352,14381674,43112256,129271234,387682632,1162785754,3487832976,10462450354,31385253912,94151567434,282446313696,847322163874,2541932937192,7625731702714,22877060890416,68630914235794,205892205836472,617675543767594,...
GLOBAL _cli GLOBAL _sti GLOBAL picMasterMask GLOBAL picSlaveMask GLOBAL haltcpu GLOBAL _hlt GLOBAL spoof_tick GLOBAL _irq00Handler GLOBAL _irq01Handler GLOBAL _irq02Handler GLOBAL _irq03Handler GLOBAL _irq04Handler GLOBAL _irq05Handler GLOBAL _divideByZeroHandler GLOBAL _overflowHandler GLOBAL _opcodeHandler GLOBAL _...
;LW x1, 0(x1) LW x4, 1(x1) ADD x4, x4, x2 SW x4, 1(x1) LW x4, 2(x1) ADD x4, x4, x2 SW x4, 2(x1) LW x4, 3(x1) ADD x4, x4, x2 SW x4, 3(x1) LW x4, 4(x1) ADD x4, x4, x2 SW x4, 4(x1) LW x4, 5(x1) ADD x4, x4, x2 SW x4, 5(x1)
org 0x100 cpu 8086 slop equ 0 jmp loader videoDisplayCombination: ; Don't bother with subfunction 1 mov al,0x1a ; mode.com checks this to see if VGA services are available mov bl,8 ;VGA (2 for CGA card) iret videoSubsystemConfiguration: ; Don't actually need to do anything here mov al,12 xor bx,bx ...
sll $0, $0, 0 or $t0, $0, $0 ori $t3, $0, 0 ori $t1, $0, 5 LOOP: addi $t0, $t0, 1 subu $t2, $t0, $t1 bne $t2, $0, LOOP ori $t1, $0, 5 hlt