text
stringlengths
1
1.05M
; A113828: a(n) = Sum[2^(A047260(i)-1), {i,1,n}]. ; 1,9,25,57,121,633,1657,3705,7801,40569,106105,237177,499321,2596473,6790777,15179385,31956601,166174329,434609785,971480697,2045222521,10635157113,27815026297,62174764665,130894241401,680650055289 mov $4,$0 add $4,1 mov $5,$0 lpb $4 mov $0,$5 sub $4,1 sub $0,$4...
; CALLER linkage for function pointers XLIB strstrip LIB strstrip_callee XREF ASMDISP_STRSTRIP_CALLEE .strstrip pop bc pop de pop hl push hl push de push bc jp strstrip_callee + ASMDISP_STRSTRIP_CALLEE
DATA SEGMENT GRADE DB 85,73,92,81,96 DB 100,86,95,77,80 DB 56,71,69,80,68 DB 83,78,69,90,84 AVEBUF DB 5 DUP(?) DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS,AX MOV BX,OFFSET GRADE MOV DI,OFFSET AVEBUF ...
* --------------------------------------------------------------------------- * PSGlib * ------------ * Converted to 6809 from: * PSGlib - Programmable Sound Generator audio library - by sverx * https://github.com/sverx/PSGlib * * Typical workflow: * 1) You (or a friend of yours) track one or more module(s) an...
// // (C) 2005 Vojtech Janota // (C) 2010 Zoltan Bojthe // (C) 2014 RWTH Aachen University, Chair of Communication and Distributed Systems // // 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 Fo...
//general includes #include "ros/ros.h" #include "nav_msgs/OccupancyGrid.h" #include "geometry_msgs/Pose.h" #include "geometry_msgs/Quaternion.h" #include "geometry_msgs/Point32.h" #include "geometry_msgs/PointStamped.h" #include "nav_msgs/Odometry.h" #include "std_msgs/String.h" #include <math.h> #include <sstream> /...
; A039714: a(n) = n-th prime modulo 16. ; 2,3,5,7,11,13,1,3,7,13,15,5,9,11,15,5,11,13,3,7,9,15,3,9,1,5,7,11,13,1,15,3,9,11,5,7,13,3,7,13,3,5,15,1,5,7,3,15,3,5,9,15,1,11,1,7,13,15,5,9,11,5,3,7,9,13,11,1,11,13,1,7,15,5,11,15,5,13,1,9,3,5,15,1,7,11,1,9,13,15,3,15,7,11,3,7,13,9,11,13 seq $0,40 ; The prime numbers. mod $0,...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
#include "Platform.inc" #include "FarCalls.inc" #include "Flash.inc" #include "Lcd.inc" #include "States.inc" #include "Ui.inc" #include "WaitButtonPressState.inc" radix decimal defineUiState UI_STATE_ADJUSTSETTINGS fcall isLcdIdle xorlw 0 btfsc STATUS, Z returnFromUiState loadFlashAddressOf scree...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: LBP driver FILE: capsl2Info.asm AUTHOR: Dave Durran REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 2/27/90 ...
_clonetest: file format elf32-i386 Disassembly of section .text: 00000000 <child>: int x = 0; mutex_t lock; void child(void *arg_ptr) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int i; for(i=0;i<100000;i++) 6: c7...
// 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 "chrome/browser/drive/drive_service_interface.h" namespace drive { DriveServiceInterface::AddNewDirectoryOptions::AddNewDirectoryOptions() { } ...
BITS 32 SECTION .data hello_str: db "I'm uninfected...",0xa SECTION .text global _start _start: mov ecx, hello_str mov edx, 18 mov ebx, 1 mov eax, 4 int 0x80 xor eax, eax inc eax xor ebx, ebx int 0x80
#pragma once #include "util/vector.hpp" #include "util/rect.hpp" #include <string> #include <vector> namespace ve { namespace render { class Image final { public: // The formats supported. enum Format { RGB24, RGBA32, GRAYSCALE32, DEPTH }; // Create a blank image. Pixels are uninitializaed. Image...
; A010979: Binomial coefficient C(n,26). ; 1,27,378,3654,27405,169911,906192,4272048,18156204,70607460,254186856,854992152,2707475148,8122425444,23206929840,63432274896,166509721602,421171648758,1029530696964,2438362177020,5608233007146,12551759587422,27385657281648,58343356817424,121548660036300,247959266474052,495918...
; A188299: Positions of 1 in A188297; complement of A188298. ; 3,6,9,10,13,16,17,20,23,26,27,30,33,34,37,40,43,44,47,50,51,54,57,58,61,64,67,68,71,74,75,78,81,84,85,88,91,92,95,98,99,102,105,108,109,112,115,116,119,122,125,126,129,132,133,136,139,142,143,146,149,150,153,156,157,160,163,166,167,170,173,174,177,180,183,1...
; ; CPC Maths Routines ; ; August 2003 **_|warp6|_** <kbaccam /at/ free.fr> ; ; $Id: deq.asm,v 1.3 2015/01/21 10:56:29 stefano Exp $ ; INCLUDE "cpcfirm.def" INCLUDE "cpcfp.def" PUBLIC deq PUBLIC deqc EXTERN fsetup EXTERN stkequcmp EXTERN cmpfin .deq call fsetup call firmware .deqc de...
; --COPYRIGHT--,BSD_EX ; Copyright (c) 2012, Texas Instruments Incorporated ; 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 co...
/* Amine Rehioui Created: August 7th 2011 */ #include "Shoot.h" #include "TimeManager.h" #include "Timer.h" #include "Clock.h" namespace shoot { //! constructor TimeManager::TimeManager() { } //! Destructor TimeManager::~TimeManager() { SHOOT_WARNING(m_aTimers.empty(), "Destroying TimeManager while some...
; A033876: Expansion of 1/(2*x) * (1/(1-4*x)^(3/2)-1). ; 3,15,70,315,1386,6006,25740,109395,461890,1939938,8112468,33801950,140408100,581690700,2404321560,9917826435,40838108850,167890003050,689232644100,2825853840810,11572544300460,47342226683700,193485622098600,790066290235950,3223470464162676,13141841123124756,53540...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018-2019 The FestonCoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/l...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; printfield 打印蛇,包括边框 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; printfield: .scope ldx #23 ; i代表行数,不含边框 lda #<field ; 取地址低8位 clc adc #1 sta _ptr lda #>field ; 取地址高8位 sta _ptr + 1 jsr _print_blk_line ;ldy #0 ; 此时y一定为0 * lda #cblk sta (_ptr), y ; 打印左边框 lda #39 jsr _...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/wrappers.proto #include <google/protobuf/wrappers.pb.h> #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/...
#ifndef RANDAR_DATA_BINARY_FILE_OUTPUT_HPP #define RANDAR_DATA_BINARY_FILE_OUTPUT_HPP #include <fstream> #include <stdexcept> #include <randar/Filesystem/Endian.hpp> #include <randar/Render/Color.hpp> namespace randar { class BinaryFileWriter { std::ofstream stream; public: /** *...
; Bootstrap for the BASIC->ROM LOADER ; for the LlamaVampireDrive system ; ; This code is a payload on a BASIC program that will poke it into ; memory at 0xF800, then call USR(0) to trigger it. ; ; ; This code itself will: ; - make the LLVD calls to load "BOOT.ROM" to 0x0000... ; - swap out the ROM for RAM at (0x0...
dnl Intel Pentium mpn_mul_basecase -- mpn by mpn multiplication. dnl Copyright 1996, 1998-2000, 2002 Free Software Foundation, Inc. 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 modify dnl it under the terms of either: dnl dnl * the GN...
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT #include "azure/storage/common/shared_key_policy.hpp" #include "azure/core/http/http.hpp" #include "azure/core/strings.hpp" #include "azure/storage/common/crypt.hpp" #include <algorithm> #include <cctype> namespace Azure { ...
// // Created by Kylian Lee on 2021/10/03. // #include <iostream> using namespace std; int sorted[10001]; int main(){ int num, tmp, cnt = 0; scanf("%d", &num); for (int i = 0; i < num; ++i) { scanf("%d", &tmp); sorted[tmp]++; } for (int i = 1; i <= 10000; ++i) { if(cnt == num) break; ...
#include <codegenvar/Scalar.h> #include <cmath> namespace codegenvar { Scalar::Scalar(double d) : state(Float) { val.d = d; } Scalar::Scalar(int i) : state(Int) { val.i = i; } Scalar::Scalar(long int i) : state(Int) { val.i = i; } Scalar::Scalar(long long int i) : state(Int) { val.i...
//===- Error.cxx - system_error extensions for llvm-cxxdump -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
; A172481: a(n) = (3*n*2^n+2^(n+4)+2*(-1)^n)/18. ; 1,2,5,11,25,55,121,263,569,1223,2617,5575,11833,25031,52793,111047,233017,487879,1019449,2126279,4427321,9204167,19107385,39612871,82021945,169636295,350457401,723284423,1491308089,3072094663,6323146297,13004206535,26724240953,54880137671,112623586873,230973796807,4734...
#include <iostream> #include <string> #include <string_view> #include <vector> #include <assert.h> class encoder { std::string const table_enc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; char const padding_symbol = '='; char const table_dec[256] = { -1,-1,-1,-1,-1,-1,-1,...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" f...
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg index2_PCODE,index2,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midIndex2n equ 34 ; module ID, for native asserts endif ; EXTERNAL FUNCTIONS externFP <N_WCompSzSrt> externF...
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it) ; * ; * Licens...
/* LSOracle: A learning based Oracle for Logic Synthesis * MIT License * Copyright 2019 Laboratory for Nano Integrated Systems (LNIS) * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software ...
; A289189: Upper bound for certain restricted sumsets. ; 3,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10 add $0,1 mov $1,4 lpb $0 sub $0,$1 add $1,2 lpe div $1,2 add $1,1 mov $0,$1
; A047573: Numbers that are congruent to {0, 1, 2, 4, 5, 6, 7} mod 8. ; 0,1,2,4,5,6,7,8,9,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,28,29,30,31,32,33,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,52,53,54,55,56,57,58,60,61,62,63,64,65,66,68,69,70,71,72,73,74,76,77,78,79,80,81 mul $0,8 add $0,4 div $0,7
; A273791: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 931", based on the 5-celled von Neumann neighborhood. ; 4,20,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,...
/// @file /// @author David Pilger <dpilger26@gmail.com> /// [GitHub Repository](https://github.com/dpilger26/NumCpp) /// @version 1.2 /// /// @section License /// Copyright 2019 David Pilger /// /// Permission is hereby granted, free of charge, to any person obtaining a copy of this /// software and associated documen...
; $Id: jentzsch2.asm 299 2008-11-10 02:17:18Z phf $ ; ; Thomas Jentzsch <tjentzsch@web.de> test case for bug ; in error handling. processor 6502 include vcs.h ORG $f800 Start ldz #$00 ; illegal mnemonic bpl .error ; undefined label org $fffc .word Start .word Start
#include <iostream> #include <fstream> #include <ctime> #include <cstdlib> #include "SL.h" #include "SL_user.h" #include "SL_kinematics.h" #include "SL_dynamics.h" using namespace std; static void fillState(SL_DJstate* desiredState); static void matlabLog(int numOfTests, int* iterations, double* tests, const std::st...
/* Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 ap...
; A200155: Number of 0..n arrays x(0..3) of 4 elements with zero 3rd differences. ; 4,9,22,41,66,107,158,219,304,403,516,661,824,1005,1226,1469,1734,2047,2386,2751,3172,3623,4104,4649,5228,5841,6526,7249,8010,8851,9734,10659,11672,12731,13836,15037,16288,17589,18994,20453,21966,23591,25274,27015,28876,30799,32784,34897...
; A184985: Nonnegative integers excluding 2. ; 0,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70 mov $1,1 bin $1,$0 cmp $1,0 add $1,$0 mov $0,$1
dnl Intel Pentium mpn_mul_2 -- mpn by 2-limb multiplication. 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 a...
; A221462: Number of 0..7 arrays of length n with each element unequal to at least one neighbor, starting with 0 ; 0,7,49,392,3087,24353,192080,1515031,11949777,94253656,743424031,5863743809,46250174880,364797430823,2877333239921,22694914695208,179005735545903,1411904551687777,11136372010635760,87837935936264759,692820...
; int strncmp(const char *s1, const char *s2, size_t n) SECTION code_string PUBLIC _strncmp EXTERN asm_strncmp _strncmp: pop af pop de pop hl pop bc push bc push hl push de push af jp asm_strncmp
# Si scriva un programma in linguaggio assembly MIPS che legge due stringhe da tastiera e al suo interno usa una subroutine, # denominata SIMILITUDINE, che valuta quanti caratteri alle stesse posizioni delle due stringhe sono uguali. # La routine riceve due parametri, "le stringhe" (cioè gli indirizzi delle stringhe),...
CinnabarLabMetronomeRoom_h: db LAB ; tileset db CINNABAR_LAB_METRONOME_ROOM_HEIGHT, CINNABAR_LAB_METRONOME_ROOM_WIDTH ; dimensions (y, x) dw CinnabarLabMetronomeRoom_Blocks ; blocks dw CinnabarLabMetronomeRoom_TextPointers ; texts dw CinnabarLabMetronomeRoom_Script ; scripts db 0 ; connections dw CinnabarLabMetr...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; void *p_forward_list_insert_after(void *list_item, void *item) ; ; Insert item into list after the list_item, return item. ; ; ============================================...
// Stars array of struct /// @file /// Functions for performing input and output. // Commodore 64 PRG executable file .file [name="stars-1.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter...
dnl Alpha __gmpn_submul_1 -- Multiply a limb vector with a limb and dnl subtract the result from a second limb vector. dnl Copyright (C) 1992, 1994, 1995, 2000 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modi...
_sh: file format elf32-i386 Disassembly of section .text: 00000000 <runcmd>: struct cmd *parsecmd(char*); // Execute cmd. Never returns. void runcmd(struct cmd *cmd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp...
.org $8000 init: lda #$ff sta $6002 lda #$01 sta $6000 loop_l: rol A bcs loop_r sta $6000 jmp loop_l loop_r: ror A bcs loop_l sta $6000 jmp loop_r .org $fffc word init word $0000
; A076824: Let a(1)=a(2)=1, a(n)=(2^ceiling(a(n-1)/2)+1)/a(n-2). ; 1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3,1,1,3,5,3 bin $0,2 pow $0,3 mod $0,5 mul $0,2 add $0,1
.size 8000 .text@48 ld a, ff ldff(45), a jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld a, ff ldff(45), a ld b, 95 call lwaitly_b ld a, 40 ldff(41), a xor a, a ldff(0f), a ld a, 02 ldff(ff), a ei ld a, b inc a inc a ldff(45), a .text@1000 lstatint: ld a, 50 ldff(41), a ld ...
/*************************************************************************** * * Copyright (c) 2019 Chatopera.Inc, Inc. All Rights Reserved * **************************************************************************/ /** * @file /Users/hain/chatopera/chatopera.io/clause/src/sep/tests/tst-sep.cpp * @author Hai L...
#include "ai/world/field.h" #include <gtest/gtest.h> class FieldTest : public ::testing::Test { protected: void SetUp() override { length = 9.0; width = 6.0; defense_length = 1.0; defense_width = 2.0; goal_width = 1...
; A103157: Number of ways to choose 4 distinct points from an (n+1) X (n+1) X (n+1) lattice cube. ; 70,17550,635376,9691375,88201170,566685735,2829877120,11671285626,41417124750,130179173740,370215608400,968104633665,2357084537626,5396491792125,11710951848960,24246290643940,48151733324310,92140804597626,170538695998000...
.686 .model flat,stdcall option casemap:none include windows.inc include .\bnlib.inc include .\bignum.inc .code bnCreatei proc initVal:SDWORD invoke HeapAlloc,BN_HHEAP,HEAP_GENERATE_EXCEPTIONS+HEAP_ZERO_MEMORY,BN_ALLOC_BYTES .if eax mov edx,initVal mov [eax].BN.dwSize,1 test edx,edx sets byte ptr [eax].BN.b...
; (C) Fubet Tech LLP, 2022 .include "tn84def.inc" ; Define device ATtiny84A .org 0x00 ; Starting address of program main: SBI DDRA, 0 ; Set PA0 as Output pin loop: SBI PORTA, 0 ; Make PA0 HIGH RCALL delay ; Call delay subroutine CBI PORTA, 0 ; Make PA0 LOW RCALL delay ; Call delay subroutine RJMP loop ; Repeat f...
; ; Copyright (c) 2015 The WebM 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 in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
; A287196: Binary 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 259", based on the 5-celled von Neumann neighborhood. ; Submitted by Jon Maiga ; 1,11,100,11,10000,1111,1000000,111111,100000000,11111111,10000000000,1111...
// In map template description.ext use: // #include "MissionDescription\CfgSoundsContents.hpp" class fire { name="fire"; sound[]={"Music\fire.ogg",db+12,1.0}; // NB, this will resolve from root titles[]={}; }; class StrikeThunder { name = "StrikeThunder"; sound[] = {"@A3\sounds_f_enviroment\ambient\thunders...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distr...
//BasicTest @10 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @0 A=D+A D=A @R15 M=D @SP M=M-1 @SP A=M D=M @R15 A=M M=D @21 D=A @SP A=M M=D @SP M=M+1 @22 D=A @SP A=M M=D @SP M=M+1 @ARG D=M @2 A=D+A D=A @R15 M=D @SP M=M-1 @SP A=M D=M @R15 A=M M=D @ARG D=M @1 A=D+A D=A @R15 M=D @SP M=M-1 @SP A=M D=M @R15 A=M M=D @36 D=A @SP A=M M=D ...
; A021697: Decimal expansion of 1/693. ; 0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1 mul $0,3 mod $0,18 mov $5,$0 lpb $0,1 mul $0,2 add $3,$5 sub $0,$3 sub $...
#include <Arduino.h> #define LED_TOPLEFT 8 #define LED_TOPCENTER 7 #define LED_TOPRIGHT 6 #define LED_CENTER 5 #define LED_BOTLEFT 2 #define LED_BOTCENTER 3 #define LED_BOTRIGHT 4 #define BUTTON 9 long led_count = 0; void clear_leds(); void set_leds(long led_count_i); void setup() { Serial.begin(9600); Seria...
/* * 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...
; Trim Trailing Characters (Trim.asm) ; Test the Trim procedure. Trim removes trailing all ; occurrences of a selected character from the end of ; a string. INCLUDE Irvine32.inc Str_trim PROTO, pString:PTR BYTE, ; points to string char:BYTE ; character to remove Str_length PROTO, pSt...
; A031380: a(n) = prime(6*n - 2). ; 7,29,53,79,107,139,173,199,239,271,311,349,383,421,457,491,541,577,613,647,683,733,769,821,857,887,941,983,1021,1061,1097,1151,1193,1231,1283,1307,1373,1429,1459,1493,1549,1583,1619,1667,1721,1759,1811,1871,1907,1973,2003,2053,2089,2137,2203,2243,2287,2339,2377,2411,2459,2531,2579,26...
; A167238: Number of ways to partition a 2*n X 2 grid into 4 connected equal-area regions ; 1,5,11,25,45,77,119,177,249,341,451,585,741,925,1135,1377,1649,1957,2299,2681,3101,3565,4071,4625,5225,5877,6579,7337,8149,9021,9951,10945,12001,13125,14315,15577 add $0,1 mov $1,$0 pow $1,3 add $1,$0 add $1,$0 div $1,6 mul $1,...
; Z88 Small C+ Run Time Library ; Long support functions ; "8080" mode ; Stefano - 30/4/2002 ; SECTION code_crt0_sccz80 PUBLIC l_long_cmp EXTERN __retloc EXTERN __retloc2 ; Signed compare of dehl (stack) and dehl (registers) ; ; Entry: primary = (under two return addresses on stack) ; ...
.386 .model flat,C include dpmi32.inc PUBLIC RmCallStruc .data? __WDOSXRmRegs RmCallStruc <> end
;***************************************************************************** ;* x86-optimized Float DSP functions ;* ;* Copyright 2006 Loren Merritt ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Lesser General Public ;* License...
#include "maindialog.h" #include "ui_maindialog.h" #include "constant.h" #include "clientmanager.h" #include <QWebSocketServer> #include <QWebSocket> #include <QCloseEvent> #include <QMessageBox> #include <QSystemTrayIcon> #include <QDebug> #include "pdf.h" #include <QPrinter> #include <QPrinterInfo> #...
#include "controller.h" #include "../Common/named-var-set.h" #include "worlds/world.h" #include "config.h" #include "parameters-numeric.h" #include "app.h" #include "experiment.h" #include <algorithm> #include <math.h> vector<double>& Controller::evaluate(const State* s, const Action* a) { for (unsigned int output = ...
\ ****************************************************************************** \ \ DISC ELITE SHIP BLUEPRINTS FILE K \ \ Elite was written by Ian Bell and David Braben and is copyright Acornsoft 1984 \ \ The code on this site has been disassembled from the version released on Ian \ Bell's personal website at http://w...
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24)) ftyp_start: dd BE(ftyp_end - ftyp_start) dd "ftyp" db 0x61, 0x76, 0x69, 0x66 ; "major_brand(32)" ('avif') db 0x00, 0x00, 0x00, 0x00 ; "minor_version(32)" db 0x6D, 0x69, 0x66, 0x...
// // File: ekfkdjmomglnngln_xdotc.cpp // // Code generated for Simulink model 'fam_force_allocation_module'. // // Model version : 1.1142 // Simulink Coder version : 8.11 (R2016b) 25-Aug-2016 // C/C++ source code generated on : Mon Dec 4 08:34:01 2017 // #include "rtwtypes.h" #include "ekfkdj...
// Copyright (c) 2020 PaddlePaddle Authors. 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 required...
#include "device.h" device::device( QWidget *parent)//shared_ptr<ofApp> _ofAppPtr, : QWidget(parent) { ui.setupUi(this); ofSetLogLevel(OF_LOG_VERBOSE); ofLogToConsole(); // here we create a ofapp with an ofQtWindow // then we extract a pointer to QOpenGLWidget // and we insert it in the layout. // create a...
/******************************************************************************* * Copyright 2021-2022 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.apa...
; ; Include code from halx86 ; This is a cpp style symbolic link MMTIMER equ 1 include ..\..\halmps\i386\mpclksup.asm
naken_util - by Michael Kohn Joe Davisson Web: http://www.mikekohn.net/ Email: mike@mikekohn.net Version: October 30, 2017 Loaded hexfile E_W_ROUTINEs_32K_ver_1.0.hex from 0x00a0 to 0x0173 Type help for a list of commands. Addr Opcode Instruction Cycl...
; A092534: Expansion of (1-x+x^2)*(1+x^4)/((1-x)^2*(1-x^2)). ; Submitted by Jamie Morken(s3) ; 1,1,3,4,8,10,16,20,28,34,44,52,64,74,88,100,116,130,148,164,184,202,224,244,268,290,316,340,368,394,424,452,484,514,548,580,616,650,688,724,764,802,844,884,928,970,1016,1060,1108,1154,1204,1252,1304,1354,1408,1460,1516,1570,1...
; ; ZX 81 specific routines ; by Stefano Bodrato, Oct 2007 ; ; Copy a string to a BASIC variable ; ; int __CALLEE__ zx_setstr_callee(char variable, char *value); ; ; ; $Id: zx_setstr_callee.asm,v 1.5 2016-06-26 20:32:09 dom Exp $ ; SECTION code_clib PUBLIC zx_setstr_callee PUBLIC _zx_setstr_callee PUBLIC ASMDISP_ZX_SE...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1eed2, %r13 nop nop nop nop nop xor %r11, %r11 mov $0x6162636465666768, %rcx movq %rcx, %xmm2 movups %xmm2, (%r13) nop nop xor %rcx, %rcx lea addresses_A_ht+0xdcd2...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x5, %rsi lea addresses_A_ht+0x9815, %rdi nop nop nop nop and $8687, %r8 mov $112, %rcx rep movsb nop nop cmp %r9, %r9 lea addresses_WT_ht+0x11415, %r12 nop nop nop nop nop ...
TITLE Appending to a File (AppendFile.asm) ; This program appends text to an existing file. ; Last update: 1/30/02 INCLUDE Irvine32.inc .data buffer BYTE "This text is appended to an output file.",0dh,0ah bufSize = ($-buffer) errMsg BYTE "Cannot open file",0dh,0ah,0 filename BYTE "output.txt",0...
; A138996: First differences of Frobenius numbers for 5 successive numbers A138985. ; 1,1,1,7,2,2,2,12,3,3,3,17,4,4,4,22,5,5,5,27,6,6,6,32,7,7,7,37,8,8,8,42,9,9,9,47,10,10,10,52,11,11,11,57,12,12,12,62,13,13,13,67,14,14,14,72,15,15,15,77,16,16,16,82,17,17,17,87,18,18,18,92,19,19,19,97,20,20,20,102,21,21,21,107,22,22,22...
; ; ZX80 Stdio ; ; getk() Read key status ; ; Stefano Bodrato - Dec 2011 ; ; ; $Id: getk.asm,v 1.3 2015/01/19 01:33:22 pauloscustodio Exp $ ; PUBLIC getk EXTERN zx80_decode_keys .getk ;call restore81 ;call 699 ;KSCAN on ZX91 LD HL,$FFFF LD BC,$FEFE IN A,(C) OR $01 .LOOP OR $E0 LD D,A CPL CP $01 SBC A,A ...
bits 16 %include "source/memory.h" %include "source/text.h" THEME equ DARK_BLUE << 4 | WHITE org BOOT boot: jmp near start times 3 - ($ - boot) db 0 ; We set the whole BPB block to 0s because we will splice in the actual info ; from the disk image we are writing the boot sector to. bpb: .oemIdentifier: ...
SEC OUT A CLC OUT A SEI OUT A CLI OUT A LDA #$FF ADC #$01 OUT A CLV OUT A SED OUT A CLD OUT A
SECTION code_clib PUBLIC __krt_xor .__krt_xor defc NEEDxor = 1 INCLUDE "pixel_krt.inc"
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <iostream> #include <limits> #include <list> #inc...
; A135509: Nonnegative integers c such that there are nonnegative integers a and b that satisfy a^(1/2) + b^(1/2) = c^(1/2) and a^2 + b = c. ; 0,1,25,225,1156,4225,12321,30625,67600,136161,255025,450241,756900,1221025,1901641,2873025,4227136,6076225,8555625,11826721,16080100,21538881,28462225,37149025,47941776,61230625...
// 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 "net/tools/quic/platform/impl/quic_epoll_clock.h" #include "net/tools/quic/test_tools/mock_epoll_server.h" #include "testing/gmock/include/g...
; --------------------------------------------------------------------------- ; Object 30 - large green glass blocks (MZ) ; --------------------------------------------------------------------------- GlassBlock: moveq #0,d0 move.b obRoutine(a0),d0 move.w Glass_Index(pc,d0.w),d1 jsr Glass_Index(pc,d1.w) out_o...