text
stringlengths
1
1.05M
; A117899: Expansion of (1+2x+5x^2+3x^3+2x^4)/(1-x^3)^2. ; 1,2,5,5,6,10,9,10,15,13,14,20,17,18,25,21,22,30,25,26,35,29,30,40,33,34,45,37,38,50,41,42,55,45,46,60,49,50,65,53,54,70,57,58,75,61,62,80,65,66,85,69,70,90,73,74,95,77,78,100,81,82,105,85,86,110,89,90,115,93 mov $1,1 mov $2,2 add $2,$0 mov $3,$0 mod $0,3 sub $...
/* char/is_char_white_space.asm * Returns 1 if argument is a whitespace char, 0 otherwise. * * Programmer: Mayer Goldberg, 2010 */ IS_CHAR_WHITE_SPACE: MOV(R0, STARG(0)); CMP(R0, IMM(' ')); JUMP_LE(L_IS_CHAR_WHITE_SPACE_T); MOV(R0, IMM(0)); RETURN; L_IS_CHAR_WHITE_SPACE_T: MOV(R0, IMM(1)); RETURN;
; A082515: a(n)=A000720(n)+A000010(n). ; Submitted by Jamie Morken(w1) ; 1,2,4,4,7,5,10,8,10,8,15,9,18,12,14,14,23,13,26,16,20,18,31,17,29,21,27,21,38,18,41,27,31,27,35,23,48,30,36,28,53,25,56,34,38,36,61,31,57,35,47,39,68,34,56,40,52,44,75,33,78,48,54,50,66,38,85,51,63,43,90,44 mov $2,$0 seq $0,10 ; Euler totient fun...
Name: ys_w36.asm Type: file Size: 15463 Last-Modified: '2016-05-13T04:50:37Z' SHA-1: 9E58D954C226CB9E100813C094462D8453266B52 Description: null
; atTINY 13 - Board without 7seg display .equ PORTB, 0x18 .equ DDRB, 0x17 .equ PINB, 0x16 .equ TCCR0B, 0x33 .equ TCNT0, 0x32 Z = 30 ZH = 31 ZL = 30 Y = 28 YH = 29 YL = 28 .section .text ldi r16, 0b00010000 ; Pin 4 is output out DDRB, r16 Start: ldi ZL, lo8(TONE) ldi ZH, hi8(TONE) ldi YL, lo8(L...
#ifndef UtGunnsThermalHeater_EXISTS #define UtGunnsThermalHeater_EXISTS //////////////////////////////////////////////////////////////////////////////////////////////////// /// @defgroup UT_GUNNS_THERMAL_HEATER GunnsThermalHeater Unit Test /// @ingroup UT_GUNNS /// /// @copyright Copyright 2019 United States Govern...
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "math/mMatrix.h" #include "math/mSphere.h" const Box3F Box3F::Invalid( F32_MAX, F32_MAX, F32_MAX, -F32_MAX, -F32_MAX, -F32_MAX ); const Box3F Box3F::Max( -F32_MAX, -F32_MAX, -F32_MAX, F32_M...
; A157958: a(n) = 242*n + 1. ; 243,485,727,969,1211,1453,1695,1937,2179,2421,2663,2905,3147,3389,3631,3873,4115,4357,4599,4841,5083,5325,5567,5809,6051,6293,6535,6777,7019,7261,7503,7745,7987,8229,8471,8713,8955,9197,9439,9681,9923,10165,10407,10649,10891,11133,11375,11617,11859,12101,12343,12585,12827,13069,13311,1355...
//===-- HardwareLoops.cpp - Target Independent Hardware Loops --*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------...
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
// ============================================================================= // Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Permission is hereby grante...
; A073775: Polynomial (1/3)*n^3 + (9/2)*n^2 + (85/6)*n - 2. ; -2,17,47,90,148,223,317,432,570,733,923,1142,1392,1675,1993,2348,2742,3177,3655,4178,4748,5367,6037,6760,7538,8373,9267,10222,11240,12323,13473,14692,15982,17345,18783,20298,21892,23567,25325,27168,29098,31117,33227,35430,37728,40123,42617,45212,47910 mov $...
; ; 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 2017-01-02 21:51:24 aralbrec Exp $ ...
DIM EQU 8 .model small .stack .data num db 25 res db 0 .code .startup mov cx,DIM ciclo: rol num,1 adc res,0 loop ciclo .exit end
/*============================================================================= Copyright (c) 2002 2004 2006 Joel de Guzman Copyright (c) 2004 Eric Niebler Copyright (c) 2005 Thomas Guest http://spirit.sourceforge.net/ Use, modification and distribution is subject to the Boost Software License,...
Total: 792.30MB ROUTINE ======================== main.(*Graph).buildAdjList 351.14MB 351.14MB (flat, cum) 44.32% of Total . . 10ca200: MOVQ GS:0x30, CX ;graph.go:101 . . 10ca209: LEAQ -0x60(SP), AX . . 10ca20e: CMPQ 0x10(CX), AX ...
; Ejercicio 18 del TP 2. ; Obtiene el campo E de un numero IEEE representado a partir de . aseg org 14A0h start: ld A,(1500h) add A ; multiplico por 2 para desplazar ld B,A ; guardo A ld A,(1500h) add 80h jp NC,sale ; obtengo el 8vo bit del E inc B sale: ld A,B rst ...
lua pass1 pass = 0 endlua lua allpass pass = pass + 1 sj.parse_code("DISPLAY \"lua pass: \", /D, "..pass) if sj.file_exists("lua_file_exists.asm") then sj.parse_line(" DISPLAY \"lua_file_exists.asm does exist.\"") ; end if not sj.file_exists("bogu...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) New Deal 1999 -- All Rights Reserved PROJECT: GeoSafari FILE: safariBitmap.asm AUTHOR: Gene Anderson REVISION HISTORY: Name Date Description ---- ---- ----------- Gene 4/5/99 Initial revision DESCRIP...
; A266339: G.f. = b(2)^2*b(4)/(x^5+x^4-x^3-x^2-x+1), where b(k) = (1-x^k)/(1-x). ; Submitted by Jamie Morken(s3) ; 1,4,9,18,33,56,94,156,255,416,677,1098,1780,2884,4669,7558,12233,19796,32034,51836,83875,135716,219597,355318,574920,930244,1505169,2435418,3940593,6376016,10316614,16692636,27009255,43701896,70711157,1144...
#import "../common/common.asm" #import "../common/cia1_regs.asm" #import "../common/cia2_regs.asm" #import "../common/vic_regs.asm" #import "../common/key_consts.asm" #import "defs.asm" * = $0801 BasicUpstart(main) * = $C000 #import "main.asm" #import "init_clear_screen.asm" #import "blit_viewport.asm" #import "k...
; A040549: Continued fraction for sqrt(573). ; 23,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14 seq $0,40699 ; Continued fraction for sqrt(726). seq $0,47543 ; Numbers that are con...
; A275161: Number of sides of a polygon formed by tiling n squares in a spiral. ; Submitted by Jamie Morken(s3) ; 4,4,6,4,6,4,6,6,4,6,6,4,6,6,6,4,6,6,6,4,6,6,6,6,4,6,6,6,6,4,6,6,6,6,6,4,6,6,6,6,6,4,6,6,6,6,6,6,4,6,6,6,6,6,6,4,6,6,6,6,6,6,6,4,6,6,6,6,6,6,6,4,6,6,6,6,6,6,6,6,4,6,6,6,6,6,6 seq $0,122196 ; Fractal sequenc...
; A229504: Number of defective 3-colorings of an n X 2 0..2 array connected diagonally and antidiagonally with exactly one mistake, and colors introduced in row-major 0..2 order. ; 0,6,48,288,1536,7680,36864,172032,786432,3538944,15728640,69206016,301989888,1308622848,5637144576,24159191040,103079215104,438086664192,18...
; Input: dl - drive to load from, al - ammount of sectors to load, bx - buffer address diskLoad: pusha .reset: push ax xor ax, ax int 0x13 .load: xor ax, ax mov es, ax pop ax popa pusha mov ah, 0x02 ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xacea, %rdx nop add $50866, %rdi movb (%rdx), %r15b nop nop nop xor %rsi, %rsi lea addresses_D_ht+0x5c3a, %rsi lea addresses_D_ht+0x108da, %rdi nop nop nop nop and %rax, %rax mov $65, %...
; A023455: n-13. ; -13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,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 sub $0,13
SaffronPokecenter2FBeta_MapScripts: db 0 ; scene scripts db 0 ; callbacks SaffronPokecenter2FBeta_MapEvents: db 0, 0 ; filler db 1 ; warp events warp_event 0, 7, SAFFRON_POKECENTER_1F, 3 db 0 ; coord events db 0 ; bg events db 0 ; object events
; A011748: Expansion of (1 + x^2 + x^4)/(1 + x + x^2 + x^4 + x^5) mod 2. ; 1,1,1,0,1,1,0,0,1,1,1,0,0,0,0,1,1,0,1,0,1,0,0,1,0,0,0,1,0,1,1,1,1,1,0,1,1,0,0,1,1,1,0,0,0,0,1,1,0,1,0,1,0,0,1,0,0,0,1,0,1,1,1,1,1,0,1,1,0,0,1,1,1,0,0,0,0,1,1,0,1 mul $0,30 seq $0,11751 ; Expansion of (1 + x^4)/(1 + x + x^3 + x^4 + x^5) mod 2.
#include <Hazel.h> class Sandbox : public Hazel::Application { public: Sandbox() { } ~Sandbox() { } }; Hazel::Application* Hazel::CreateApplication() { return new Sandbox(); }
PewterPokecenter_Object: db $0 ; border block def_warps warp 3, 7, 6, LAST_MAP warp 4, 7, 6, LAST_MAP def_signs def_objects object SPRITE_NURSE, 3, 1, STAY, DOWN, 1 ; person object SPRITE_GENTLEMAN, 11, 7, STAY, LEFT, 2 ; person object SPRITE_FAIRY, 1, 3, STAY, DOWN, 3 ; person object SPRITE_LINK_RECEP...
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "StdAfx.h" #include <Editor/EditorBlastFamilyComponent.h> #include <AzCore/Serialization/...
; A159956: Period 16 : 0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2 . ; 0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2,3,1,2,3,0,2,3,0,1,3,0,1,2,0,1,2...
; A248178: Least k such that r - sum{1/F(n), h = 1..k} < 1/2^(n+1), where F(n) = A000045 (Fibonacci numbers) and r = sum{1/F(n), h = 1..infinity}. ; 6,7,9,10,12,13,15,16,18,19,20,22,23,25,26,28,29,31,32,33,35,36,38,39,41,42,44,45,46,48,49,51,52,54,55,56,58,59,61,62,64,65,67,68,69,71,72,74,75,77,78,80,81,82,84,85,87,88,...
INCLUDE "config_z80_private.inc" SECTION code_driver SECTION code_driver_terminal_input PUBLIC term_01_input_char_iterm_msg_getc term_01_input_char_iterm_msg_getc: ; enter : ix = & FDSTRUCT.JP ; ; exit : a = keyboard char after character set translation ; carry set on error, hl = 0 (st...
#include "Platform.inc" #include "FarCalls.inc" #include "Arithmetic32.inc" #include "Lcd.inc" #include "../../LcdStates.inc" #include "../../PollAfterLcdMock.inc" #include "TestFixture.inc" radix decimal NUMBER_OF_TICKS_FOR_40MS_PLUS_TEN_PERCENT equ 344 NUMBER_OF_TICKS equ NUMBER_OF_TICKS_FOR_40MS_PLUS_TEN_P...
; A092187: A092186(n)/2. ; Submitted by Christian Krause ; 1,1,4,6,36,72,576,1440,14400,43200,518400,1814400,25401600,101606400,1625702400,7315660800,131681894400,658409472000,13168189440000,72425041920000,1593350922240000,9560105533440000,229442532802560000,1491376463216640000,38775788043632640000 mov $1,$0 gcd $0,2 ...
; SGB Opcodes parameter MLT_REQ_PAR: ; Params for Multiplayer request MASK_EN_FREEZE_PAR: ; Params for freezing screen db $01 CHR_TRN_PAR: ; Params for character transfer PCT_TRN_PAR: ; Params for color data PAL_TRN_PAR: ; Params for palette data MASK_EN_CANCEL_PAR: ; Params for unfreezing ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r8 push %r9 push %rbx push %rdi lea addresses_UC_ht+0x10e5d, %rbx nop nop lfence and $0xffffffffffffffc0, %rbx movaps (%rbx), %xmm1 vpextrq $1, %xmm1, %r8 nop nop nop cmp %r14, %r14 lea addresses_A_ht+0x1ee5d, %rdi add %r9, %r9 mov (%rdi),...
;Testname=test; Arguments=-fbin -oprefix66.bin; Files=stdout stderr prefix66.bin BITS 16 cmp ax, 1 o16 cmp ax, 1 o32 cmp ax, 1 cmp eax, 1 o16 cmp eax, 1 o32 cmp eax, 1 BITS 32 cmp ax, 1 o16 cmp ax, 1 o32 cmp ax, 1 cmp eax, 1 o16 cmp eax, 1 o32 cmp eax, 1 BITS 64 cmp ax, 1 o16 cmp ax, 1 o32 cmp ax, 1 cmp eax, 1 o1...
; A024146: a(n) = 12^n - n^6. ; 1,11,80,999,16640,233207,2939328,35714159,429719552,5159248911,61916364224,743006599127,8916097462272,106993200552263,1283918457019328,15407021563195743,184884258878259200,2218611106716299423,26623333280851231680,319479999370575880967,3833759992447411122176,46005119909369615699991,552061...
#include <Jam/Entities/Particle.hpp> namespace jam { Particle::Particle( sf::Texture& texture, float width, float height, sf::Vector2f startPosition, float lifetime, float startSpeed, float friction, float startAngle, float startTorgue, float maxAlpha, float minAlpha ) ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xf7c4, %rcx nop nop nop nop nop add %rdi, %rdi movb $0x61, (%rcx) nop nop nop nop xor %rsi, %rsi lea addresses_WC_ht+0x1c0df, %rdx nop nop nop nop nop add $9685, %rsi movups (%...
%include 'macro.asm' SECTION .data hello: db 'Hello world!', 10 len: equ $-hello SECTION .text GLOBAL main main: print_string hello, len exit
; uintmax_t strtoumax(const char *nptr, char **endptr, int base) SECTION code_inttypes PUBLIC _strtoumax EXTERN _strtoul defc _strtoumax = _strtoul
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x664e, %rbx nop nop and $61770, %rcx movups (%rbx), %xmm5 vpextrq $0, %xmm5, %r9 nop nop nop nop nop dec %r8 lea addresses_WT_ht+0x10eee, %r15 nop sub %r8, %r8 movb (%r15), %al...
/** * Copyright (c) 2017-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
; A029551: Highest minimal norm for an (even or odd) 3-modular lattice in dimension n. ; 0,2,2,2,2,3,4,4,4,4,4,4,6,6,6,6,6,6 mov $2,$0 lpb $0 mov $0,$2 add $4,1 sub $2,$4 add $3,1 div $0,$3 sub $0,$3 lpe add $2,2 lpb $3 mul $3,$2 dif $3,8 lpe add $4,$3 mov $0,$4
disable_trade_timers: sw r0, 0x753C(at) ; displaced lbu at, DISABLE_TIMERS beqz at, @@return la at, GLOBAL_CONTEXT lhu at, 0x1D2C(at) andi at, at, 0x00C0 ; temp switch flags 0x16 & 0x17 bnez at, @@return ; don't disable timers during collapse sequence nop j...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 00189E move.w ($14,A6), D0 0018A2 add.w ($1a,A6), D0 [123p+ 14, enemy+14, item+14] 0018A6 move.w D0, ($14,A6) [123p+ 1A, enemy+1A, item+1A] 0018AA swap D0 [123p+ 14, base+750, enemy+14, etc+14, item+...
; int ferror_unlocked_fastcall(FILE *stream) SECTION code_stdio PUBLIC _ferror_unlocked_fastcall EXTERN asm_ferror_unlocked _ferror_unlocked_fastcall: push hl pop ix jp asm_ferror_unlocked
STDIN equ 0 STDOUT equ 1 SYS_EXIT equ 1 SYS_READ equ 3 SYS_WRITE equ 4 segment .data msg1 db "Enter a number: ", 0xA, 0xD len1 equ $- msg1 msg2 db "Enter another number: ", 0xA, 0xD len2 equ $- msg2 msg3 db "The result is: " len3 equ $- msg3 segment .bss num1 resb 2 ...
/*****************************************************************************/ /** * @file FrustumMatrix44.cpp * @author Naohisa Sakamoto */ /*---------------------------------------------------------------------------- * * Copyright (c) Visualization Laboratory, Kyoto University. * All rights reserved. *...
; CGB APU tester Copyright (C) 2021 Jackson Shelton <jacksonshelton8@gmail.com> ; MGBLIB Copyright (C) 2020 Matt Currie <me@mattcurrie.com> ; ; 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 w...
; A028153: Expansion of 1/((1-4x)(1-7x)(1-10x)(1-12x)). ; Submitted by Jon Maiga ; 1,33,699,12133,188307,2724645,37614403,502459221,6553738323,83980945477,1061789912547,13286272788789,164915485814899,2034013938152229,24960030504150531,305050074724911637 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 trn $2,1 sub ...
; A327493: a(n) = 2^A327492(n). ; 1,4,8,32,128,512,1024,4096,32768,131072,262144,1048576,4194304,16777216,33554432,134217728,2147483648,8589934592,17179869184,68719476736,274877906944,1099511627776,2199023255552,8796093022208,70368744177664,281474976710656,562949953421312 cal $0,327492 ; Partial sums of A327491. cal $...
; A168972: Number of reduced words of length n in Coxeter group on 7 generators S_i with relations (S_i)^2 = (S_i S_j)^23 = I. ; 1,7,42,252,1512,9072,54432,326592,1959552,11757312,70543872,423263232,2539579392,15237476352,91424858112,548549148672,3291294892032,19747769352192,118486616113152,710919696678912,426551818007...
; A038759: a(n) = ceiling(sqrt(n))*floor(sqrt(n)). ; 0,1,2,2,4,6,6,6,6,9,12,12,12,12,12,12,16,20,20,20,20,20,20,20,20,25,30,30,30,30,30,30,30,30,30,30,36,42,42,42,42,42,42,42,42,42,42,42,42,49,56,56,56,56,56,56,56,56,56,56,56,56,56,56,64,72,72,72,72,72,72,72 mov $3,$0 mov $6,$0 lpb $3,1 mov $0,$6 sub $3,1 sub $0...
; ; MSX specific routines ; by Stefano Bodrato, December 2007 ; ; int msx_lpt(); ; ; Check if the line printer is ready (1=ready, 0 if not) ; ; $Id: msx_lpt.asm,v 1.4 2016-06-16 19:30:25 dom Exp $ ; SECTION code_clib PUBLIC msx_lpt PUBLIC _msx_lpt EXTERN msxbios INCLUDE "target/msx/def/msxbios...
; A258809: a(n) = n^8 - 1. ; 0,255,6560,65535,390624,1679615,5764800,16777215,43046720,99999999,214358880,429981695,815730720,1475789055,2562890624,4294967295,6975757440,11019960575,16983563040,25599999999,37822859360,54875873535,78310985280,110075314175 mov $1,1 add $1,$0 pow $1,8 sub $1,1 mov $0,$1
global _start section .text _start: ;fork xor eax,eax mov al,0x2 int 0x80 xor ebx,ebx cmp eax,ebx jz child ;wait(NULL) xor eax,eax mov al,0x7 int 0x80 ;chmod x xor ecx,ecx xor eax, eax push eax mov al, 0xf push 0x78 mov ebx, esp ...
_myprogram: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "types.h" #include "stat.h" #include "user.h" int main(void) { 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 ...
/** @file @copyright David Mott (c) 2016. Distributed under the Boost Software License Version 1.0. See LICENSE.md or http://boost.org/LICENSE_1_0.txt for details. */ #pragma once #define DOXY_INHERIT_HAS_FONT namespace wtf { namespace policy { /** @class has_font @brief Behavior policy of font settings ...
; assuming r25 holds positive valued button presses ; assuming portd has already been switched to next sample state pad2: ; check pads7:12 sbic portd,$00 ; check which pads are being scanned rjmp pad1 ; go get pad1:6 data lds r17,pad2_state sts pad2_prev,r17 ; back up previous state sts pad2_state,r25 ; save current ...
; Final Project ; Alvi Habib ; Door Lock #include "p16F1708.inc" ; CONFIG1 ; __config 0x3FE4 __CONFIG _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF & _MCLRE_ON & _CP_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_ON & _FCMEN_ON ; CONFIG2 ; __config 0x3FFF __CONFIG _CONFIG2, _WRT_OFF & _PPS1WAY_ON & _ZCDDIS_ON & _PLL...
BITS 16 [org 0x7c00] cli xor ax, ax mov es, ax ; Display setting mov ah, 0x0e mov ebp, 8000h mov esp, ebp ; Read another sector from hdd ; Read Sectors From Drive mov dl, 80h ; Sectors To Read Count mov ah, 2h ; Sectors To Read Count mov al, 0x1 ; Cylinder xor ch, ch ; Sector mov cl, 0x1 ; Head mov dh, 0 ; offs...
// Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root for more information. #include <NovelRT.h> #include <NovelRT.Interop/NrtInteropErrorHandlingInternal.h> #include <NovelRT.Interop/NrtInteropUtils.h> #include <NovelRT.Interop/Graphics/NrtTextRect.h> ...
;******************************************************************************* ;* TMS320C55x C/C++ Codegen PC v4.4.1 * ;* Date/Time created: Sat Oct 06 06:38:33 2018 * ;****************************************************************************...
; A071720: Number of spanning trees in K_{n}-e, the complete graph on n nodes minus an edge (n > 1). ; 0,1,8,75,864,12005,196608,3720087,80000000,1929229929,51597803520,1516443410339,48594782035968,1686702392578125,63050394783186944,2525667398391013935,107946249863639334912,4903504030649559850577 mov $2,$0 add $0,2 su...
; A008754: Expansion of (1+x^11)/((1-x)*(1-x^2)*(1-x^3)). ; 1,1,2,3,4,5,7,8,10,12,14,17,20,23,27,31,35,40,45,50,56,62,68,75,82,89,97,105,113,122,131,140,150,160,170,181,192,203,215,227,239,252,265,278,292,306,320,335,350,365,381,397,413,430,447,464,482,500,518,537,556,575,595,615,635,656,677,698,720,742,764,787,810,833...
#include"VAO.h" VAO::VAO() // Constructor that generates a VAO ID { glGenVertexArrays(1, &ID); } void VAO::LinkAttrib(VBO& VBO, GLuint layout, GLuint numComponents, GLenum type, GLsizeiptr stride, void* offset) // Links a VBO to the VAO using a certain layout { VBO.Bind(); glVertexAttribPointer(layout, numComponen...
; A070804: Number of primes not exceeding phi(n). ; 0,0,1,1,2,1,3,2,3,2,4,2,5,3,4,4,6,3,7,4,5,4,8,4,8,5,7,5,9,4,10,6,8,6,9,5,11,7,9,6,12,5,13,8,9,8,14,6,13,8,11,9,15,7,12,9,11,9,16,6,17,10,11,11,15,8,18,11,14,9,19,9,20,11,12,11,17,9,21,11,16,12,22,9,18,13,16,12,23,9,20,14,17,14,20,11,24,13,17,12 seq $0,10 ; Euler toti...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x13aae, %rsi lea addresses_WC_ht+0x2cf1, %rdi nop nop sub $8370, %r10 mov $15, %rcx rep movsb nop nop cmp %r12, %r12 lea addresses_UC_ht+0x1285e, %r15 nop xor $1043, %r11 mov (%r15), %...
// Copyright (c) 2011-2017 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 <qt/addressbookpage.h> #include <qt/forms/ui_a...
<% from pwnlib.shellcraft.i386.linux import syscall %> <%page args="fd, buf"/> <%docstring> Invokes the syscall fstat64. See 'man 2 fstat64' for more information. Arguments: fd(int): fd buf(stat64): buf </%docstring> ${syscall('SYS_fstat64', fd, buf)}
; ************************************************************************ ; ; Utils file - keep all utils variables in this file ; ; ************************************************************************ ;bit 7 to lock io port 0x303B sprite number and nextreg sprite number together SPRITE_SELECT_REGISTER equ $3...
%include "include/x86inc.asm" SECTION_RODATA word20 times 8 dw 20 SECTION_TEXT %macro RB2CubicHorizontalInplaceLine_sse2_macro 3 ; weight1, weight2, shift ; prepare constants pcmpeqw m6, m6 ; = FFFFFFFFFFFFFFFF psrlw m6, 15 psllw m6, %3 - 1; 4 ; *16 = 16 pcmpeqw m5, m5 ; = FFFFFFFFFFFFFFFF...
; A056000: a(n) = n*(n+9)/2. ; Submitted by Christian Krause ; 0,5,11,18,26,35,45,56,68,81,95,110,126,143,161,180,200,221,243,266,290,315,341,368,396,425,455,486,518,551,585,620,656,693,731,770,810,851,893,936,980,1025,1071,1118,1166,1215,1265,1316,1368,1421,1475,1530,1586,1643,1701,1760,1820,1881,1943,2006,2070,2135,2...
; A010236: Continued fraction for sqrt(194). ; 13,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1 add $0,3 mul $0,5 lpb $0 mov $2,$0 add $0,5 mod $2,10 trn $2,1 add $2,3 add $4,$3 mov $3,1 ...
// implied warranty. In no event will the authors be held // liable for any damages arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // including commercial applications, and to alter it and redistribute // it freely, subject to the following restriction...
; A114252: C(4+2*n,4+n)*C(9+2*n,0+n) ; Submitted by Jon Maiga ; 1,66,2184,54600,1178100,23279256,434546112,7801876368,136246002750,2331320491500,39283977292560,654191853260400,10794165578796600,176805993477330000,2879098129810080000,46660583690455363200,753276797952788769660,12121801610494996922040 mov $1,$0 mul $1,2 ...
; -------------------------------------------------------------------------------------------- ;*************************************************************************************************** ; Keyboard Reader ;***************************************************************************************************...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <memory> #include "openvino/op/util/unary_elementwise_arithmetic.hpp" namespace ov { namespace op { namespace v0 { /// \brief Elementwise inverse cosine (arccos) operation. /// class OPENVINO_API Acos : publ...
; This is the 8*10 font for SCHIP. ; Run it through the assembler to get the ; hex codes for the fonts that you can copy ; and paste into chip8.c db ; '0' %01111100, %10000010, %10000010, %10000010, %10000010, %10000010, %10000010, %10000010, %01111100, %00000000 db ; '1' %00001000, %00011000, %00111000, ...
%include "../utils/printf32.asm" struc stud_struct name: resb 32 surname: resb 32 age: resb 1 group: resb 8 gender: resb 1 birth_year: resw 1 id: resb 16 endstruc section .data sample_student: istruc stud_struct at name, db 'Andrei', 0 at surname, db 'Voinea', 0 ...
; A033126: Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,1. ; Submitted by Jamie Morken(s3) ; 1,8,65,521,4168,33345,266761,2134088,17072705,136581641,1092653128,8741225025,69929800201,559438401608,4475507212865,35804057702921,286432461623368,2291459692986945,18331677543...
;*** ;strcspn.asm - ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ;Purpose: ; defines strcspn()- finds the length of the initial substring of ; a string consisting entirely of characters not in a control string. ; ; NOTE: This stub module scheme is compatible with NT build ; ...
// ---------------------- Doxygen info ---------------------- //! \file TypeIIRMLCalculatePositionalExtrems.cpp //! //! \brief //! Implementation file for the Type II On-Line Trajectory //! Generation algorithm //! //! \details //! For further information, please refer to the file TypeIIRMLPosition.h. //! //! \date Ma...
; 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...
#include <mscorlib/System/mscorlib_System_LocalDataStoreSlot.h> #include <mscorlib/System/mscorlib_System_Type.h> #include <mscorlib/System/mscorlib_System_String.h> namespace mscorlib { namespace System { //Public Methods } }
; TITLE BBC BASIC (C) R.T.RUSSELL 1987 ; ;BBC BASIC INTERPRETER - Z80 VERSION ;EXPRESSION EVALUATION & ARITHMETIC MODULE - "EVAL" ;(C) COPYRIGHT R.T.RUSSELL 1984 ;VERSION 2.3, 07-05-1984 ;Modified to use external FPP, 01-03-1987 ;VERSION 3.0, 08-03-1987 ;INSTR bug fixed, 30-09-1992 ; ;BINARY FLOATING POINT REPRESENTA...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2021 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ht...
copyright zengfr site:http://github.com/zengfr/romhack 009ACA dbra D5, $9ac8 022AEA move.l #$10000, ($a4,A6) [enemy+A0, enemy+A2] 022AF2 move.b #$8, ($3,A6) [enemy+A4, enemy+A6] 022B40 move.l #$10000, ($a4,A6) [enemy+A0, enemy+A2] 022B48 move.b #$a, ($3,A6) [enemy+A4, enemy+A6] 022B70 move.l #$cc00, ($a4...
; ; Sprite Rendering Routine ; original code by Patrick Davidson (TI 85) ; modified by Stefano Bodrato - Jan 2001 ; ; ZX81 - ARX816 mode version ; ; ; $Id: putsprite_arx.asm,v 1.3 2017/01/02 22:58:00 aralbrec Exp $ ; PUBLIC putsprite PUBLIC _putsprite EXTERN pixeladdress EXTERN swapgfxbk EXTERN...
//use the keyboard to "paint" our screen //key_right = 132 //left_key = 130 @last_key_press @x_pos //defines x position of our paint cursor @y_pos //defines y position of our paint cursor //listen for keyboard input until key press is the "enter" key (:program_start) //reads last key into last_key_press variable @K...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and software framework */ /* CMAP-DeepBKZ --- Configurable Massively Parallel Solver for DeepBKZ */ ...
; A206806: Sum_{0<j<k<=n} s(k)-s(j), where s(j)=A002620(j) is the j-th quarter-square. ; 1,4,13,30,62,112,190,300,455,660,931,1274,1708,2240,2892,3672,4605,5700,6985,8470,10186,12144,14378,16900,19747,22932,26495,30450,34840,39680,45016,50864,57273,64260,71877,80142,89110,98800,109270,120540,132671,145684,159643,174570...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1158c, %rsi lea addresses_A_ht+0x172cc, %rdi nop nop nop nop dec %r11 mov $86, %rcx rep movsb nop nop sub %rdi, %rdi lea addresses_WC_ht+0x274c, %rbx nop nop nop cmp %r15, %...
; void __CALLEE__ sp1_ClearRect_callee(struct sp1_Rect *r, uchar tile, uchar rflag) ; 01.2008 aralbrec, Sprite Pack v3.0 ; ts2068 hi-res version PUBLIC sp1_ClearRect_callee PUBLIC ASMDISP_SP1_CLEARRECT_CALLEE, ASMDISP_SP1CRSELECT EXTERN sp1_GetUpdateStruct_callee, l_jpix EXTERN ASMDISP_SP1_GETUPDATESTRUCT_CALLEE, SP1...
#include "../../flame32.asm" ; Tests CLC TEST_DEST = 0x050000 cpi A, 1 clc NE, TEST_DEST ; P = 0x050000 ; STACK = 0x000010