text
stringlengths
1
1.05M
; =============================================================== ; Dec 2013 ; =============================================================== ; ; int obstack_grow(struct obstack *ob, void *data, size_t size) ; ; Grow the current object by appending size bytes read from ; address data. ; ; ===========================...
; A118011: Complement of the Connell sequence (A001614); a(n) = 4*n - A001614(n). ; 3,6,8,11,13,15,18,20,22,24,27,29,31,33,35,38,40,42,44,46,48,51,53,55,57,59,61,63,66,68,70,72,74,76,78,80,83,85,87,89,91,93,95,97,99,102,104,106,108,110,112,114,116,118,120,123,125,127,129,131,133,135,137,139 mov $1,$0 add $1,$0 mov $2,...
;;;;;;;;;;;;;;;; ; test interrupts ;;;;;;;;;;;;;;;; .org $8000 SEC ; set carry bit BRK ; issue software interrupt ;TODO: Mossy changed to add a padding byte after BRK, ;not sure if that should be reverted ;CLC ; clear carry bit - should be skipped! LDA #$01 ...
#ifdef _MSC_VER #pragma pack(2) #endif // (C) Copyright John Maddock 2000. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include "test.hpp" #include "check_integral_const...
// Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // remember: we can only use 2 registers A and D. // Put your code here. @2 M = 0 (LOOP) @1 M = M - 1 D = M @END D;JLT @0 D = M @2 M = M + D @LOOP ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1825, %rsi lea addresses_WC_ht+0x9565, %rdi nop nop add %rbx, %rbx mov $28, %rcx rep movsw nop nop nop nop sub %rax, %rax lea addresses_normal_ht+0x5425, %rcx nop nop and %r10, %r10 mo...
; A117573: Expansion of (1+2x^2)/((1-x)(1-x^2)(1-x^3)). ; 1,1,4,5,8,11,15,18,24,28,34,40,47,53,62,69,78,87,97,106,118,128,140,152,165,177,192,205,220,235,251,266,284,300,318,336,355,373,394,413,434,455,477,498,522,544,568,592,617,641,668 mov $2,$0 add $2,1 lpb $2 add $1,1 trn $2,2 mov $3,2 mov $4,$2 lpb $4 ...
#include "Random.hpp" #include <cstdlib> namespace Util { namespace Math { /** * @brief drand * @return Random double in [0.0, 1.0]. */ double drand() { return ((double)rand()) / ((double)RAND_MAX); } double drand(double min, double max) { return drand() * (max - min) + min; } int irand(int min, int max) { r...
;; ;; Copyright (c) 2012-2018, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and...
; A164540: a(n) = 4*a(n-1) + 4*a(n-2) for n > 1; a(0) = 1, a(1) = 14. ; 1,14,60,296,1424,6880,33216,160384,774400,3739136,18054144,87173120,420909056,2032328704,9812951040,47381118976,228776280064,1104629596160,5333623504896,25753012404224,124346543636480,600398224162816,2898979071197184,13997509181440000,6758595301054...
// Copyright (c) 2010 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 "media/ffmpeg/ffmpeg_common.h" namespace media { namespace mime_type { const char kFFmpegAudio[] = "audio/x-ffmpeg"; const char kFFmpegVid...
#include <ros/ros.h> #include <std_msgs/Float32.h> #include <sensor_msgs/LaserScan.h> #include <boost/asio.hpp> #include <camsense_driver/camsense_x1.h> CamsenseX1::CamsenseX1(const std::string& port, uint32_t baud_rate, float offset): port_(port), baud_rate_(baud_rate), offset_(offset), serial_(io_, port_) { shutt...
#include "../Exports.h" FARPROC OriginalFuncs_winhttp[65]; const char* Exports::ExportNames_winhttp[65] = { "Private1", "SvchostPushServiceGlobals", "WinHttpAddRequestHeaders", "WinHttpAutoProxySvcMain", "WinHttpCheckPlatform", "WinHttpCloseHandle", "WinHttpConnect", "WinHttpConnectionDeletePolicyEntries", "W...
; ; MSX specific routines ; ; GFX - a small graphics library ; Copyright (C) 2004 Rafael de Oliveira Jannone ; ; extern void vmerge(unsigned int addr, unsigned char value); ; ; set \a value at a given vram address \a addr, merging bits (OR) with the existing value ; ; $Id: msx_vmerge.asm,v 1.6 2016-06-16 19:30:25 dom...
/* * Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk. * Distributed under the terms of the MIT License. */ #include <debugger.h> #include <int.h> #include <thread.h> #include <arch/user_debugger.h> void arch_clear_team_debug_info(struct arch_team_debug_info *info) { } void arch_destroy_team_debug_in...
;; ;; Copyright (c) 2012-2020, 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...
/* * 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 "SkBitmapCache.h" #include "SkMutex.h" #include "SkPixelRef.h" #include "SkTraceEvent.h" //#define SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT //#define SK_TRACE...
/** * Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License. * Please see the LICENSE included with this distribution for details. */ #ifndef _TITANIUMWINDOWS_NETWORKMODULE_HPP_ #define _TITANIUMWINDOWS_NETWORKMODULE_HPP_ #include "TitaniumW...
; ********* Sweet32 SoC - UART echo example ; ********* Author: Valentin Angelovski ; ********* Created: 25/08/2014 ; ; This program sends TWO characters echoed for every character received ; via Sweet32's UART. Sourcecode provided 'as-is'. Use at your own risk! LDD R1,#0x70000000 ; Point to UART address LDD R6,#0x...
/* File: Null.cpp Sample: Null Author: CS349 Course Description: A test to verify if the XWindow system is working. The sample provided below is designed to show how to perform a series of basic tasks using the XGameLib library. The following code is based on demo code provided in the CS349 course. The code h...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r14 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0xd8a8, %rsi lea addresses_UC_ht+0x1e8a8, %rdi nop nop nop nop and $3098, %r14 mov $123, %rcx rep movsq nop nop xor $47154, %rdi lea addresses_WC_ht+0x16028, %rsi lea addresse...
PUBLIC aplib_depack EXTERN aPLibMemory_bits EXTERN aPLibMemory_byte EXTERN aPLibMemory_LWM EXTERN aPLibMemory_R0 ;============================================================== ; aplib_depack(unsigned char *src, unsigned char *dest) ;============================================================== ; Uncompresses ...
; void __CALLEE__ sp1_SetPrintPos_callee(struct sp1_pss *ps, uchar row, uchar col) ; 01.2008 aralbrec, Sprite Pack v3.0 ; ts2068 hi-res version SECTION code_sprite_sp1 PUBLIC sp1_SetPrintPos_callee PUBLIC ASMDISP_SP1_SETPRINTPOS_CALLEE EXTERN sp1_GetUpdateStruct_callee EXTERN ASMDISP_SP1_GETUPDATESTRUCT_CALLEE .sp1_...
.file "a00.c" .section ".text" .align 4 .align 4 .globl main .type main, #function .proc 04 main: save %sp, -104, %sp clr [%fp+-4] ld [%fp+-4], %g1 inc 0x42, %g1 st %g1, [%fp+-4] ld [%fp+-4], %g1 mov %g1, %i0 restore retl nop .size main, .-main # ---------------------- .ident "GCC: (GNU)...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: utilsGroup.asm AUTHOR: Chris Boyke METHODS: Name Description ---- ----------- FUNCTIONS: Scope Name Description ----- ---- ------...
.section __TEXT,__text,regular,pure_instructions .build_version macos, 10, 15 sdk_version 10, 15, 4 .globl _main .p2align 4, 0x90 _main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq ...
; A208506: p^(p+1) + (p+1)^p, where p = prime(n). ; Submitted by Christian Krause ; 17,145,23401,7861953,3881436747409,4731091158953433,16248996011806421522977,42832853457545958193355601,535823088031930481975544151644865,81325936178163422902293018227199467668020601,574816324219011030910795084923222601801634659329,41885...
class Solution { public: void swapChar(char& a, char& b){ char temp = a; a = b; b = temp; } void reverseString(vector<char>& s) { int i = 0; int j = s.size() - 1; while(i < j){ swapChar(s[i], s[j]); i++; ...
; A115565: a(n) = 5*n^4 - 10*n^3 + 20*n^2 - 15*n + 11. ; 11,61,281,911,2311,4961,9461,16531,27011,41861,62161,89111,124031,168361,223661,291611,374011,472781,589961,727711,888311,1074161,1287781,1531811,1809011,2122261,2474561,2869031,3308911,3797561,4338461,4935211,5591531,6311261,7098361,7956911,8891111,9905281,11003...
; A067407: Seventh column of triangle A067402. ; Submitted by Jon Maiga ; 1,13,637,31213,1529437,74942413,3672178237,179936733613,8816899947037,432028097404813,21169376772835837,1037299461868956013,50827673631578844637,2490556007947363387213,122037244389420805973437 mul $0,2 mov $2,1 lpb $0 sub $0,1 mov $3,$2 ad...
;------------------------------------------------------------------------------- ; sys_core.asm ; ; Copyright (C) 2009-2016 Texas Instruments Incorporated - www.ti.com ; ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are m...
/* * Copyright (C) 2013 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...
/* * Copyright 2020 Tier IV, Inc. 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 by appli...
;*** ;* $Workfile: saveport.asm $ ;* $Revision: 1.0 $ ;* $Author: Dave Sewell $ ;* $Date: 05 May 1989 16:34:22 $ ;*** INCLUDE model.inc INCLUDE fastlynx.inc .DATA .CODE text EXTRN SaveSerial:NEAR EXTRN ...
; A046631: Number of cubic residues mod 3^n. ; 1,3,3,7,21,57,169,507,1515,4543,13629,40881,122641,367923,1103763,3311287,9933861,29801577,89404729,268214187,804642555,2413927663,7241782989,21725348961,65176046881,195528140643,586584421923 lpb $0 mov $2,$0 trn $0,3 trn $2,2 seq $2,199114 ; 11*3^n+1. add $1,$2...
/** * File : src/freenect_grabber.cc * Author : Siddharth J. Singh <j.singh.logan@gmail.com> * Date : 10.08.2017 * Last Modified Date: 14.08.2017 * Last Modified By : Siddharth J. Singh <j.singh.logan@gmail.com> */ /** * freenect_grabber.cc * Copyright (c) 2017 Siddharth J....
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : stringconcrete.asm ; Purpose : Concrete strings into permanent storage. ; Date : 19th June 2019 ; Author : paul@...
/* scheme/is_sob_integer.asm * Take pointers to a Scheme object, and places in R0 either 0 or 1 * (long, not Scheme integer objects or Scheme boolean objets), * depending on whether the argument is integer. * * Programmer: Mayer Goldberg, 2010 */ IS_SOB_INTEGER: PUSH(FP); MOV(FP, SP); MOV(R0, FPARG(0)); ...
;/* ; Copyright Oliver Kowalke 2009. ; Distributed under the Boost Software License, Version 1.0. ; (See accompanying file LICENSE_1_0.txt or copy at ; http://www.boost.org/LICENSE_1_0.txt) ;*/ ; ******************************************************* ; * ...
extern gdt_ptr PROTECTED_MODE_CODE_SELECTOR: equ 0x08 PROTECTED_MODE_DATA_SELECTOR: equ 0x10 REAL_MODE_CODE_SELECTOR: equ 0x18 REAL_MODE_DATA_SELECTOR: equ 0x20 PROTECTED_MODE_BIT: equ 1 SIZEOF_REGISTER_STATE: equ 40 section .real_code ; NOTE: this function assumes all pointers are located within the first 64K of...
; A232098: a(n) is the largest m such that m! divides n^2; a(n) = A055881(n^2). ; 1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,6,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2 add $0,1 pow $0,2 sub $0,1 seq $0,558...
copyright zengfr site:http://github.com/zengfr/romhack 007C8C clr.w ($5a,A6) [1p+ E, container+ E] 007C90 tst.b ($58,A6) 00A2C6 dbra D0, $a2c0 00A33C clr.w ($5a,A4) 00A340 clr.w ($66,A4) 00DF72 bra $c516 [1p+5A] copyright zengfr site:http://github.com/zengfr/romhack
; A055116: Base-6 complement of n (write n in base 6, then replace each digit with its base-6 negative). ; Submitted by Christian Krause ; 0,5,4,3,2,1,30,35,34,33,32,31,24,29,28,27,26,25,18,23,22,21,20,19,12,17,16,15,14,13,6,11,10,9,8,7,180,185,184,183,182,181,210,215,214,213,212,211,204,209,208,207,206,205,198,203,202...
; A298033: Coordination sequence of the Dual(3.4.6.4) tiling with respect to a hexavalent node. ; 1,6,12,24,30,42,48,60,66,78,84,96,102,114,120,132,138,150,156,168,174,186,192,204,210,222,228,240,246,258,264,276,282,294,300,312,318,330,336,348,354,366,372,384,390,402,408,420,426,438,444,456,462,474,480,492,498,510,516,...
/** * eZmax API Definition (Full) * This API expose all the functionnalities for the eZmax and eZsign applications. * * The version of the OpenAPI document: 1.1.7 * Contact: support-api@ezmax.ca * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-gener...
/* * Copyright (c) 2012 The WebRTC 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 contribut...
%define LoadImageEx (0x4065c0 - 0x116000) %define RegularExit_OslLoadDrivers (0x405b99 - 0x116000) %define SEGMENT_START (0x4c3000 - 0x116000) BITS 64 ; Y U NO ALL THE BITS? ; TO CALL TO BOOTY, you want JUMP 0x4c301b ;) SECTION .booty driverPath db "\SystemRoot\zomgdabest.sy...
MODULE get_16bit_ap_parameter SECTION code_clib PUBLIC get_16bit_ap_parameter EXTERN __printf_issccz80 ; Change the arguments pointer, the delta is always 2, but is it +/-ve? ; Entry: de = ap ; Return: de = new ap ; hl = value ; Uses: ix get_16bit_ap_parameter: IF __CPU_GBZ80__ ld a,(de) ld l,a inc ...
// Game_Music_Emu 0.6.0. http://www.slack.net/~ant/ #include "M3u_Playlist.h" #include "Music_Emu.h" #include <string.h> /* Copyright (C) 2006 Shay Green. This module 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 ...
; A312892: Coordination sequence Gal.5.50.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Simon Strandgaard ; 1,4,9,13,17,21,25,29,33,38,42,46,51,55,59,63,67,71,75,80,84,88,93,97,101,105,109,113,117,122,126,130,135,139...
; A070598: n^5 mod 13. ; 0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1,6,9,10,5,2,11,8,3,4,7,12,0,1 pow $0,5 mod $0,13
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.IDisposable #include "System...
Name: zel_move.asm Type: file Size: 26568 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: DEAAFA7BF364888045CAC75FC0B5ABB57787154B Description: null
; A013656: n*(9*n-2). ; 0,7,32,75,136,215,312,427,560,711,880,1067,1272,1495,1736,1995,2272,2567,2880,3211,3560,3927,4312,4715,5136,5575,6032,6507,7000,7511,8040,8587,9152,9735,10336,10955,11592,12247,12920,13611,14320,15047,15792,16555 mov $1,$0 mul $0,9 sub $0,2 mul $1,$0
; A145978: Expansion of 1/(1-x*(1-8*x)). ; 1,1,-7,-15,41,161,-167,-1455,-119,11521,12473,-79695,-179479,458081,1893913,-1770735,-16922039,-2756159,132620153,154669425,-906291799,-2143647199,5106687193,22255864785,-18597632759,-196644551039,-47863488967,1525292919345,1908200831081,-10294142523679,-25559749172327,5679339...
// <PhasedSingleCycleUniqueEvent.h> -*- C++ -*- /** * \file PhasedSingleCycleUniqueEvent.h * * \brief File that defines the PhasedSingleCycleUniqueEvent class */ #ifndef __PHASED_SINGLE_CYCLE_UNIQUE_EVENT_H__ #define __PHASED_SINGLE_CYCLE_UNIQUE_EVENT_H__ #include <array> #include <memory> #include <string> ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x40aa, %rsi lea addresses_D_ht+0x14aa, %rdi sub %r13, %r13 mov $89, %rcx rep movsq nop inc %rax lea addresses_WT_ht+0x1b6aa, %rsi lea addresses_WC_ht+0xd94a, %rdi nop add %r9, ...
/* Copyright (C) 2001, 2002 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. In addition to t...
;********************************************************** ; This program to receive a character from the PC and return (send) next character to PC again. ;********************************************************** include "p16f877A.inc" __CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_OFF & _XT_OSC ;*...
############################################################################### # 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...
bits 64 %macro isr_entry 0 push rax push rbx push rcx push rdx push rsi push rdi push rbp push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 cld %endmacro %macro isr_exit 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rbp pop rdi pop rsi pop rdx pop...
; int obstack_vprintf(struct obstack *obstack, const char *format, void *arg) SECTION code_stdio PUBLIC _obstack_vprintf EXTERN asm_obstack_vprintf _obstack_vprintf: pop af pop hl pop de pop bc push bc push de push hl push af jp asm_obstack_vprintf
copyright zengfr site:http://github.com/zengfr/romhack 001EB2 btst #$4, D5 [123p+ 8B] 001EBC btst #$5, D5 [123p+ 8B] 001EC6 rts [123p+ 8B] 007970 btst #$5, ($a2,A0) [123p+ 8B] 007976 beq $7986 [123p+ A2] 007986 jsr $1e9a.w [123p+ 8B] 012382 rts [123p+ 8B, enemy+8B] 0123B6 blt $123cc [123p+...
; ; ; Generic graphics routines ; Self modifying code version ; ; Stefano Bodrato - 4/1/2007 ; ; ; Sprite Rendering Routine ; original code by Patrick Davidson (TI 85) ; ; ; $Id: putsprite_smc.asm,v 1.1 2007/01/04 17:41:34 stefano Exp $ ; XLIB putsprite LIB pixel XREF pixmode ;...
#include <gtest/gtest.h> // #include <image_transport/image_transport.h> // #include <image_transport/subscriber_filter.h> // #include <message_filters/sync_policies/approximate_time.h> #include <message_filters/subscriber.h> #include <message_filters/time_synchronizer.h> #include <ros/ros.h> #include <sensor_msgs/Imag...
; SP1DrawUpdateStruct ; 02.2008 aralbrec, Sprite Pack v3.0 ; zx81 hi-res version XLIB SP1DrawUpdateStruct XDEF SP1RETSPRDRAW XREF SP1V_PIXELBUFFER, SP1V_TILEARRAY ; Draw the tile described by the indicated update struct ; to screen -- not meant to be called directly, just a ; code fragment called from other functions...
; A332026: Savannah problem: number of new possibilities after n weeks. ; 3,4,3,5,4,4,6,5,5,5,7,6,6,6,6,8,7,7,7,7,7,9,8,8,8,8,8,8,10,9,9,9,9,9,9,9,11,10,10,10,10,10,10,10,10,12,11,11,11,11,11,11,11,11,11,13,12,12,12,12,12,12,12,12,12 lpb $0 add $1,1 sub $0,$1 lpe min $0,1 sub $1,$0 add $1,3 mov $0,$1
test: macro ; Test the rpn system, as well as the linker... dl \1 + zero ; ...as well as the constexpr system result\@ equ \1 printt "\1 = {result\@}\n" endm section "test", ROM0[0] test 1 << 1 test 1 << 32 test 1 << 9001 test -1 << 1 test -1 << 32 test -1 << -9001 test -1 >> 1 test -1 >> 32 test -1 >>...
// memfile.dat // david_harris@hmc.edu and sarah_harris@hmc.edu 20 December 2013 // Test ARM processor // ADD, SUB, AND, ORR, LDR, STR, B // If successful, it should write the value 7 to address 100 // MAIN SUB R15, R0, R15 ; R0 = 0 1110 000 0010 0 1111 0000 0000 0000 1111 E04F000F...
; MPUBLICS.ASM ; Written by Richard A. Burgess. ; ; This code is released to the public domain. ; "Share and enjoy....." ;) ; ;These are ASSEMBER publics defined so you can use ;CALL FWORD PTR _WaitMsg in your assembly language ;programs with MMURTL. FAR calls are called indirectly ;to the ...
// 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/extensions/extension_garbage_collector.h" #include <stddef.h> #include <utility> #include "base/bind.h" #include "base/files/fi...
; A192760: Coefficient of x in the reduction by x^2->x+1 of the polynomial p(n,x) defined below in Comments. ; 0,1,4,9,18,33,58,99,166,275,452,739,1204,1957,3176,5149,8342,13509,21870,35399,57290,92711,150024,242759,392808,635593,1028428,1664049,2692506,4356585,7049122,11405739,18454894,29860667,48315596,78176299 mov ...
#ifndef DECODER_BCH_GENIUS #define DECODER_BCH_GENIUS #include <vector> #include "Module/Encoder/Encoder.hpp" #include "Module/Decoder/BCH/Decoder_BCH.hpp" namespace aff3ct { namespace module { template <typename B = int, typename R = float> class Decoder_BCH_genius : public Decoder_BCH<B,R> { protected: Encoder<B>...
; A024924: a(n) = Sum_{k=1..n} prime(k)*floor(n/prime(k)). ; 0,0,2,5,7,12,17,24,26,29,36,47,52,65,74,82,84,101,106,125,132,142,155,178,183,188,203,206,215,244,254,285,287,301,320,332,337,374,395,411,418,459,471,514,527,535,560,607,612,619,626,646,661,714,719,735,744,766,797,856,866,927,960,970,972,990,1006,1073,1092,11...
;name : pipedemo4.asm ; ;build : nasm -felf64 pipedemo4.asm z -o pipedemo4.o ; ld -s -melf_x86_64 -o pipedemo4 pipedemo4.o ; ;description : A demonstration on pipes based on an example from Beej's Guide to IPC ; Here the program opens the write end of the pipe, writes da...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1c66b, %r10 nop and %rbp, %rbp mov (%r10), %r12d nop xor %rbp, %rbp lea addresses_A_ht+0x1182b, %rsi lea addresses_A_ht+0xc06b, %rdi nop nop nop nop and %r15, %r15 mov $25, ...
db DEX_CORSOLA ; pokedex id db 55 ; base hp db 55 ; base attack db 85 ; base defense db 35 ; base speed db 75 ; base special db WATER ; species type 1 db STEEL ; species type 2 db 60 ; catch rate db 99 ; base exp yield INCBIN "pic/ymon/corsola.pic",0,1 ; sprite dimensions dw CorsolaPicFront dw CorsolaPicB...
; A154576: a(n) = 2*n^2 + 14*n + 5. ; 21,41,65,93,125,161,201,245,293,345,401,461,525,593,665,741,821,905,993,1085,1181,1281,1385,1493,1605,1721,1841,1965,2093,2225,2361,2501,2645,2793,2945,3101,3261,3425,3593,3765,3941,4121,4305,4493,4685,4881,5081,5285,5493,5705,5921,6141,6365,6593,6825,7061,7301,7545,7793,8045,8301,...
.export _lvl1 _lvl1: .byte 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21 .byte 21, 21, 22, 21, 21, 21, 21, 21, 20, 21, 21, 21, 21, 21, 21, 21 .byte 21, 21, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 21, 21, 21 .byte 21, 21, 72, 81, 80, 144, 144, 144, 144, 144, 80, 81, 72, 21, 21, 21 .byte 21, 21, 72...
setrepeat 2 frame 0, 07 frame 1, 07 frame 2, 07 frame 1, 07 dorepeat 1 endanim
include xlibproc.inc include Wintab.inc PROC_TEMPLATE WTSet, 4, Wintab, -, 62
/**************************************************************************************************************************************************** * Copyright 2019 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 39 card_no equ "039" card_sub equ "Mod Card 039" card_sub_x ...
; A276229: a(n+3) = -a(n+2) - 2*a(n+1) + a(n) with a(0)=0, a(1)=0, a(2)=1. ; Submitted by Jon Maiga ; 0,0,1,-1,-1,4,-3,-6,16,-7,-31,61,-6,-147,220,68,-655,739,639,-2772,2233,3950,-11188,5521,20805,-43035,6946,99929,-156856,-36056,449697,-534441,-401009,1919588,-1652011,-2588174,7811784,-4287447,-13924295,30310973 lpb ...
/* file: covariance_dense_default_batch_fpt_cpu.cpp */ /******************************************************************************* * Copyright 2014-2019 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...
%include 'functions.asm' SECTION .data msg1 db ' remainder ' SECTION .text global _start _start: mov eax, 90 mov ebx, 9 div ebx call iprint mov eax, msg1 call sprint mov eax, edx call iprintLF call quit
;; 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. #include "AsmMacros.h" TEXTAREA #define STACKSIZEOF_ExInfo ((SIZEOF__ExInfo + 15)&(~15)) ;; -------------...
;; THIS PROGRAMM DEMOSTRATES A TRAIN ;; WHICH GOES LEFT OR RIGHT.IN ORDER ;; TO STOP THE TRAIN WE MUST PRESS ;; ONE TIME THE INTRPT BUTTON ;; TO CHANGE THE DIRECTION WE PRESS ;; THE INTRPT BUTTON TWICE ;; FOR ALL THESE TO HAPPEN THE RIGHT ;; SWITCH MUST BE ON OTHERWISE THE ;; INTRPT WILL HAVE NO EFFECT ON ;; THE TRAINS...
//------------------------------------------------------------------------------ /* This file is part of MUSO: https://github.com/MUSO/MUSO Copyright (c) 2012-2014 MUSO Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, pr...
tsx lda {m1} sta STACK_BASE+{c1},x lda {m1}+1 sta STACK_BASE+{c1}+1,x lda {m1}+2 sta STACK_BASE+{c1}+2,x lda {m1}+3 sta STACK_BASE+{c1}+3,x
; ;================================================================================================== ; SC130 STANDARD CONFIGURATION ;================================================================================================== ; ; THE COMPLETE SET OF DEFAULT CONFIGURATION SETTINGS FOR THIS PLATFORM ARE FOU...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <cassert> #include <memory> #include <typeinfo> #include <utility> using namespace std; struct Dummy { constexpr int test() const { return 10; } }; constexpr bool test_P2273R3_...
; ; jcgryext.asm - grayscale colorspace conversion (64-bit SSE2) ; ; Copyright (C) 2011, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled ...
; A346152: a(n) is the least prime divisor p_j of n such that if n = Product_{i=1..k} p_i^e_i and p_1 < p_2 < ... < p_k, then Product_{i=1..j-1} p_i^e_i <= sqrt(n) < Product_{i=j..k} p_i^e_i. a(1) = 1. ; Submitted by Christian Krause ; 1,2,3,2,5,3,7,2,3,5,11,2,13,7,5,2,17,3,19,5,7,11,23,2,5,13,3,7,29,3,31,2,11,17,7,3,3...
// (c) Copyright 1995-2021 Xilinx, Inc. All rights reserved. // // This file contains confidential and proprietary information // of Xilinx, Inc. and is protected under U.S. and // international copyright and other intellectual property // laws. // // DISCLAIMER // This disclaimer is not a license and does not grant ...
.text .align 2 .thumb .thumb_func .global newmovesetstyle2 main: ldrb r1, [r0, #0x2] mov r2, #0xFF cmp r1, r2 beq exit2 mov r9, r2 mov r3, #0x0 loop: lsl r0, r3, #0x1 add r0, r0, r3 ldr r1, movesettable add r1, r1, r6 ldr r1, [r1, #0x0] add r7, r0, r1 ldrb r0, [r7, #0x2] mov r4, r10 cmp r0, r4 bgt exit2 ...
_Interrupt: MOVWF R15+0 SWAPF STATUS+0, 0 CLRF STATUS+0 MOVWF ___saveSTATUS+0 MOVF PCLATH+0, 0 MOVWF ___savePCLATH+0 CLRF PCLATH+0 ;Remote Controlled motor.c,26 :: void Interrupt(){ //External interrupt occured ;Remote Controlled motor.c,28 :: ...
; A025991: Expansion of 1/((1-2x)(1-5x)(1-6x)(1-12x)). ; Submitted by Jon Maiga ; 1,25,417,5909,77369,972381,11958289,145367893,1756276137,21149737037,254259660161,3053974195077,36665246878105,440090336260093,5281738449973233,63384838751399861,760642183440232073 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; Unsigned divide of r1 by r0: returns quotie...