text
stringlengths
1
1.05M
/* DHT library MIT license written by Adafruit Industries */ #include "DHT.h" #define MIN_INTERVAL 2000 DHT::DHT(uint8_t pin, uint8_t type, uint8_t count) { _pin = pin; _type = type; #ifdef __AVR _bit = digitalPinToBitMask(pin); _port = digitalPinToPort(pin); #endif _maxcycles = microsecondsToCloc...
include uXmx86asm.inc option casemap:none ifndef __X64__ .686P .xmm .model flat, c else .X64P .xmm option win64:11 option stackbase:rsp endif option frame:auto .code align 16 uXm_has_POPCNT proto VECCALL (byte) align 16 uXm_has_POPCNT proc VECCALL (byte) mov eax, 1 ...
; A285543: Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 35", based on the 5-celled von Neumann neighborhood. ; Submitted by Jon Maiga ; 1,3,6,15,28,63,120,255,496,1023,2016,4095,8128,16383,32640,65535,130816,2...
; A220018: Number of cyclotomic cosets of 3 mod 10^n. ; 4,11,29,71,129,203,293,399,521,659,813,983,1169,1371,1589,1823,2073,2339,2621,2919,3233,3563,3909,4271,4649,5043,5453,5879,6321,6779,7253,7743,8249,8771,9309,9863,10433,11019,11621,12239,12873,13523,14189 seq $0,220020 ; Number of cyclotomic cosets of 9 mod 10^n....
; A002625: Expansion of 1/((1-x)^3*(1-x^2)^2*(1-x^3)). ; 1,3,8,17,33,58,97,153,233,342,489,681,930,1245,1641,2130,2730,3456,4330,5370,6602,8048,9738,11698,13963,16563,19538,22923,26763,31098,35979,41451,47571,54390,61971,70371,79660,89901,101171,113540,127092,141904,158068,175668,194804,215568,238068,262404,288693,3170...
; A016999: a(n) = (7*n + 1)^7. ; 1,2097152,170859375,2494357888,17249876309,78364164096,271818611107,781250000000,1954897493193,4398046511104,9095120158391,17565568854912,32057708828125,55784660123648,93206534790699,150363025899136,235260548044817,358318080000000,532875860165503,775771085481344,1107984764452581,1555363...
// Copyright 2019 DeepMind Technologies Ltd. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
;; ;; ;; fixslut.asm ;; ;; Copyright 2021 G. Adam Stanislav ;; All rights reserved ;; ;; nasm -fwin32 fixslut.asm default rel section .rdata ; We make this public in the hope the Microsoft linker will merge this ; with any identically named constants (the names are produced by MSC). GLOBAL __real@3df0000000000000 ...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
; A222257: Lexicographically earliest injective sequence of positive integers such that the sum of 6 consecutive terms is always divisible by 6. ; 1,2,3,4,5,9,7,8,15,10,11,21,13,14,27,16,17,33,19,20,39,22,23,45,25,26,51,28,29,57,31,32,63,34,35,69,37,38,75,40,41,81,43,44,87,46,47,93,49,50,99,52,53,105,55,56,111,58,59,11...
; A118736: Number of zeros in binary expansion of 3^n. ; Submitted by Christian Krause ; 0,0,2,1,4,2,4,7,7,7,7,5,10,10,9,9,15,13,15,14,15,14,16,15,23,22,18,13,20,21,23,24,25,19,25,24,31,25,25,30,36,26,29,30,36,38,28,37,36,45,39,35,41,50,47,46,50,51,50,46,40,41,50,43,46,53,60,60,53,55,47,45,57,58 seq $0,261547 ; The 3 ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x8891, %rdi nop nop nop nop nop sub %r13, %r13 movups (%rdi), %xmm5 vpextrq $0, %xmm5, %rdx nop nop nop and %r14, %r14 lea addresses_normal_ht+0x11f9f, %rsi lea addresses_D_h...
; AI_SMART prefers these moves during harsh sunlight. SunnyDayMoves: dw FIRE_PUNCH dw EMBER dw FLAMETHROWER dw FIRE_SPIN dw FIRE_BLAST dw SACRED_FIRE dw MORNING_SUN dw SYNTHESIS dw -1 ; end
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it) ; * ; * Licens...
; A055793: Numbers n such that n and floor[n/3] are both squares; i.e., squares which remain squares when written in base 3 and last digit is removed. ; Submitted by Jon Maiga ; 0,1,4,49,676,9409,131044,1825201,25421764,354079489,4931691076,68689595569,956722646884,13325427460801,185599261804324,2585064237799729,360053...
; A127932: a(4*n) = 4*n+1, a(4*n+1) = a(4*n+2) = a(4*n+3) = 4*n+4. ; 1,4,4,4,5,8,8,8,9,12,12,12,13,16,16,16,17,20,20,20,21,24,24,24,25,28,28,28,29,32,32,32,33,36,36,36,37,40,40,40,41,44,44,44,45,48,48,48,49,52,52,52,53,56,56,56,57,60,60,60,61,64,64,64,65,68,68,68,69,72,72,72,73,76,76,76,77,80,80,80,81,84,84,84,85,88,88...
db "BLIMP@" ; species name db "It can generate" next "and release gas" next "within its body." page "That's how it can" next "control the height" next "of its drift.@"
; A247817: Sum(4^k, k=2..n). ; 0,16,80,336,1360,5456,21840,87376,349520,1398096,5592400,22369616,89478480,357913936,1431655760,5726623056,22906492240,91625968976,366503875920,1466015503696,5864062014800,23456248059216,93824992236880,375299968947536,1501199875790160,6004799503160656,24019198012642640,96076792050570576,3...
;; ;; Copyright (c) 2020-2021, 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...
; A136395: Binomial transform of [1, 3, 4, 3, 2, 0, 0, 0,...]. ; 1,4,11,25,51,96,169,281,445,676,991,1409,1951,2640,3501,4561,5849,7396,9235,11401,13931,16864,20241,24105,28501,33476,39079,45361,52375,60176,68821,78369,88881,100420,113051,126841,141859,158176,175865,195001,215661,237924,261871,287585,315151,344656,3761...
.macosx_version_min 10, 11 .section __TEXT,__text,regular,pure_instructions .align 4, 0x90 .globl _main _main: testl %edx, %ebx testl 4(%ebp), %edx testl 4(%ebp), %edx testb %dh, %dl testb $32, 1(%edx,%ecx,2) testl $32896, %eax xchgl %edx, %ebx xchgl %edx, 4(%ebp) xchg...
// // Created by noah on 01-02-20. // #include <string> #include <iostream> #include <sstream> std::string uint128_str(__uint128_t v) { uint64_t high = v>>64; uint64_t low = v&(0xFFFFFFFFFFFFFFFF); std::ostringstream oss; oss << high << " " << low; return oss.str(); } __uint128_t str_uint128(std:...
.data a: 70 80 40 20 10 30 50 60 n: 8 .text // your code here // you may change the numbers in the array, and the size of the array; but allow the name of the array to remain as 'a', and size as 'n' // remove these comments!
; Pic animation arrangement. Unused_AnimateMon_Slow_Normal: hlcoord 12, 0 ld a, [wBattleMode] cp WILD_BATTLE jr z, .wild ld e, ANIM_MON_SLOW ld d, $0 call AnimateFrontpic ret .wild ld e, ANIM_MON_NORMAL ld d, $0 call AnimateFrontpic ret AnimateMon_Menu: ld e, ANIM_MON_MENU ld d, $0 call AnimateFrontpi...
.size 8000 .text@49 inc a ldff(45), a jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld a, ff ldff(45), a ld b, 03 call lwaitly_b ld a, 40 ldff(41), a ld a, 02 ldff(ff), a ei ld a, b inc a inc a ldff(45), a ld c, 41 .text@1000 lstatint: xor a, a ldff(c), a ldff(0f), a .text@1...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1b17d, %r8 clflush (%r8) nop nop nop nop sub $37966, %rbx movb (%r8), %r9b nop nop nop add %r9, %r9 lea addresses_UC_ht+0x16a11, %rsi nop xor $24111, %r10 mov $0x616263646...
; A212012: Triangle read by rows in which row n lists the number of states of the subshells of the n-th shell of the nuclear shell model ordered by energy level in increasing order. ; 2,4,2,6,4,2,8,6,4,2,10,8,6,4,2,12,10,8,6,4,2,14,12,10,8,6,4,2,16,14,12,10,8,6,4,2,18,16,14,12,10,8,6,4,2,20,18,16,14,12,10,8,6,4,2,22,20...
; ; ZX81 libraries - Stefano 7/8/2009 ; ;---------------------------------------------------------------- ; ; $Id: filltxt.asm,v 1.4 2012/01/09 16:02:36 stefano Exp $ ; ;---------------------------------------------------------------- ; ; Fill text memory with specified character code ; ;-------------------------------...
; Nathan Lowe ; EECS 2110 - Computer Architecture and Organization ; Spring 2016 at the University of Toledo ; ; Description: Given one or more input strings, determine whether or not it ; conforms to the following password policy: ; * Minimum of 8 characters ; * Maximu...
DEVICE AMSTRADCPC464 ORG $7FFF DB '1' ; mark page 1 at end DB '2' ; mark page 2 at beginning ORG 0x10000-4 endStart: DB '!end' ; mark end of RAM at $FFFF (to check saving of last byte) .sz EQU $-endStart ASSERT $10000 == endStart + endStart.sz MMU $...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="pid, stat_loc, options, usage"/> <%docstring> Invokes the syscall wait4. See 'man 2 wait4' for more information. Arguments: pid(pid_t): pid stat_loc(WAIT_STATUS): stat_loc options(int): options usage(rusage): usage </%docstring...
SSEG SEGMENT PARA STACK 'STACK' DB 64 DUP(0) SSEG ENDS DSEG SEGMENT PARA 'DATA' ; DATA DSEG ENDS CSEG SEGMENT PARA 'CODE' ASSUME CS:CSEG, DS:DSEG, SS:SSEG OUTPUT PROC CMP DL, 9 JA M1 ADD DL, '0' ; if dec digit JMP M2 M1: ADD DL, 'A' ; if hex digit SUB DL, 10 ; minus offset M2: MOV AH, 2 INT 21H RET OUTPUT...
DecrementPP: ; after using a move, decrement pp in battle and (if not transformed?) in party ld a, [de] cp STRUGGLE ret z ; if the pokemon is using "struggle", there's nothing to do ; we don't decrement PP for "struggle" ld hl, wPlayerBattleStatus1 ld a, [hli] ; load t...
/********************************************************************************* * Copyright (C) 2006-2013 by Sebastian Gniazdowski * * All Rights reserved. * * ...
; char __CALLEE__ *strrstrip_callee(char *s, char c) ; remove any occurrences of c at the end of s ; 01.2007 aralbrec XLIB strrstrip_callee XDEF ASMDISP_STRRSTRIP_CALLEE .strrstrip_callee pop hl pop bc ex (sp),hl ; enter : c = char c ; hl = char *s ; exit : hl = char *s ; uses : a...
// sound.cpp: basic positional sound using sdl_mixer #include "engine.h" #include "SDL_mixer.h" #define MAXVOL MIX_MAX_VOLUME bool nosound = true; struct soundsample { char *name; Mix_Chunk *chunk; soundsample() : name(NULL), chunk(NULL) {} ~soundsample() { DELETEA(name); } void cleanup() { if...
; A305157: a(n) = 164*2^n - 99. ; 65,229,557,1213,2525,5149,10397,20893,41885,83869,167837,335773,671645,1343389,2686877,5373853,10747805,21495709,42991517,85983133,171966365,343932829,687865757,1375731613,2751463325,5502926749,11005853597,22011707293,44023414685,88046829469,176093659037,352187318173,704374636445,14087...
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: DgmlGraph.h // Authors: Chris Lovett // //////////////////////////////////////////////////////////////////////////////////////////////////// #include "Gr...
section .text org 0x100 mov ah, 0x9 mox dx, hello int 0x21 mox ax, 0x4c00 int 0x21 section .data hello: db 'Hello World!', 13, 10, '$'
; A005053: Expand (1-2*x)/(1-5*x). ; 1,3,15,75,375,1875,9375,46875,234375,1171875,5859375,29296875,146484375,732421875,3662109375,18310546875,91552734375,457763671875,2288818359375,11444091796875,57220458984375,286102294921875,1430511474609375,7152557373046875 mov $1,5 pow $1,$0 mul $1,30 div $1,100 mul $1,2 add $1,1
; A120198: a(1)=5; a(n)=floor((44+sum(a(1) to a(n-1)))/8). ; 5,6,6,7,8,9,10,11,13,14,16,18,20,23,26,29,33,37,41,47,52,59,66,75,84,94,106,119,134,151,170,191,215,242,272,306,344,387,436,490 mov $2,2 mov $7,$0 lpb $2 mov $0,$7 sub $2,1 add $0,$2 mov $5,0 lpb $0 sub $0,1 mov $4,$5 add $5,4 div $...
mov ax, 0x7c0 mov ds, ax mov es, ax mov bp, 0x8000 mov sp, bp mov bx, 0x8001 mov dh, 2 call disk_load ;bios sets dl to boot drive nr. mov dx, [0x8001] call print_hex call print_nl mov dx, [0x8201] ;0x9000 + 512 call print_hex jmp $ %include "boot_sect_print.asm" %include "boot_sect_print_hex.asm" %include "boot_s...
; A185391: a(n) = Sum_{k=0..n} A185390(n,k) * k. ; Submitted by Christian Krause ; 0,1,10,114,1556,25080,468462,9971920,238551336,6339784320,185391061010,5917263922944,204735466350780,7633925334590464,305188474579874550,13023103577435351040,590850477768105474128,28401410966866912051200,1441935117039649859464986,7710397...
org 0000h ; MOV P1,#00h ; MOV P2,#00h ; principal: setb p1.0 ; lcall tempo ; setb p1.1 ; clr p1.0 ; lcall tempo ; setb p1.2 ; clr p1.1 ; lcall tempo ; setb p1.3 ; clr p1.2 ; lcall tempo ; setb p1.4 ; clr p1.3 ; lcall tempo ; setb ...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "askpassphrasedialog.h" #include "ui_askpassph...
page ,132 title memset - set sections of memory all to one byte ;*** ;memset.asm - set a section of memory to all one byte ; ; Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved. ; ;Purpose: ; contains the memset() routine ; ;Revision History: ; 05-07-84 RN initial version ; 06-30-87 SK...
db 0 ; species ID placeholder db 50, 85, 55, 90, 65, 65 ; hp atk def spd sat sdf db FIRE, FIRE ; type db 190 ; catch rate db 152 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/ponyta/front.dimensions" db GROWTH_MEDIUM_FAST ;...
; A120848: 2^n+3^n-n. ; 2,4,11,32,93,270,787,2308,6809,20186,60063,179184,535525,1602502,4799339,14381660,43112241,129271218,387682615,1162785736,3487832957,10462450334,31385253891,94151567412,282446313673,847322163850,2541932937167,7625731702688,22877060890389,68630914235766,205892205836443,617675543767564,18530244838...
; A268262: Number of length-(3+1) 0..n arrays with new repeated values introduced in sequential order starting with zero. ; 9,42,143,378,837,1634,2907,4818,7553,11322,16359,22922,31293,41778,54707,70434,89337,111818,138303,169242,205109,246402,293643,347378,408177,476634,553367,639018,734253,839762,956259,1084482,12251...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x19ab, %r15 nop add %r13, %r13 mov (%r15), %r14 nop sub $54086, %rbp lea addresses_A_ht+0x155ab, %rsi lea addresses_normal_ht+0x2616, %rdi nop and $24582, %r13 mov $44, %rcx r...
Name: mn_hp_smram.asm Type: file Size: 60893 Last-Modified: '1993-08-24T11:34:58Z' SHA-1: 3C856154AE2C5C98CC7D8C08D42D1CAB9D0E2C53 Description: null
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: undrawb.asm,v 1.6 2016-04-13 21:09:09 dom Exp $ ; SECTION code_clib PUBLIC undrawb PUBLIC _undrawb ...
;@DOES set BC bytes of HL to the value A ;@INPUT HL pointer to set ;@INPUT BC amount to set ;@INPUT A byte to set memory to ;@OUTPUT HL HL+BC ;@OUTPUT DE HL+BC+1 ;@DESTROYS AF sys_MemSet: push hl pop de inc de ld (hl),a ldir ret
; ; CPC Maths Routines ; ; August 2003 **_|warp6|_** <kbaccam /at/ free.fr> ; ; $Id: sqrt.asm,v 1.4 2016-06-22 19:50:49 dom Exp $ ; SECTION code_fp INCLUDE "cpcfirm.def" INCLUDE "cpcfp.def" PUBLIC sqrt PUBLIC sqrtc EXTERN get_para .sqrt call get_para call firmware ....
#include <bits/stdc++.h> using namespace std; vector<int> findOrder(int numCourses, vector<vector<int>>& prerequisites) { // find courses without constraint requirements int reqments[numCourses]; bool completed[numCourses]; vector<int> done; for (int i = 0; i < numCourses; i++) { reqments[i...
/* * bsv.cpp * * Created on: Jun. 19, 2019 * Author: takis */ #include <iostream> #include <vector> using std::cout; using std::endl; using std::vector; typedef vector<int> vs_t; void print_out(const vs_t &arr, const vs_t::size_type N) { cout << endl; for (vs_t::size_type i = 0; i != N; ++i) { cout...
dnl Intel Pentium-4 mpn_add_n -- mpn addition. dnl Copyright 2001, 2002 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 GNU Lesser General Public License as dnl publish...
; A045430: Number of dominoes with n spots (in standard set). ; 1,1,2,2,3,3,4,3,3,2,2,1,1 lpb $0 mul $0,11 mod $0,12 lpe div $0,2 add $0,1
#pragma once #include "common.hpp" #include "chunk.hpp" namespace png { class Iend : public Chunk { public: Iend(Chunk c); virtual ~Iend() {}; }; }
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Palm Computing, Inc. 1993 -- All Rights Reserved PROJECT: PEN GEOS MODULE: World Clock FILE: wcLists.asm AUTHOR: Roger Flores, Oct 16, 1992 ROUTINES: Name Description ---- ----------- WorldClockIni...
; A267599: Binary representation of the n-th iteration of the "Rule 177" elementary cellular automaton starting with a single ON (black) cell. ; 1,1,1001,101001,10101001,1010101001,101010101001,10101010101001,1010101010101001,101010101010101001,10101010101010101001,1010101010101010101001,101010101010101010101001,101010...
db DEX_SEADRA ; pokedex id db 55, 65, 95, 85, 95 ; hp atk def spd spc db WATER, WATER ; type db 75 ; catch rate db 155 ; base exp INCBIN "gfx/pokemon/front/seadra.pic", 0, 1 ; sprite dimensions dw SeadraPicFront, SeadraPicBack db BUBBLE, SMOKESCREEN, WATER_GUN, NO_MOVE ; level 1 learnset db GRO...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkTraceMemoryDump.h" #include "include/gpu/GrContext.h" #include "include/gpu/GrGpuResource.h" #include "src/gpu/GrContextPriv.h" #include "src/gpu/GrGp...
;=============================================================================== ; Copyright 2015-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") co...
; void exit(int eax); exit: mov ebx, eax ; eax mov eax, 0x01 ; exit | int 0x80 ; | (| ); ; void putint(int eax); putint: push eax ; preserve push ecx push edx push esi mov ecx, 0 ; count string size .div_loop: ...
############################################################################### # 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...
Music_LookYoungster: musicheader 3, 1, Music_LookYoungster_Ch1 musicheader 1, 2, Music_LookYoungster_Ch2 musicheader 1, 3, Music_LookYoungster_Ch3 Music_LookYoungster_Ch1: tempo 118 volume $77 stereopanning $f dutycycle $3 notetype $c, $a3 octave 3 note G_, 1 note G#, 1 note A_, 1 note A#, 1 intensity $3...
//================================================================================================= /*! // \file src/mathtest/operations/dmatdmatsub/MDaM4x4b.cpp // \brief Source file for the MDaM4x4b dense matrix/dense matrix subtraction math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved ...
; A094056: Number of digits in A002860(n) (number of Latin squares). ; 1,1,2,3,6,9,14,21,28,37,48 pow $0,2 seq $0,6005 ; The odd prime numbers together with 1. add $0,2 mov $2,2 mul $2,$0 sub $2,2 div $2,23 mov $0,$2 add $0,1
; ; Fast background area save ; ; MC-1000 version ; ; $Id: bksave.asm,v 1.6 2016-07-02 09:01:35 dom Exp $ ; SECTION code_clib PUBLIC bksave PUBLIC _bksave PUBLIC bkpixeladdress EXTERN gfxbyte_get EXTERN pixelbyte .bksave ._bksave push ix ;save callers ld hl,4 add hl,sp ...
; A203135: Indices of hexagonal numbers that are also decagonal ; Submitted by Jon Maiga ; 1,28,943,32026,1087933,36957688,1255473451,42649139638,1448815274233,49217070184276,1671931570991143,56796456343514578,1929407584108504501,65543061403345638448,2226534680129643202723,75636636063004523254126,2569419091462024147437...
//=================================================================================================================== // // MmuVars.cc -- Common variables for the MMU // // Copyright (c) 2017-2020 -- Adam Clark // Licensed under "THE BEER-WARE LICENSE" // See License.md for details. // // -------...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.6.0 #9615 (MINGW64) ;-------------------------------------------------------- ; PIC16 port for the Microchip 16-bit core micros ;-------------------------------------------------------- list ...
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. ;; See the LICENSE file in the project root for more information. .586 .model flat option casemap:none .code include AsmMacros.inc EXTERN RhExce...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes...
; ***************************************************************************** ; * ; * Forth operating system for an IBM Compatible PC ; * Copyright (C) 1993-2011 W Nagel ; * Copyright (C) 2014 MikeOS Developers -- see doc/LICENSE.TXT ; * ; * For the most part it follows the...
; Z88 Small C+ Run time Library ; Moved functions over to proper libdefs ; To make startup code smaller and neater! ; ; 6/9/98 djm ; ; 13/5/99 djm, inverted carry conditions SECTION code_crt0_sccz80 PUBLIC l_uge EXTERN l_compare_result ; ; DE >= HL [unsigned] ; set carry if true...
; A292936: a(n) = the least k >= 0 such that floor(n/(2^k)) is a nonprime; a(n) is degree of the "safeness" of prime, 0 if n is not a prime, 1 for unsafe primes (A059456), and k >= 2 for primes that are (k-1)-safe but not k-safe. ; 0,1,1,0,2,0,2,0,0,0,3,0,1,0,0,0,1,0,1,0,0,0,4,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,...
SECTION code_fp_am9511 PUBLIC cos EXTERN cam32_sccz80_cos defc cos = cam32_sccz80_cos ; SDCC bridge for Classic IF __CLASSIC PUBLIC _cos EXTERN cam32_sdcc_dcc_cos defc _cos = cam32_sdcc_dcc_cos ENDIF
_usertests: file format elf32-i386 Disassembly of section .text: 00000000 <main>: return randstate; } 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...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1c19e, %rsi lea addresses_normal_ht+0x18ade, %rdi clflush (%rdi) nop nop nop nop nop cmp %r8, %r8 mov $104, %rcx rep movsb nop nop nop inc %rcx lea addresses_WC_ht+0x6ade, %r...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
; A081592: A self generating sequence: "there are n a(n)'s in the sequence". Start with 1,2 and use the rule : "a(n)=k implies there are n following k's (k is 1 or 2)". ; 1,2,1,2,2,1,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2...
; A123950: Expansion of g.f.: x^2*(1-2*x) / (1-3*x-3*x^2+2*x^3). ; Submitted by Jon Maiga ; 0,1,1,6,19,73,264,973,3565,13086,48007,176149,646296,2371321,8700553,31923030,117128107,429752305,1576795176,5785386229,21227039605,77883687150,285761407807,1048481205661,3846960466104,14114802199681,51788325586033,1900154624249...
Name: en-data-1.asm Type: file Size: 11385 Last-Modified: '1993-07-20T07:13:22Z' SHA-1: D629ABDF2531DA2C70CE35E3DCE408049D6E1811 Description: null
; A165849: Totally multiplicative sequence with a(p) = 28. ; 1,28,28,784,28,784,28,21952,784,784,28,21952,28,784,784,614656,28,21952,28,21952,784,784,28,614656,784,784,21952,21952,28,21952,28,17210368,784,784,784,614656,28,784,784,614656,28,21952,28,21952,21952,784,28,17210368,784,21952,784,21952,28,614656,784,614656,7...
;------------------------------------------------------------------------------- ; MSP430F5529 blink in assembly ; This is inefficient as it uses a software delay and the CPU is always on ; (C) 2018 Manolis Kiagias ;------------------------------------------------------------------------------- .cdecls C,LI...
;******************************************************************************* ; MSP430x24x Demo - Basic Clock, MCLK Sourced from HF XTAL ; ; Description: Proper selection of an external HF XTAL for MCLK is shown by ; first polling the OSC fault until XTAL is stable - only then is MCLK ; sourced by LFXT1...
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * * Copyright (C) 2004-2014, International Business Machines * Corporation and others. All Rights Reserved. * **********...
; A172011: 12*A002605(n). ; 0,12,24,72,192,528,1440,3936,10752,29376,80256,219264,599040,1636608,4471296,12215808,33374208,91180032,249108480,680577024,1859371008,5079896064,13878534144,37916860416,103590789120,283015299072,773212176384,2112454950912 mov $2,6 lpb $0 sub $0,1 add $3,$2 add $1,$3 add $2,$1 mov...
// Copyright (c) 2018, The Sherkitty 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 of ...
; A041263: Denominators of continued fraction convergents to sqrt(143). ; Submitted by Christian Krause ; 1,1,23,24,551,575,13201,13776,316273,330049,7577351,7907400,181540151,189447551,4349386273,4538833824,104203730401,108742564225,2496540143351,2605282707576,59812759710023,62418042417599,1433009692897201,14954277353...
pushpc org $0ef51b jml RenderCharExtended org $0ef520 RenderCharExtended_returnOriginal: org $0ef567 RenderCharExtended_returnUncompressed: org $0ef356 jsl RenderCharLookupWidth org $0ef3ba jsl RenderCharLookupWidth org $0ef48e jml RenderCharLookupWidthDraw org $0ef499 RenderCharLookupWidth...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 15/10/98 ; ; ; Page the graphics bank in/out - used by all gfx functions ; Simply does a swap... ; ; ; $Id: swapgfxbk.asm,v 1.2 2001/04/18 13:21:38 stefano Exp $ ;...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x13975, %rbx nop nop nop sub %rax, %rax mov (%rbx), %di nop nop nop nop nop and $11995, %r12 lea addresses_UC_ht+0xbc55, %rsi lea addresses_UC_ht+0x10e55, %rdi clflush (%rdi) ...
// Copyright (c) 2011-2013 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE Fac Test Suite #include "main.h" #include "random.h" #include "txdb.h" #include "ui_interface....
;***************************************************************************** ;* mc-a2.asm: x86 motion compensation ;***************************************************************************** ;* Copyright (C) 2005-2018 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Fiona Glaser <fio...
lbi r0, 27 addi r1, r0, 1 addi r2, r1, 2 addi r1, r2, 3 addi r4, r1, 4 addi r1, r4, 5 addi r6, r1, 6 addi r1, r6, 7 halt
; A062776: Greatest common divisor of (n+2)! and n^n. ; Submitted by Jon Maiga ; 1,4,3,16,5,576,7,256,81,25600,11,497664,13,802816,91125,65536,17,1719926784,19,327680000,6751269,507510784,23,495338913792,15625,5670699008,1594323,161128382464,29,401224520171520000000,31,4294967296,19098395217,4964982194176,6565234375,44...