text
stringlengths
1
1.05M
; ; ZX Spectrum ZXMMC specific routines ; code by Alessandro Poppi ; ported to z88dk by Stefano Bodrato - Feb 2010 ; ; $Id: mmc_wait_response.asm,v 1.2 2015/01/19 01:33:11 pauloscustodio Exp $ ; ; ;----------------------------------------------------------------------------------------- ; Waits for the MMC to respon...
Linux/x86 - mkdir HACK & chmod 777 and exit(0) - 29 Bytes #Greetz : Bomberman(Leader) #Author : B3mB4m #Auxiliary tools (50% time gain !) #https://github.com/b3mb4m/Shellcode/blob/master/Auxiliary/convertstack.py #https://github.com/b3mb4m/Shellcode/blob/master/Auxiliary/ASMtoShellcode.py Disassembly of section .t...
; A322249: a(n) = A322248(n)^2, the square of the central coefficient in (1 + 5*x + 16*x^2)^n. ; Submitted by Christian Krause ; 1,25,3249,366025,48455521,6646325625,947789867025,138422872355625,20598606105401025,3109408600719825625,474780862425986767729,73175222677868396505225,11366022325041154078402081,17770599157914...
; Show all power series (n^1, n^2, n^3, ...) up to base 15. Limited ; to results <= 255 ADDR_BASE = 0x00 .begin: clra data SP, 0xff ; stack to end (255) inc Ra ; set Ra to 1 sto Ra, ADDR_BASE ; set starting base (1) .loop: lod Ra, ADDR_BASE ; get the last base inc Ra ; incre...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xcabc, %rsi lea addresses_D_ht+0x3ebc, %rdi nop nop nop and %rbp, %rbp mov $51, %rcx rep movsb nop nop nop add $21899, %r12 lea addresses_normal_ht+0x1dcbc, %r11 nop dec ...
; A176078: Triangle, read by rows, T(n, k) = (2*n)!/((n-k)! * k!)^2 - (2*n)!/(n!)^2 + 1. ; Submitted by Christian Krause ; 1,1,1,1,19,1,1,161,161,1,1,1051,2451,1051,1,1,6049,24949,24949,6049,1,1,32341,206977,368677,206977,32341,1,1,164737,1510081,4200769,4200769,1510081,164737,1,1,810811,10077211,40347451,63050131,4034...
%include "macros.inc" global _add64 global _sub64 global _mul64 global _isEqual64 global _isGreater64 global _divide64 global _modulo64 global _getVal64 global _getOpposite64 global _getComplement64 global _getAbs64 global _shiftLeft64 global _shiftRight64 global _rol64 global _ror64 segment .text align=16 %macro ma...
; ; Long Mode ; ; load.asm ; [bits 16] ; Define load_sectors ; Sector start point in bx ; Number of sectors to read in cx ; Destination address in dx load_bios: ; Save the registers push ax push bx push cx push dx ; Save the number of registers to load for later push cx ; For t...
.text main: la $a0, prompt #prompting user to input number 1 jal PromptInt move $s0, $v0 # storing the result in $s0 for num1 la $a0, prompt2 # prompting user for number 2 jal PromptInt move $s1, $v0 # storing the result in $s1 for num2 la $a0, prompt3 # prompting user to input number 3 jal P...
; A020926: Expansion of 1/(1-4*x)^(15/2). ; Submitted by Christian Krause ; 1,30,510,6460,67830,624036,5200300,40116600,290845350,2003601300,13223768580,84151254600,518932736700,3113596420200,18236779032600,104557533120240,588136123801350,3252046802195700,17705588145287700,95051052148386600,503770576386448980,263879825...
/* * Yeppp! library runtime infrastructure * * This file is part of Yeppp! library and licensed under MIT license. * See runtime/LICENSE.txt for details. * */ .include "common.inc" .syntax unified BEGIN_ARM_FUNCTION __aeabi_dcmpeq .arch armv5t /* Check for +-0.0 == +=0.0 case */ ...
10001000 <.text>: 10001000: 8b 44 24 08 mov eax,DWORD PTR [esp+0x8] 10001004: 83 e8 00 sub eax,0x0 10001007: 74 46 je 0x1000104f 10001009: 83 e8 01 sub eax,0x1 1000100c: 75 62 jne 0x10001070 1000100e: 39 05 88 60 01 10 cmp DWORD ...
; A036789: a(n) = Sum_{i=0..n} floor((2*i + 2)/(n - i + 1)). ; 2,5,8,12,17,20,26,31,36,41,48,52,59,66,71,76,86,89,98,105,110,117,126,132,139,146,155,160,171,174,184,193,198,207,218,221,230,239,248,254,265,270,279,290,297,302,315,320,332,339,346,355,366 mov $5,$0 mul $0,2 mov $1,2 mov $2,2 lpb $0,1 add $1,1 mov $4,...
db 0 ; species ID placeholder db 58, 64, 58, 80, 80, 65 ; hp atk def spd sat sdf db FIRE, FIRE ; type db 45 ; catch rate db 142 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/quilava/fr...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x11905, %rsi lea addresses_A_ht+0x7f49, %rdi nop nop nop and $20984, %r8 mov $38, %rcx rep movsw nop nop and %rbp, %rbp lea addresses_normal_ht+0x18315, %rax nop nop xor $3032...
<% from pwnlib.shellcraft.arm.linux import syscall %> <%page args=""/> <%docstring> Invokes the syscall getpgrp. See 'man 2 getpgrp' for more information. Arguments: </%docstring> ${syscall('SYS_getpgrp')}
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld b, 91 call lwaitly_b ld a, b1 ldff(40), a ld a, 07 ldff(4b), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegi...
; A191907: Square array read by antidiagonals up: T(n,k) = -(n-1) if n divides k, else 1. ; Submitted by Jon Maiga ; 0,1,0,1,-1,0,1,1,1,0,1,1,-2,-1,0,1,1,1,1,1,0,1,1,1,-3,1,-1,0,1,1,1,1,1,-2,1,0,1,1,1,1,-4,1,1,-1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,-5,1,-3,-2,-1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,-6,1,1,1,1,-1,0,1,1,1,1...
#include <config_core.h> namespace DB { class FunctionFactory; void registerFunctionCurrentDatabase(FunctionFactory &); void registerFunctionCurrentUser(FunctionFactory &); void registerFunctionCurrentProfiles(FunctionFactory &); void registerFunctionCurrentRoles(FunctionFactory &); void registerFunctionHostName(Fun...
// stdafx.cpp : 標準インクルード [!output PROJECT_NAME].pch のみを // test_iat_hook.pch はプリコンパイル済みヘッダーになります // stdafx.obj にはプリコンパイル済み型情報が含まれます。 #include "stdafx.h" // TODO: このファイルではなく、STDAFX.H で必要な // 追加ヘッダーを参照してください。
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1447e, %rsi lea addresses_WT_ht+0x11b9e, %rdi nop nop nop nop xor %rax, %rax mov $70, %rcx rep movsb nop nop nop nop inc %r13 lea addresses_WC_ht+0x137fe, %r9 xor %rax, %rax movl $0x61...
; A040238: Continued fraction for sqrt(254). ; 15,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14,1,30,1,14 gcd $0,262156 mul $0,42 mod $0,13 mov $1,$0 div $1,5 mul $1,10 add $0,$1 mul $0,2 su...
; A227554: Number of n X 2 0,1 arrays indicating 2 X 2 subblocks of some larger (n+1) X 3 binary array having nonzero determinant, with rows and columns of the latter in lexicographically nondecreasing order. ; 4,12,33,81,179,362,680,1201,2014,3232,4995,7473,10869,15422,21410,29153,39016,51412,66805,85713,108711,136434...
; =============================================================== ; Apr 2014 ; =============================================================== ; ; void rewind(FILE *stream) ; ; Clear any stream error and execute fseek(stream, 0L, SEEK_SET) ; =============================================================== INCLUDE "co...
; A034267: a(n)=f(n,n) where f is given in A034261. ; Submitted by Jamie Morken(s4) ; 0,1,7,39,196,930,4257,19019,83512,361998,1553630,6615686,27992472,117823940,493768485,2061580275,8580127920,35611376790,147447066690,609200868210,2512267906200,10342848445020,42516521451690,174535009040574 mov $3,2 mov $5,$0 lpb $3 ...
; A054485: Expansion of (1+3*x)/(1-4*x+x^2). ; 1,7,27,101,377,1407,5251,19597,73137,272951,1018667,3801717,14188201,52951087,197616147,737513501,2752437857,10272237927,38336513851,143073817477,533958756057,1992761206751,7437086070947,27755583077037,103585246237201,386585401871767,1442756361249867,5384440043127701 mov ...
/********************************************************************** * * Name: mitab_ogr_datasource.cpp * Project: MapInfo Mid/Mif, Tab ogr support * Language: C++ * Purpose: Implementation of OGRTABDataSource. * Author: Stephane Villeneuve, stephane.v@videotron.ca * and Frank Warmerdam, war...
bsr init bsr main<caret> bsr exit rts init moveq.l #-1,d0 rts main moveq.l #0,d0 rts exit illegal rts
TITLE Extended Addition Example (ExtAdd.asm) ; This program calculates the sum of two 64-bit integers. ; Chapter 7 example. ; Last update: 07/18/01 INCLUDE Irvine16.inc .data op1 QWORD 0A2B2A40674981234h op2 QWORD 08010870000234502h sum DWORD 3 dup(?) ; = 0000000122C32B0674BB5736 .code main ...
/***************************************************************************** Name : pds_tq_primary.asm Title : PDS program Author : PowerVR Created : Fri Apr 25 11:46:23 BST 2008 Copyright : 2008 by Imagination Technologies Limited. All rights reserved. No part of this software, either material or...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0xf665, %rsi lea addresses_WC_ht+0x17065, %rdi nop nop nop inc %rax mov $84, %rcx rep movsw nop nop nop nop nop sub %r10, %r10 lea addresses_WT_ht+0x194e5, %r8 clflush (%r8) add...
;***************************************************************************** ;* MMX/SSE2/AVX-optimized 10-bit H.264 deblocking code ;***************************************************************************** ;* Copyright (C) 2005-2011 x264 project ;* ;* Authors: Oskar Arvidsson <oskar@irock.se> ;* Loren M...
; size_t b_array_push_back(b_array_t *a, int c) SECTION code_clib SECTION code_adt_b_array PUBLIC b_array_push_back EXTERN b_array_append defc b_array_push_back = b_array_append
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1443c, %rax clflush (%rax) nop nop nop nop nop cmp %rbp, %rbp mov $0x6162636465666768, %rdx movq %rdx, (%rax) nop nop nop nop nop and $62673, %r11 lea ad...
SECTION code_clib PUBLIC w_pixeladdress EXTERN w_pixeladdress_MODE0 EXTERN pixeladdress_MODE6 EXTERN __zx_screenmode ; Entry hl = x ; de = y ; Exit: hl = de = address ; a = pixel number ; Uses: a, bc, de, hl w_pixeladdress: ld a,(__zx_screenmode) cp 3 jp ...
/* * Copyright (c) 2011, Intel Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
############################################################################### # Copyright 2018 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...
;****************************************************************************** ;* TI ARM C/C++ Codegen Unix v18.1.1.LTS * ;* Date/Time created: Fri Jul 3 20:08:26 2020 * ;****************************************************************************** ...
; double sin(double x) SECTION code_clib SECTION code_fp_math48 PUBLIC am48_sin EXTERN mm48_sin ; compute sin(AC') ; ; enter : AC' = double x in radians ; ; exit : AC' = sin(x) ; ; uses : af, af', bc', de', hl' defc am48_sin = mm48_sin
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %rdi push %rsi lea addresses_WC_ht+0x9cdc, %rsi nop nop and %rdi, %rdi mov (%rsi), %r10w nop nop nop nop nop add %r14, %r14 pop %rsi pop %rdi pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %r8 push ...
; A191632: a(n) = floor((3^n)/(2*n - 1)). ; 3,3,5,11,27,66,168,437,1157,3107,8435,23106,63772,177147,494789,1388603,3913338,11069156,31412472,89404728,255130565,729792083,2092070640,6009139074,17291604274,49840506437,143879197829,415941680999,1204041708155,3489680204994,10125793381704,29413018870664,85524008716238,2489...
.size 8000 .text@58 jp lstartserial .text@100 jp lbegin .data@143 80 .text@150 lbegin: xor a, a ldff(0f), a ld a, 08 ldff(ff), a ld a, 81 ldff(02), a ei .text@1000 lstartserial: nop .text@102e xor a, a ldff(01), a ld a, 81 ldff(02), a .text@13f3 ldff a, (0f) jp lprint_a .text@7000 lprint_a: pu...
; call it with PRINT USR 50000 ORG 50000 LD BC, $27FF ; After this WZ will be $2800, bit 13 = 1; bit 11 = 1 LD A, (BC) ; WZ = $27FF + 1 BIT 4, (HL) ; F[3]=WZ[11]; F[5]=WZ[13] PUSH AF ; push AF onto the stack POP BC ; pop it into BC ...
db 0 ; species ID placeholder db 50, 60, 95, 35, 40, 55 ; hp atk def spd sat sdf db GROUND, GROUND ; type db 190 ; catch rate db 87 ; base exp db NO_ITEM, THICK_CLUB ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/cubon...
;-------------------------------------------------------------------------------- ; $7F5010 - Scratch Space (Callee Preserved) ;-------------------------------------------------------------------------------- !GOAL_COUNTER = "$7EF418" !GOAL_DRAW_ADDRESS = "$7EC72A" ;-----------------------------------------------------...
cpu 6301 ; first, we define a structure. This one contains three fields, occupying 1, 2, and 12 bytes: Record STRUCT val8 rmb 1 val16 rmb 2 val96 rmb 12 ENDSTRUCT ; this macro allows to define an array of structures. They will have the names ; <name>_0 to <name>_<cnt-1>. Note how...
#mips Program 4 #Matthew Philpot #turn the following into mips: # #int a[] = {1,2,3,4,5,6,7,8,9,10}; #int j; #int test = 0; #for(j=0; j<10; j++) # test += a[j]; # #printf( "%d\n", test ); # #registers used: # # t0 -used to store 'j' # t1 -used to store 'test' # t2 -used to store jump # s0 -used to store array .da...
#pragma once #include "precision.hpp" #include "bxdf.hpp" #include <algorithm> struct bsdf_t : public bxdf_t { typedef bsdf_t* p; static const uint8_t MAX_BXDF = 8; bsdf_t() : bxdf_t(bxdf_t::NONE), num_bxdf(0) {} void add(const bxdf_t::p& bxdf) { if (num_bxdf < MAX_BXDF) { bxdfs[num_bxdf...
_mymp2test: file format elf32-i386 Disassembly of section .text: 00000000 <tmain>: #include "types.h" #include "user.h" void tmain(void* arg){ 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp //printf(1, "argument: %d\n", arg);...
;******************************************************************************* ; * ; Filename: hardware_drivers.asm * ; Date: April 4, 2018 ...
/* * This file is part of Nokia HEIF library * * Copyright (c) 2015-2021 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. * * Contact: heif@nokia.com * * This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its * subsidiaries. All rights ar...
; A260006: a(n) = f(1,n,n), where f is the Sudan function defined in A260002. ; 0,3,12,35,90,217,504,1143,2550,5621,12276,26611,57330,122865,262128,557039,1179630,2490349,5242860,11010027,23068650,48234473,100663272,209715175,436207590,905969637,1879048164,3892314083,8053063650,16642998241,34359738336,70866960351,14602...
; A298011: If n = Sum_{i=1..h} 2^b_i with 0 <= b_1 < ... < b_h, then a(n) = Sum_{i=1..h} i * 2^b_i. ; Submitted by Jon Maiga ; 0,1,2,5,4,9,10,17,8,17,18,29,20,33,34,49,16,33,34,53,36,57,58,81,40,65,66,93,68,97,98,129,32,65,66,101,68,105,106,145,72,113,114,157,116,161,162,209,80,129,130,181,132,185,186,241,136,193,194,2...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
#include <gtest/gtest.h> extern "C" { #include <errno.h> #include <stdint.h> #include <sys/ebpf.h> #include "../test_common.hpp" } namespace { class PercpuArrayMapUpdateTest : public CommonFixture { protected: struct ebpf_map *em; virtual void SetUp() { int error; CommonFixture::SetUp(); struct e...
; ATTR.ASM -- File Attribute Utility ; ================================== CSEG Segment Assume CS:CSEG, DS:CSEG, ES:CSEG, SS:CSEG Org 0080h Parameter Label Byte ; Parameter is here Org 0100h Entry: Jmp Begin ; Entry Point ; Most Data (some more at end of program) ; --------------------------------------- ...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #include "clientversion.h" #include "util.h" #include <QPainter> #undef loop /* ugh, remove this wh...
;;; Segment 1CC3 (1CC3:0000) 1CC3:0000 06 CB C8 D4 02 00 8D 46 CC 16 50 1E 68 2E 49 B9 .......F..P.h.I. 1CC3:0010 20 00 9A F4 03 00 08 8D 46 AC 16 50 1E 68 4E 49 .......F..P.hNI 1CC3:0020 B9 20 00 9A F4 03 00 08 8D 46 AC 8C 16 8C 49 A3 . .......F....I. 1CC3:0030 8A 49 8D 46 8C 16 50 1E 68 6E 49 B9 20 00 9A F4 .I.F..P....
Name: Scene-j.asm Type: file Size: 54978 Last-Modified: '1992-07-27T00:08:59Z' SHA-1: 03DA739A95FDB82ED6A41E84B001DA294AD28A36 Description: null
; A199899: Number of -n..n arrays x(0..3) of 4 elements with zero sum, and adjacent elements not both strictly positive and not both strictly negative. ; 15,49,111,209,351,545,799,1121,1519,2001,2575,3249,4031,4929,5951,7105,8399,9841,11439,13201,15135,17249,19551,22049,24751,27665,30799,34161,37759,41601,45695,50049,5...
; A185505: a(n) = (7*n^4 + 5*n^2)/12. ; 1,11,51,156,375,771,1421,2416,3861,5875,8591,12156,16731,22491,29625,38336,48841,61371,76171,93500,113631,136851,163461,193776,228125,266851,310311,358876,412931,472875,539121,612096,692241,780011,875875,980316,1093831,1216931,1350141,1494000,1649061,1815891,1995071,2187196,23928...
SFX_Start_Menu_2_Ch7: noisenote 1, 14, 2, 51 noisenote 8, 14, 1, 34 endchannel
; A188123: Number of strictly increasing arrangements of 4 nonzero numbers in -(n+2)..(n+2) with sum zero. ; 1,3,8,16,31,51,80,118,167,227,302,390,495,617,758,918,1101,1305,1534,1788,2069,2377,2716,3084,3485,3919,4388,4892,5435,6015,6636,7298,8003,8751,9546,10386,11275,12213,13202,14242,15337,16485,17690,18952,20273,21...
; A344461: a(n) = Sum_{d|n} d^gcd(d,n/d). ; Submitted by Simon Strandgaard ; 1,3,4,9,6,12,8,29,37,18,12,60,14,24,24,341,18,273,20,134,32,36,24,236,3151,42,784,240,30,72,32,4645,48,54,48,48789,38,60,56,574,42,96,44,548,3462,72,48,21740,823593,103203,72,750,54,6888,72,1072,80,90,60,1160 add $0,1 mov $2,$0 lpb $0 mov $...
/****************************** LICENSE ******************************* * (C) Copyright 1996-2017 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the pr...
; ; TRS-80 (EG2000+HT1080) specific routines ; by Stefano Bodrato, Fall 2015 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg_callee.asm,v 1.2 2016-06-10 21:13:58 dom Exp $ ; SECTION code_clib PUBLIC set_psg_callee PUBLIC _set_psg_callee PUBLIC asm_set_psg set_psg_callee: _s...
default rel bits 64 segment .bss struc Node .value resq 1 ; Data .next resq 1 ; pointer to next node endstruc segment .text extern ExitProcess extern _CRT_INIT extern malloc extern free extern scanf extern printf global main new_list: ; Empty l...
; A186346: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f(i)=8i and g(j)=j^2. Complement of A186347. ; 3,5,7,9,11,12,14,15,17,18,20,21,23,24,25,27,28,29,31,32,33,35,36,37,39,40,41,42,44,45,46,47,49,50,51,52,54,55,56,57,59,60,61,62,63,65,66,67,68,69,71,72,73,74,75,77,78,...
; A021269: Decimal expansion of 1/265. ; 0,0,3,7,7,3,5,8,4,9,0,5,6,6,0,3,7,7,3,5,8,4,9,0,5,6,6,0,3,7,7,3,5,8,4,9,0,5,6,6,0,3,7,7,3,5,8,4,9,0,5,6,6,0,3,7,7,3,5,8,4,9,0,5,6,6,0,3,7,7,3,5,8,4,9,0,5,6,6,0,3,7,7,3,5,8,4,9,0,5,6,6,0,3,7,7,3,5,8,4 mov $2,10 pow $2,$0 mul $2,2 div $2,53 mov $0,$2 mod $0,10
#include "ota_module.h" #include "./system/definitions.h" #include "./libs_3rd_party/ArduinoJson-v6.14.1/ArduinoJson-v6.14.1.h" #include <HTTPUpdate.h> #include "./system/utils.h" #include "esp_task_wdt.h" #include "soc/rtc_wdt.h" #include "./fs/sys_logs_data.h" #include "./wifi/wifi_module.h" #include "./mqtt/mqtt_cli...
; A047250: Numbers that are congruent to {0, 3, 4, 5} mod 6. ; 0,3,4,5,6,9,10,11,12,15,16,17,18,21,22,23,24,27,28,29,30,33,34,35,36,39,40,41,42,45,46,47,48,51,52,53,54,57,58,59,60,63,64,65,66,69,70,71,72,75,76,77,78,81,82,83,84,87,88,89,90,93,94,95,96,99,100,101,102,105,106,107,108,111,112,113,114,117,118,119,120,123,1...
; A038793: T(n,n-3), array T as in A038792. ; 1,4,8,13,21,33,50,73,103,141,188,245,313,393,486,593,715,853,1008,1181,1373,1585,1818,2073,2351,2653,2980,3333,3713,4121,4558,5025,5523,6053,6616,7213,7845,8513,9218,9961,10743,11565,12428 mov $4,$0 add $0,2 lpb $0 sub $0,1 trn $1,3 add $1,1 add $2,$1 add $3,1 ...
; A010688: Period 2: repeat (1,7). ; 1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1 mod $0,2 mov $1,7 pow $1,$0
.586 .MODEL flat,stdcall option casemap:none include windows.inc include user32.inc include kernel32.inc include msvcrt.inc includelib user32.lib includelib kernel32.lib includelib msvcrt.lib .data i dword 5 .code main PROC ;if-else mov eax,4 .if eax > i inc eax .elseif eax < i add eax,2 .else dec eax .en...
/* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
main: mov 5,%g1 mov -8,%l0 mov 4,%l1 sll %g1,2,%i0 srl %l1,1,%i1 restore %g0,0,%g0 --> Cambio de ventana a la 1 add %g1,3,%l0 save %g0,0,%g0 --> retorno a la ventana 0 subcc %g0,4,%g0 addx %g0,%g1, %g2 mov %l0, %o0
; Display 1-9 vertically, with a " x 3 =" trailer, then the result ; in the left .MODEL SMALL .STACK 100 .DATA NL DB 13,10, "$" num DB 1 trailer DB " x 3 = $" THR DB 3 TEN DB 10 ans DB ? .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV CX, 9 DISP: MOV AH, 02H MOV ...
; A073189: Integers 0..k three times, then 0..k+1 three times, etc. ; 0,0,0,0,1,0,1,0,1,0,1,2,0,1,2,0,1,2,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,4,0,1,2,3,4,0,1,2,3,4,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,6,0,1,2,3,4,5,6,0,1,2,3,4,5,6,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas ; ; See "nirvana+.h" for further details ; ---------------------------------------------------------------- SECTION code_clib SECTION code_nirvanap PUBLIC asm_NIRVANAP_fillT EXTERN asm_N...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END FLDZ ;TEST_BEGIN_RECORDING FINCSTP ;TEST_END_RECORDING
/******************************************************************************* * Copyright 2019 ROBOTIS 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.o...
# Simple routine to demo a loop # Compute the sum of N integers: 1 + 2 + 3 + ... + N # Same result as example4, but here a function performs the # addition operation: int add(int num1, int num2) # ------------------------------------------------------------------ .text .globl main main: # Register assignments ...
; A003453: Number of nonequivalent dissections of an n-gon into 3 polygons by nonintersecting diagonals up to rotation and reflection. ; 1,3,6,11,17,26,36,50,65,85,106,133,161,196,232,276,321,375,430,495,561,638,716,806,897,1001,1106,1225,1345,1480,1616,1768,1921,2091,2262,2451,2641,2850,3060,3290,3521,3773,4026,4301,4...
;#listing2.asm ;------------ timerport .equ $0C00 timer_cnt .equ timerport timer_ctrl .equ timerport+1 .zp snare_counter: .ds 1 snare_page: .ds 1 snare_lo: .ds 1 snare_hi: .ds 1 .org $010 fine_tune: .ds 1 .bss .org $2680 vsync_cnt: .ds 1 ; counter for 'wait_vsync' routin...
; A157094: Denominator of Euler(n, 1/27). ; Submitted by Jamie Morken(s3) ; 1,54,729,78732,531441,28697814,387420489,83682825624,282429536481,15251194969974,205891132094649,22236242266222092,150094635296999121,8105110306037952534,109418989131512359209,47269003304813339178288 add $0,1 mov $2,$0 sub $0,1 mov $3,27 pow $...
; stdio_out_p ; 05.2008 aralbrec PUBLIC stdio_out_p EXTERN stdio_out_x ; output %p parameter ; ; enter : ix = FILE * ; a = precision (default 1) ; b = width (default 0) ; c = flags [-+ O#PLN] ; de = 16-bit parameter (most significant word if long) ; ...
; A077726: Smallest number beginning with n and having a digit sum n. ; 1,2,3,4,5,6,7,8,9,109,119,129,139,149,159,169,179,189,199,2099,2199,2299,2399,2499,2599,2699,2799,2899,2999,30999,31999,32999,33999,34999,35999,36999,37999,38999,39999,409999,419999,429999,439999,449999 add $0,2 mov $2,$0 lpb $2,1 mul $0,10 tr...
; unsigned int sms_cxy2saddr(unsigned char x, unsigned char y) SECTION code_clib SECTION code_arch PUBLIC sms_cxy2saddr_callee EXTERN asm_sms_cxy2saddr sms_cxy2saddr_callee: pop hl pop bc ex (sp),hl ld h,c jp asm_sms_cxy2saddr
; Disassembly of "metroid2.gb" SECTION "ROM Bank $003", ROMX[$4000], BANK[$3] call Call_003_4014 ; $4000: $cd $14 $40 ld hl, $c433 ; $4003: $21 $33 $c4 ld a, [hl-] ; $4006: $3a ld [hl+], a ...
; A092577: Decimal expansion of e^(-6). ; Submitted by Jon Maiga ; 0,0,2,4,7,8,7,5,2,1,7,6,6,6,6,3,5,8,4,2,3,0,4,5,1,6,7,4,3,0,8,1,6,6,6,7,8,9,1,5,0,6,4,7,9,5,8,5,5,3,3,9,4,5,0,5,0,8,7,8,6,2,4,0,0,6,2,7,6,1,9,4,2,2,8,2,9,3,9,9,0,1,8,2,3,7,4,7,2,0,4,0,1,5,8,2,6,6,7,8 add $0,1 mov $1,1 mov $3,$0 mul $3,4 sub $3,1 lpb $3...
#include "omprace.h" #include <omp.h> #include <stdio.h> #include <stdlib.h> int main() { omprace_init(); int x; printf("x master addr = %p\n", &x); #pragma omp parallel num_threads(2) { printf("x implicit addr = %p\n", &x); #pragma omp master { #pragma omp task firstprivate(x...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Shape FILE: arc.asm AUTHOR: Steve Scholl, July 27, 1992 ROUTINES: Name ---- ArcCalcThreePoints ArcCalcPointFromAngle ArcCalcMidAngle Ar...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xd075, %rbp nop nop nop nop nop sub $51471, %rcx mov (%rbp), %edi nop nop nop nop nop dec %r11 lea addresses_D_ht+0xc3e3, %rbp clflush (%rbp) nop nop nop nop nop cmp $22723, %...
#include "PsuSaveImporter.h" #include "StdStreamUtils.h" CPsuSaveImporter::CPsuSaveImporter() { } CPsuSaveImporter::~CPsuSaveImporter() { } void CPsuSaveImporter::Import(Framework::CStream& input, const fs::path& basePath) { if(!fs::exists(basePath)) { fs::create_directory(basePath); } uint1...
; A021335: Decimal expansion of 1/331. ; 0,0,3,0,2,1,1,4,8,0,3,6,2,5,3,7,7,6,4,3,5,0,4,5,3,1,7,2,2,0,5,4,3,8,0,6,6,4,6,5,2,5,6,7,9,7,5,8,3,0,8,1,5,7,0,9,9,6,9,7,8,8,5,1,9,6,3,7,4,6,2,2,3,5,6,4,9,5,4,6,8,2,7,7,9,4,5,6,1,9,3,3,5,3,4,7,4,3,2 seq $0,173833 ; 10^n - 3. div $0,331 mod $0,10
; A256251: First differences of A256250. ; 1,4,4,12,4,12,20,28,4,12,20,28,36,44,52,60,4,12,20,28,36,44,52,60,68,76,84,92,100,108,116,124,4,12,20,28,36,44,52,60,68,76,84,92,100,108,116,124,132,140,148,156,164,172,180,188,196,204,212,220,228,236,244,252,4,12,20,28,36,44,52,60,68,76,84,92,100,108,116,124,132,140,148,156,1...
; A135300: Positive X-values of solutions to the equation 1!*X^4 - 2!*(X + 1)^3 + 3!*(X + 2)^2 - (4^2)*(X + 3) + 5^2 = Y^3. ; 1,7,26,63,124,215,342,511,728,999,1330,1727,2196,2743,3374,4095,4912,5831,6858,7999,9260,10647,12166,13823,15624,17575,19682,21951,24388,26999,29790,32767,35936,39303,42874,46655,50652,54871,593...
; BEGIN_LEGAL ; Intel Open Source License ; ; Copyright (c) 2002-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 source code must reta...
bits 64 default rel extern scanf extern printf global main section .data format_in db '%d', 0 format_out db '%d ', 0 section .bss array resd 100 array_ptr resq 1 ; Points to the position of a current number array_prev resq 1 ; Points to the position of a number prior to that of array_ptr section .text ...
; A216522: Integers of the form 2*x + 3*y with nonnegative x and y, with repetitions. ; 0,2,3,4,5,6,6,7,8,8,9,9,10,10,11,11,12,12,12,13,13,14,14,14,15,15,15,16,16,16,17,17,17,18,18,18,18,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,24,25,25,25,25,26,26,26,26,26,27,27,27,27,27,28,28,28,28,28,29,2...