text
stringlengths
1
1.05M
#include "duckdb/storage/table/row_group.hpp" #include "duckdb/common/types/vector.hpp" #include "duckdb/transaction/transaction.hpp" #include "duckdb/common/exception.hpp" #include "duckdb/common/field_writer.hpp" #include "duckdb/storage/table/column_data.hpp" #include "duckdb/storage/table/standard_column_data.hpp" ...
dnl SPARC v9 mpn_copyi -- Copy a limb vector, incrementing. dnl Copyright 1999, 2000, 2001, 2002, 2003 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 modify dnl it under the terms of the GNU Lesser General Publi...
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24)) %define fourcc(a) db a ftyp_start: dd BE(ftyp_end - ftyp_start) db "ftyp" db "isom" dd BE(0x00) db "mif1", "miaf" ftyp_end: moov_start: dd BE(moov_end - moov_start) fourcc("moov") mvhd_start: dd...
; A067492: Powers of 6 with initial digit 1. ; 1,1296,1679616,10077696,13060694016,16926659444736,101559956668416,131621703842267136,170581728179578208256,1023490369077469249536,1326443518324400147398656,1719070799748422591028658176,10314424798490535546171949056,13367494538843734067838845976576,173242729223414793519191...
// Test removal of empty function // main() should not be removed! // Commodore 64 PRG executable file .file [name="empty-function-2.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code...
// Copyright (c) 2021 Dr. Matthias Hölzl. See file LICENSE.md. #include "font_example_event_dispatcher.hpp" #include <iostream> namespace fe {} // namespace fe
; A191362: Number of the diagonal of the dispersion of the even positive integers that contains n. ; 0,-1,1,-2,2,0,3,-3,4,1,5,-1,6,2,7,-4,8,3,9,0,10,4,11,-2,12,5,13,1,14,6,15,-5,16,7,17,2,18,8,19,-1,20,9,21,3,22,10,23,-3,24,11,25,4,26,12,27,0,28,13,29,5,30,14,31,-6,32,15,33,6,34,16,35,1,36,17,37,7,38,18,39,-2,40,19,41,...
*NAME OC-7 (ttanal - packdate) *TIME:24.00 *EXPRESS *PAGE:999,LIST *LIBRA:23 *DISC:705/SYSTEM,LCROSS *FILE:LIB,67 *FILE:MEM,30,W *PERSO:67 *TAKE TAPE:67 * *DISC:705/SYSTEM,WORKIN * *FILE:LCROSS - PERSO ACCEMБЛEP+ЗAГPYЗЧИK+ЭMYЛЯTOP * *FILE:ASSEM - OПИCAHИE И TEKCTЫ ACCEMБЛEPA И ЗAГPYЗ...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; Wide resolution (WORD based parameters) version by Stefano Bodrato ; ; $Id: w_xordraw.asm,v 1.1 2016-11-10 07:34:54 stefano Exp $ ; SECTION code_cl...
; A259830: Decimal expansion of the length of the "double egg" curve (length of one egg with diameter a = 1). ; Submitted by Jon Maiga ; 2,7,6,0,3,4,5,9,9,6,3,0,0,9,4,6,3,4,7,5,3,1,0,9,4,2,5,4,8,8,0,4,0,5,8,2,4,2,0,1,6,2,7,7,3,0,9,4,7,1,7,6,4,2,7,0,2,0,5,7,0,6,7,0,2,6,0,0,5,5,1,2,2,6,5,4,9,1,0,7,5,3,0,2,8,4,5,8,3,6,4,7...
PokemonMansion2F_Script: call Mansion2Script_51fee call EnableAutoTextBoxDrawing ld hl, Mansion2TrainerHeader0 ld de, PokemonMansion2F_ScriptPointers ld a, [wPokemonMansion2FCurScript] call ExecuteCurMapScriptInTable ld [wPokemonMansion2FCurScript], a ret Mansion2Script_51fee: ld hl, wCurrentMapScriptFlags b...
SECTION FRAGMENT "Frag", ROM0[1] db $40 SECTION "Word", ROM0/*[6]*/ dw $78d5
; A175676: a(n) = binomial(n,3) mod n. ; 0,0,1,0,0,2,0,0,3,0,0,4,0,0,5,0,0,6,0,0,7,0,0,8,0,0,9,0,0,10,0,0,11,0,0,12,0,0,13,0,0,14,0,0,15,0,0,16,0,0,17,0,0,18,0,0,19,0,0,20,0,0,21,0,0,22,0,0,23,0,0,24,0,0,25,0,0,26,0,0,27,0,0,28,0,0,29,0,0,30,0,0,31,0,0,32,0,0,33,0,0,34,0,0,35,0,0,36,0,0,37,0,0,38,0,0,39,0,0,40,0,0,41,0...
#if (defined PLATFORMIO && defined UNIT_TEST) #include <AUnit.h> void setup() { Serial.begin(115200); while (!Serial) { delay(100); }; // ^for the Arduino Leonardo/Micro only aunit::TestRunner::setTimeout(0); delay(1000); } void loop() { aunit::TestRunner::run(); } #endif
CRLF MACRO MOV DL,0DH MOV AH,02H INT 21H MOV DL,0AH MOV AH,02H INT 21H ENDM DATA SEGMENT DATA1 DB 33H,39H,31H,37H,34H,0 COUNT EQU $-DATA1 DATA2 DB 32H,35H,30H,38H,37H DATA ENDS STACK SEGMENT STACK 'STACK' DB 20 DU...
// 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: UnityEngine.MonoBehaviour #...
// // Created by Nathan on 8/1/2015. // #include <ui/MessageBox.h> #include "ui/UiManager.h" namespace undocked { namespace ui { UiManager::UiManager(int width, int height) : UiElement(nullptr, 0, 0, width, height) { } UiManager::~UiManager() { // release memory fo...
trname pha ; trnsfr fname fr cmd to buf jsr fndlmt ; a: string size jsr trcmbf ; x: starting index in cmdbuf pla ; y: buffer # sec sbc strsiz tax beq tn20 bcc tn20 lda #$a0 tn10 sta (dirbuf),y ...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="fd, buf, n, flags"/> <%docstring> Invokes the syscall recv. See 'man 2 recv' for more information. Arguments: fd(int): fd buf(void): buf n(size_t): n flags(int): flags </%docstring> ${syscall('SYS_recv', fd, buf, n, flags)}
main: lw $s0, 1000 addi $t0, $0, 1 addi $t0, $t0, 5 sw $s0, 1004 add $t0, $s0, $t0
; A202112: Numbers n such that 90n + 79 is prime. ; Submitted by Christian Krause ; 0,3,4,6,7,11,13,15,17,18,19,20,24,29,33,35,36,38,41,45,46,52,56,57,60,61,62,63,64,68,70,71,75,81,82,83,84,89,90,91,94,95,96,103,104,106,111,112,115,119,122,123,124,125,129,130,132,133,137,139,146 mov $1,13 mov $2,$0 add $2,2 pow $2,2 l...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx // Store lea addresses_A+0xf4ec, %rdi lfence mov $0x5152535455565758, %rbx movq %rbx, %xmm2 vmovups %ymm2, (%rdi) nop nop add $24726, %rbx // Store lea address...
extern my_main section .text ; /usr/include/x86_64-linux-gnu/asm/unistd_32.h __NR_exit equ 1 global _start _start: call my_main ; Call __NR_exit(main_return_value) (system call). ; ; Use x86 Linux system call convention. ; https://en.wikibooks.org/wiki/X86_Assembly/Interfacing_with_Linux#Making...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2019 The OHMC Developers // Distributed under the MIT software license, see the accompanying // file COPYING or ht...
//KC03H99A JOB ,'ANDREW SLADE',MSGCLASS=H 00010004 //JSTEP01 EXEC PGM=ASSIST 00020004 //STEPLIB DD DSN=KC00NIU.ASSIST.LOADLIB,DISP=SHR 00030004 //SYSPRINT DD SYSOUT=* 00040...
_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...
/*************************************************************************** * Copyright (c) Johan Mabille, Sylvain Corlay and Wolf Vollprecht * * Copyright (c) QuantStack * * * * Distribute...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : val.asm ; Purpose : Convert string to number ; Date : 22nd August 2019 ; Author : Paul Robson (paul@robsons.org.u...
; A142230: Primes congruent to 33 mod 41. ; Submitted by Christian Krause ; 197,443,607,853,1181,1427,2083,2411,2657,2903,3067,3313,3559,4051,4133,4297,4789,4871,5281,5527,6101,7331,7577,7741,7823,8069,8233,8807,8971,9463,9791,10037,10529,10939,11677,11923,12251,12497,12743,12907,13399,14629,14957,15121,15859,16187,164...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkIntersections.h" #include "SkLineParameters.h" #include "SkPathOpsConic.h" #include "SkPathOpsCubic.h" #include "SkPathOpsQuad.h" #include "SkPathOpsRect.h" // cri...
; A022406: a(0)=3, a(1)=7; thereafter a(n) = a(n-1) + a(n-2) + 1. ; 3,7,11,19,31,51,83,135,219,355,575,931,1507,2439,3947,6387,10335,16723,27059,43783,70843,114627,185471,300099,485571,785671,1271243,2056915,3328159,5385075,8713235,14098311,22811547,36909859,59721407,96631267,156352675,252983943,409336619,662320563,107...
; void heap_info(void *heap, void *callback) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _heap_info EXTERN asm_heap_info _heap_info: pop af pop de pop ix push hl push de push af ...
; A315050: Coordination sequence Gal.5.140.2 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. ; 1,5,9,15,20,24,29,35,39,44,49,53,59,64,68,73,79,83,88,93,97,103,108,112,117,123,127,132,137,141,147,152,156,161,167,171,176,181,185,191,196,...
; A286016: Signed continued fraction expansion with all signs negative of tanh(1). ; 1,5,2,2,2,2,9,2,2,2,2,2,2,2,2,13,2,2,2,2,2,2,2,2,2,2,2,2,17,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,21,2,2,2,2,2,2 mov $1,2 mov $2,$0 lpb $2,1 trn $2,$3 add $3,4 mov $5,$2 lpb $5,1 trn $4,5 trn $5,$3 lpe lpb $4,1 sub $...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x13407, %rsi lea addresses_D_ht+0x198f7, %rdi nop nop add $19779, %r11 mov $74, %rcx rep movsl nop nop inc %rsi lea addresses_WT_ht+0x1b66f, %rbx nop sub %rsi, %rsi movw $0x61...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: graphics kernel FILE: Graphics/grRegion AUTHOR: Jim DeFrisco, Doug Fults ROUTINES: Name Description ---- ----------- GrSetClipRect...
; A013576: Minimal scope of an (n,4) difference triangle. ; Submitted by Jamie Morken(s4) ; 11,22,32,41,51,60,71,80,91,100,111,120,131,140,151 mov $4,$0 mov $7,$0 lpb $4 mov $0,$7 sub $4,1 sub $0,$4 mov $2,1 mov $3,$0 mul $3,5 sub $3,1 lpb $3 pow $0,2 add $1,3 sub $2,15 mov $5,$3 mu...
;================================================================================ ; Item Tables ;-------------------------------------------------------------------------------- org $308000 ; bank #$30 ; PC 0x180000 - 0x180006 HeartPieceIndoorValues: HeartPiece_Forest_Thieves: db #$17 ; #$17 = Heart Piece HeartPiece_L...
; A159988: Catalan numbers read modulo 11 . ; 1,1,2,5,3,9,0,0,0,0,10,2,2,4,10,6,7,0,0,0,0,8,6,6,1,8,7,10,0,0,0,0,1,9,9,7,1,5,4,0,0,0,0,9,4,4,8,9,1,3,0,0,0,0,6,10,10,9,6,8,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 seq $0,108 ; Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). mod $0,11
; Library functionality written in the language itself. :library .dat lib_gensym_counter .dat lib_gensym .dat lib_or .dat lib_cond :library_end :init_lib ; () -> pushX set x, library :init_lib_loop set a, [x] set b, [a] add a, 1 ; (buf, len) jsr rep add x, 1 ifl x, library_end set pc, init_lib_loop retX ; U...
; ; Clear Graphics Screen ; ; TIKI-100 version by Stefano Bodrato, Sept 2015 ; ; $Id: clg.asm,v 1.2 2016/07/02 09:01:36 dom Exp $ ; SECTION code_clib PUBLIC clg PUBLIC _clg EXTERN gr_defmod EXTERN swapgfxbk EXTERN swapgfxbk1 INCLUDE "graphics/gra...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1c26, %rsi lea addresses_UC_ht+0x1dbe6, %rdi nop nop nop inc %r15 mov $36, %rcx rep movsl nop inc %r12 lea addresses_D_ht+0xc56, %rsi lea addresses_UC_ht+0x154ba, %rdi nop no...
; A131727: Pell numbers A000129 without last digit. ; 1,2,7,16,40,98,237,574,1386,3346,8078,19502,47083,113668,274421,662510,1599442,3861396,9322235,22505868,54333972,131173812,316681596,764537004,1845755605,4456048214,10757852035,25971752284,62701356604 add $0,1 cal $0,69306 ; Number of 2 X n binary arrays with a pat...
; void *malloc_fastcall(size_t size) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _malloc_fastcall EXTERN asm_malloc defc _malloc_fastcall = asm_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELS...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x17491, %rsi nop nop nop nop add $32231, %r11 mov (%rsi), %r12d nop nop nop nop nop xor %rcx, %rcx lea addresses_A_ht+0x15b1, %r12 nop nop nop cmp $51320, %rcx mov $0x61626364...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x10fd5, %rdx nop nop nop nop sub %r8, %r8 and $0xffffffffffffffc0, %rdx movntdqa (%rdx), %xmm6 vpextrq $0, %xmm6, %rsi nop nop nop nop nop and %rbp, %rbp lea address...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2012-2020 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
#include "FramelessHelper.h" #include "FramelessHelper_p.h" #include <windows.h> // class FramelessHelper FramelessHelper::FramelessHelper(QWidget *parent) : QObject(parent) , d_ptr(new FramelessHelperPrivate()) { Q_D(FramelessHelper); d->window = parent; Q_CHECK_PTR(parent); if (d->window) ...
// Convert 2bpp NES to 4bpp and 8bpp N64, place sprites //define RSP_BUSY_LOOP() // Work around missing SFV instr in cen64 // NOTE this doesn't currently fit in IMEM, so it also // disables sprite rendering. //define SIMULATE_SFV() InitPPU: lqv v8[e0],ShiftMux0(r0) lqv v9[e0],ShiftMux1(r0) lqv v10[e0],BitsOfBy...
; A316571: a(1) = 1; for n > 1: a(n) = smallest number such that (Sum_{k=1..n} a(k)) is divisible by n - 1 ; 1,2,3,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124 mov $1,2 bin ...
; Chars for OSZ/DOS ; WTFPL/PUBLIC DOMAIN [bits 16] [org 0x0100] xor bp, bp ; OSZ SIGNATURE mov al, 0x20 _loop: int 0x29 inc ax cmp al, 0x7F jc _loop ret
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
; ; Enterprise 64/128 C Library ; ; getk() Read key status ; ; Stefano Bodrato - 2011 ; ; ; $Id: getk.asm,v 1.2 2015/01/19 01:33:20 pauloscustodio Exp $ ; PUBLIC getk EXTERN fgetc_cons .getk ld a,69h ; keyboard channel rst $30 ; EXOS defb 9 ; test channel ; C = 0: peripheral ready ; C = 1: not read...
; A156581: Triangle T(n, k, m) = (m+2)^(k*(n-k)) with m = 15, read by rows. ; 1,1,1,1,17,1,1,289,289,1,1,4913,83521,4913,1,1,83521,24137569,24137569,83521,1,1,1419857,6975757441,118587876497,6975757441,1419857,1,1,24137569,2015993900449,582622237229761,582622237229761,2015993900449,24137569,1 seq $0,4247 ; Multiplicat...
#include "common/NetworkRequest.hpp" #include "common/NetworkPrivate.hpp" #include "common/Outcome.hpp" #include "common/Version.hpp" #include "debug/AssertInGuiThread.hpp" #include "providers/twitch/TwitchCommon.hpp" #include "singletons/Paths.hpp" #include "util/DebugCount.hpp" #include "util/PostToThread.hpp" #inc...
; A257022: Trace of n in the quarter-sum representation of n. ; 0,1,2,1,4,1,6,1,2,9,1,2,12,1,2,1,16,1,2,1,20,1,2,1,4,25,1,2,1,4,30,1,2,1,4,1,36,1,2,1,4,1,42,1,2,1,4,1,6,49,1,2,1,4,1,6,56,1,2,1,4,1,6,1,64,1,2,1,4,1,6,1,72,1,2,1,4,1,6,1,2,81,1,2,1,4,1,6,1,2,90,1,2,1,4,1,6,1,2,9,100,1,2,1,4,1,6,1,2,9,110,1,2,1,4,1,6,1,2,9...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x102d1, %rax clflush (%rax) nop nop nop cmp $52111, %r14 movups (%rax), %xmm7 vpextrq $0, %xmm7, %rbx nop sub %r9, %r9 lea addresses_normal_ht+0x8eb1, %r10 nop nop no...
#include<bits/stdc++.h> using namespace std; class node{ public: int data; node*right; node*left; node(int d) { data=d; node*right=NULL; node*left=NULL; } }; node* build_tree() { int d; cin>>d; if(d==-1) return NULL; node* root=new node(d); root->right=build_tree(); root->left=build_tree(); retu...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %rcx push %rdi push %rdx // Faulty Load lea addresses_WC+0x1edd4, %r13 dec %rcx movb (%r13), %dl lea oracles, %r13 and $0xff, %rdx shlq $12, %rdx mov (%r13,%rdx,1), %rdx pop %rdx pop %rdi pop %...
; A098262: First differences of Chebyshev polynomials S(n,627)=A098260(n) with Diophantine property. ; Submitted by Jamie Morken(s4) ; 1,626,392501,246097501,154302740626,96747572275001,60660573513685001,38034082845508220626,23847309283560140647501,14952224886709362677762501,9375021156657486838816440626,587812331299935...
; half __sub_callee (half left, half right) SECTION code_fp_math16 PUBLIC cm16_sdcc_sub_callee EXTERN asm_f24_f16 EXTERN asm_f16_f24 EXTERN asm_f24_add_f24 EXTERN asm_f24_neg .cm16_sdcc_sub_callee ; subtract sdcc half from sdcc half ; ; enter : stack = sdcc_half right, sdcc_half left, ret ; ;...
#include <bits/stdc++.h> /* Problem: A. IQ Test Link : https://codeforces.com/contest/287/problem/A Solution by: Mohamed Hisham El-Banna Gmail : Mohamed00Hisham@Gmail.com Github : www.github.com/Mhmd-Hisham LinkedIn: www.linkedin.com/in/Mhmd-Hisham */ using namespace std; char paper[4][4]; int main () { i...
tsx txa axs #-3 txs
;[]-----------------------------------------------------------------[] ;| COSH.ASM -- trigonometric function | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation...
; A051515: (Terms in A014738)/4. ; 9,25,196,324,1089,1521,3600,4624,9025,11025,19044,22500,35721,41209,61504,69696,99225,110889,152100,168100,223729,245025,318096,345744,439569,474721,592900,636804,783225,837225,1016064,1081600,1297321 mov $1,$0 add $1,$0 add $1,3 mov $2,$0 div $2,2 add $2,1 mul $1,$2 pow $1,2
; TI83+ Graylib interrupt ;--------------------------------------------------------------------------- ; ; Ported by Stefano Bodrato - Mar 2000 ; ; Recoded -because of strange problems- by Henk Poley - July 2001 ; Based upon vnGrey, a Venus greyscale library (Ti83). ; ; $Id: gray83p.asm,v 1.3 200...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r9 push %rax push %rbp push %rcx push %rdx lea addresses_WT_ht+0x1be76, %rbp nop nop nop nop nop xor $36043, %rdx vmovups (%rbp), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r15 nop nop xor $6428, %r9 lea addresses_D_ht+0xff4e, %r9 sub %...
; A096604: Numbers that appear at most once in A096607. ; 3,6,7,10,12,14,15,18,20,22,24,26,28,30,31,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,63,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,127,130 add $0,4 mov $3,$0 mul $3,2 add $0,$3 mov $2,$3 sub $2,4...
device zxspectrum48 org $6000 INCLUDE "../../Constants.asm" INCLUDE "../../Macros.asm" INCLUDE "../../TestData.asm" INCLUDE "../../TestFunctions.asm" INCLUDE "../../OutputFunctions.asm" Start: call StartTest ld hl,TestTxt ld de,MEM_ZX_SCREEN_4000 call OutStringAtDe ...
;<Subtract two 8 bit number stored at Memory Location 2050H and 2051h and store the result in 2053H> jmp start ;12+13=25 ;code start: nop LDA 2050H MOV B, A LDA 2051H SUB B STA 2053H hlt
.data str: .asciiz "DWSE MOU ENAN ARITHMO\n" binary: .asciiz "DYADIKO: " .text .globl main main: li $v0,4 la $a0,str syscall li $v0,5 syscall la $t0,($v0) li $v0,11 li $a0,'\n' syscall li $t1,8 #AN VALEIS TO 128 ANTI TOU 8 THA SOU VGALEI 8bit ARITHMO #GIATI 2^8 = 128. EDW EXOUME 2^4 = 8, ARA 4bits. li $v0,4 ...
; This file is generated from a similarly-named Perl script in the BoringSSL ; source tree. Do not edit by hand. default rel %define XMMWORD %define YMMWORD %define ZMMWORD section .text code align=64 EXTERN GFp_ia32cap_P global GFp_bn_mul_mont ALIGN 16 GFp_bn_mul_mont: mov QWORD[8+rsp],rdi ;WIN64 prologue mov Q...
[org 0x7c00] KERNEL_LOCATION equ 0x1000 ; Was 0x7e00 but I changed it because of buffer overflow problems ; Implementing SSP asap mov [BOOT_DISK], dl ; Stores the boot disk number mov bx, OK call PrintString xor ax, ax ; clear bits of ax mov es, ax ; set es to 0 mov ds, ax ; set ds to 0 mov bp, 0...
;================================================================================ ; Randomize Half Magic Bat ;-------------------------------------------------------------------------------- GetMagicBatItem: JSL.l ItemSet_MagicBat %GetPossiblyEncryptedItem(MagicBatItem, SpriteItemValues) CMP.b #$FF : BEQ .normalLogi...
; A184004: a(n) = n + floor(sqrt(4n/3)); complement of A184005. ; 2,3,5,6,7,8,10,11,12,13,14,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,93,94,95,96,97...
;------------------------------------------------------------------------------- ; posix/1_signal.nasm - POSIX signal routines. ;------------------------------------------------------------------------------- module libc.signal %include "errors.ah" %include "locstor.ah" %include "siginfo.ah" exportproc _signal, _sig...
; A081596: Let n = 10x + y where 0 <= y <= 9, x >= 0. Then a(n) = 5x+y. ; 0,1,2,3,4,5,6,7,8,9,5,6,7,8,9,10,11,12,13,14,10,11,12,13,14,15,16,17,18,19,15,16,17,18,19,20,21,22,23,24,20,21,22,23,24,25,26,27,28,29,25,26,27,28,29,30,31,32,33,34,30,31,32,33,34,35,36,37,38,39,35,36,37,38,39,40,41,42,43,44,40,41,42,43,44,45,46,...
; A033657: Trajectory of 23 under map x->x + (x-with-digits-reversed). ; Submitted by Jamie Morken(s4) ; 23,55,110,121,242,484,968,1837,9218,17347,91718,173437,907808,1716517,8872688,17735476,85189247,159487405,664272356,1317544822,3602001953,7193004016,13297007933,47267087164 mov $2,$0 lpb $2 mov $0,$1 add $0,23 ...
; A245710: Number of nonzero evil numbers <= n, see A001969. ; 0,0,0,1,1,2,3,3,3,4,5,5,6,6,6,7,7,8,9,9,10,10,10,11,12,12,12,13,13,14,15,15,15,16,17,17,18,18,18,19,20,20,20,21,21,22,23,23,24,24,24,25,25,26,27,27,27,28,29,29,30,30,30,31,31,32,33,33,34,34,34,35,36 mov $3,$0 mov $6,$0 lpb $6 mov $0,$3 sub $6,1 sub $...
MENU_SUPPORT_TILESETS_BANK_NUMBER = CURRENT_BANK_NUMBER #include "game/data/menu_support/tileset_bg.asm"
; A343688: a(1)=1, a(2)=0, a(n) = (4*n-2)*a(n-1) + a(n-2), n > 2. ; Submitted by Christian Krause ; 1,0,1,14,253,5580,145333,4365570,148574713,5650204664,237457170601,10928680052310,546671459786101,29531187508501764,1713355546952888413,106257575098587583370,7014713312053733390833,491136189418859924941680,36351092730307...
#include "SR_DriverModule.h" using namespace adtf; #undef LOG_INFO #define LOG_INFO(str) logger.GLogTrap((str)); #define PROP_CONTINUE "Continue after section end" ADTF_FILTER_PLUGIN("SR AADC Driver Module", OID_ST_DRIVER_MODULE, SR_DriverModule); SR_DriverModule::SR_DriverModule(const tChar* __info) : cFilter(__...
/* Cydia Substrate - Powerful Code Insertion Platform * Copyright (C) 2008-2011 Jay Freeman (saurik) */ /* GNU Lesser General Public License, Version 3 {{{ */ /* * Substrate 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 * ...
; A263229: a(n) = 4*n*(21*n - 26). ; 0,-20,128,444,928,1580,2400,3388,4544,5868,7360,9020,10848,12844,15008,17340,19840,22508,25344,28348,31520,34860,38368,42044,45888,49900,54080,58428,62944,67628,72480,77500,82688,88044,93568,99260,105120,111148,117344,123708,130240 mul $0,7 mov $1,3 mul $1,$0 sub $1,26 mul $1,$0 di...
;; @file ; Provide FSP API entry points. ; ; Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ;; SECTION .text ; ; Following are fixed PCDs ; extern ASM_PFX(PcdGet32(PcdTemporaryRamBase)) extern ASM_PFX(PcdGet32(PcdTemporaryRam...
global invert section .text invert: mov rax, 0 not rax mov rcx, rsi shl rax, cl not rax xor rax, rdi ret
processor 6502 include "scenesetup.inc" ORG ENDFONTADR incbin "endfont.bin"
#ifndef COLOR setLegacyLcdMode: ret checkLegacyLcdMode: cp a ret resetLegacyLcdMode: clearColorLcd: colorLcdOn: colorLcdOff: colorLcdWait: readLcdRegister: writeLcdRegister: clipColorRectangle: setLcdWindow: fullScreenWindow: or 1 ld a, errUnsupported ret colorSupported: or 1 ld ...
; A023546: Convolution of natural numbers >= 2 and A023531. ; 0,2,3,4,7,9,11,13,17,20,23,26,29,34,38,42,46,50,54,60,65,70,75,80,85,90,97,103,109,115,121,127,133,139,147,154,161,168,175,182,189,196,203,212,220,228,236,244,252,260,268,276,284,294,303,312,321 lpb $0 add $1,$0 sub $0,2 add $2,1 trn $0,$2 add $1,...
; A010496: Decimal expansion of square root of 42. ; 6,4,8,0,7,4,0,6,9,8,4,0,7,8,6,0,2,3,0,9,6,5,9,6,7,4,3,6,0,8,7,9,9,6,6,5,7,7,0,5,2,0,4,3,0,7,0,5,8,3,4,6,5,4,9,7,1,1,3,5,4,3,9,7,8,0,9,6,1,7,3,7,7,8,4,4,0,4,4,3,7,1,4,0,0,3,6,0,9,0,6,6,0,5,6,1,0,2,3,5 mov $1,1 mov $2,1 mov $3,$0 add $3,8 mov $4,$0 add $4,3 mul $4,2 m...
; A182097: Expansion of 1/(1-x^2-x^3). ; 1,0,1,1,1,2,2,3,4,5,7,9,12,16,21,28,37,49,65,86,114,151,200,265,351,465,616,816,1081,1432,1897,2513,3329,4410,5842,7739,10252,13581,17991,23833,31572,41824,55405,73396,97229,128801,170625,226030,299426,396655,525456,696081,922111,1221537,1618192,2143648,2839729,3761840,4983377,6...
; A038213: Top line of 3-wave sequence A038196, also bisection of A006356. ; 1,3,14,70,353,1782,8997,45425,229347,1157954,5846414,29518061,149034250,752461609,3799116465,19181424995,96845429254,488964567014,2468741680809,12464472679038,62932092237197,317738931708801 mov $1,1 lpb $0 sub $0,1 add $2,$1 add $3,$2 ...
; ASM source file created by SevenuP v1.21 ; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Sort Priorities: X char, Char line, Y char ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No esqueleto_espada_...
; A179088: Positive integers of the form (2*m^2+1)/11. ; 3,9,41,59,123,153,249,291,419,473,633,699,891,969,1193,1283,1539,1641,1929,2043,2363,2489,2841,2979,3363,3513,3929,4091,4539,4713,5193,5379,5891,6089,6633,6843,7419,7641,8249,8483,9123,9369,10041,10299,11003,11273,12009,12291,13059,13353,14153,14459,15291,15609,1...
; ; The GDT ; ; load.asm ; [bits 16] ; Define load_sectors ; Sector start point in bx ; Number of sectors to read in cx ; Destination address in dx load_bios: ; Save the registers push ax push bx push cx push dx ; Save the number of registers to load for later push cx ; For the...
# file opened: mmu.asm 1 0000 ; DOCS design (happened here, while working on it): 2 0000 ; 3 0000 ; MMU <first slot number> [<last slot number>|<single slot option>], <page number> 4 0000 ; 5 0000 ; Maps memory page(s) to slot(s), ...
// Archit Singh // architsingh456@gmail.com // GitHub : archit-1997 #include <bits/stdc++.h> using namespace std; #define ll long long int #define ld long double #define line cout << "-------------" << endl; #define F first #define S second #define P pair<ll, ll> #define PP pair<pair<ll, ll>, ll> #defin...
#include <cstdio> #include <iostream> #include <string> using namespace std; #include "archive.h" // template< typename CHILD_CLASS > // class ArchiveMixin //{ // public: // template< typename ARCH > // void serialize(ARCH* ar) // { // CHILD_CLASS* pThis = static_cast< CHILD_CLASS* >(this); // }; /...
/****************************************************************************** * $Id: ogr_xplane_apt_reader.cpp * * Project: X-Plane apt.dat file reader * Purpose: Implements OGRXPlaneAptReader class * Author: Even Rouault, even dot rouault at mines dash paris dot org * *************************************...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) ...