text
stringlengths
1
1.05M
; A063087: Dimension of the space of weight 2n cusp forms for Gamma_0( 19 ). ; 1,4,8,10,14,18,20,24,28,30,34,38,40,44,48,50,54,58,60,64,68,70,74,78,80,84,88,90,94,98,100,104,108,110,114,118,120,124,128,130,134,138,140,144,148,150,154,158,160,164 mul $0,2 mov $1,1 trn $1,$0 add $1,$0 lpb $0 trn $0,3 add $1,2 lpe mo...
; A037593: Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,3. ; Submitted by Jamie Morken(s4) ; 1,7,52,365,2555,17888,125217,876519,6135636,42949453,300646171,2104523200,14731662401,103121636807,721851457652,5052960203565,35370721424955,247595049974688,1733165349822817 s...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
CNZ_Header: smpsHeaderStartSong 2, 1 smpsHeaderVoice CNZ_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $48 smpsHeaderDAC CNZ_DAC smpsHeaderFM CNZ_FM1, $0C, $08 smpsHeaderFM CNZ_FM2, $F4, $0A smpsHeaderFM CNZ_FM3, $F4, $12 smpsHeaderFM CNZ_FM4, $F4, $12 smp...
TITLE cast-586.asm IF @Version LT 800 ECHO MASM version 8.00 or later is strongly recommended. ENDIF .686 .MODEL FLAT OPTION DOTNAME IF @Version LT 800 .text$ SEGMENT PAGE 'CODE' ELSE .text$ SEGMENT ALIGN(64) 'CODE' ENDIF EXTERN _CAST_S_table0:NEAR EXTERN _CAST_S_table1:NEAR EXTERN _CAST_S_table2:NEAR EXTERN _CAST_S_ta...
; A286690: Positions of 1 in A286688; complement of A286689. ; 5,11,19,25,33,39,45,53,59,67,73,79,87,93,101,107,115,121,127,135,141,149,155,161,169,175,183,189,197,203,209,217,223,231,237,243,251,257,265,271,277,285,291,299,305,313,319,325,333,339,347,353,359,367,373,381,387,395,401,407,415,421,429,435,441,449,455,463,...
; A022361: Fibonacci sequence beginning 0, 27. ; Submitted by Jon Maiga ; 0,27,27,54,81,135,216,351,567,918,1485,2403,3888,6291,10179,16470,26649,43119,69768,112887,182655,295542,478197,773739,1251936,2025675,3277611,5303286,8580897,13884183,22465080,36349263,58814343,95163606,153977949,249141555,403119504,652261059,10...
; A064090: Generalized Catalan numbers C(7; n). ; Submitted by Jon Maiga ; 1,1,8,113,1982,38886,817062,17981769,409186310,9549411950,227307541448,5497312072330,134696099554276,3336563455537768,83419226227330722,2102274863070771033,53347639317495439302,1361987551028758981398,34958891897202640071552,901599097646780732893...
; A320524: Number of chiral pairs of a row of n colors using 6 or fewer colors. ; 0,15,90,630,3780,23220,139320,839160,5034960,30229200,181375200,1088367840,6530207040,39181942080,235091652480,1410554113920,8463324683520,50779973295360,304679839772160,1828079189798400,10968475138790400,65810851739735040,394865110438410...
//===- Utils.cpp ---- Misc utilities for code and data transformation -----===// // // Copyright 2019 The MLIR Authors. // // 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....
; ; ZX81 clock() function ; By Stefano Bodrato - Oct. 2011 ; Back to default FRAMES counter + 1 extra byte ;) ; ; -------- ; $Id: clock.asm,v 1.9 2015/01/19 01:33:25 pauloscustodio Exp $ PUBLIC clock ; XREF frames3 EXTERN _FRAMES .clock IF FORzx81 ld hl,-1 ;ld de,($4034) ld de,(_FRAMES) and a sbc hl,de ELSE ...
[BotW_ExtendedMemory_V208] moduleMatches = 0x6267BFD0 .origin = codecave 0x02C5E660 = lis r9, 0x8B60 ; add 0x50000000 to main gameheap which by default has a fixed size of 0x3B600000. Can't make it larger due to overlay arena being in the way SaveAreaHeapSize = 8 * 1024 * 1024 ; 8MiB (default is 2312KiB) TriggerPa...
/* * Copyright 2017 MapD Technologies, 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 law o...
SECTION code_clib SECTION code_fp_math48 PUBLIC asm_atanh EXTERN am48_atanh defc asm_atanh = am48_atanh
section .text global_start ;must be declared for linker (ld) _start: ;tells linker entry point mov edx,len ;message length mov ecx,msg ;message to write mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ...
; A059125: A self-generated dragon-like folding sequence. ; 0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0 mov $1,$0 mul $0,6 add $0,80 seq $1,59159 ; A hierarchical ...
.386 .model flat, c .code slp_switch_raw PROC save_state:DWORD, restore_state:DWORD, extra:DWORD ;save registers. EAX ECX and EDX are available for function use and thus ;do not have to be stored. push ebx push esi push edi push ebp mov esi, restore_state ; /* save 'restore_state' ...
#include<bits/stdc++.h> using namespace std; int solve(int arr[],int n,int target){ int ans=0; int low=0; int high=n-1; while(low<=high){ int mid=low+(high-low)/2; if(arr[mid]==target){ return arr[mid]; } else if(arr[mid]>target){ high=mid-1; } else{ ans=arr[mid]; ...
; A047515: Numbers that are congruent to {0, 3, 4, 6, 7} mod 8. ; 0,3,4,6,7,8,11,12,14,15,16,19,20,22,23,24,27,28,30,31,32,35,36,38,39,40,43,44,46,47,48,51,52,54,55,56,59,60,62,63,64,67,68,70,71,72,75,76,78,79,80,83,84,86,87,88 add $0,4 mov $1,$0 mul $0,2 add $0,11 div $0,5 mul $0,6 div $0,4 add $0,$1 sub $0,8
char *getenv(const char *name); void sink(const char *sinkparam); // $ ast,ir=global1 ast,ir=global2 void throughLocal() { char * local = getenv("VAR"); sink(local); } char * global1 = 0; void readWriteGlobal1() { sink(global1); // $ ast,ir=global1 global1 = getenv("VAR"); } static char * global2 = ...
; unsigned char p3dos_edrv_from_pdrv(unsigned char pdrv) SECTION code_esxdos PUBLIC _p3dos_edrv_from_pdrv EXTERN asm_p3dos_edrv_from_pdrv _p3dos_edrv_from_pdrv: pop af pop hl push hl push af jp asm_p3dos_edrv_from_pdrv
#include "SctpTimer.h" #include <algorithm> namespace sctp { bool Timer::hasExpired(uint64_t timestamp) const { if (!isRunning()) { return false; } return remainingTime(timestamp) == 0; } void Timer::expireAt(uint64_t timestamp) { _expires = timestamp; _armed = true; } void Timer::st...
; A283551: a(n) = -1 + 5*n/6 + n^3/6. ; -1,0,2,6,13,24,40,62,91,128,174,230,297,376,468,574,695,832,986,1158,1349,1560,1792,2046,2323,2624,2950,3302,3681,4088,4524,4990,5487,6016,6578,7174,7805,8472,9176,9918,10699,11520,12382,13286,14233,15224,16260 add $0,1 mov $1,$0 bin $1,3 add $1,$0 sub $1,2
SECTION .text GLOBAL square_p448_solinas square_p448_solinas: sub rsp, 0x270 ; last 0x30 (6) for Caller - save regs mov [ rsp + 0x240 ], rbx; saving to stack mov [ rsp + 0x248 ], rbp; saving to stack mov [ rsp + 0x250 ], r12; saving to stack mov [ rsp + 0x258 ], r13; saving to stack mov [ rsp + 0x260 ], r14; saving t...
#include <iostream> #include <string> #include <vector> template <typename T> std::istream& operator >>(std::istream& input, std::vector<T>& v) { for (T& a : v) input >> a; return input; } void answer(unsigned v) { std::cout << v << '\n'; } void no_answer() { std::cout << -1 << '\n'; } void...
/* * Source code for the NPGR019 lab practices. Copyright Martin Kahoun 2021. * Licensed under the zlib license, see LICENSE.txt in the root directory. */ #include <Textures.h> #define STB_IMAGE_IMPLEMENTATION #include <stb/stb_image.h> Textures::Textures() : _samplers{0} { stbi_set_flip_vertically_on_load(true...
// Copyright (c) 2012-2017 The Bitcoin Core developers // Copyright (c) 2016-2019 The PIVX developers // Copyright (c) 2021 The DECENOMY Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "clientversion.h" ...
;Parallel Ports & LED Display ;Daniel Noyes, Andrew Haas, Benjamin Doiron ;Group 11, Lab 5, March 13th, 2013 ;*************************************************************************** ;Revision Notes; ; ; Revised Lab 4 and created Lab 5 routines [Dan:March-8-2013] ; ;**************************************...
.file "supersecret.c" .intel_syntax noprefix .def ___main; .scl 2; .type 32; .endef .section .rdata,"dr" .align 4 LC0: .ascii "Enter the super secret password:\0" .align 4 LC1: .ascii "Access granted.\12Hello, Batman!\0" .align 4 LC2: .ascii "Error: the CSI guys are now after you.\0" .text .gl...
; A066665: a(n) = #{(x,y) | 0<=y<=x<=n and x+y is prime}. ; 1,3,5,7,9,11,14,16,19,23,27,31,35,38,42,47,52,56,61,65,70,76,82,88,94,100,107,114,121,128,136,143,150,158,166,175,185,194,203,213,223,233,243,252,262,272,282,291,301,311,322,334,346 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq ...
; A142134: Primes congruent to 25 mod 37. ; Submitted by Jamie Morken(w1) ; 173,617,691,839,1061,1283,1579,1801,1949,2393,2467,2689,2837,3947,4021,4243,4391,4909,5279,5501,6389,6833,6907,7129,7351,7499,7573,8017,8387,8461,8609,8831,9127,9349,9497,9719,9941,10163,10459,10607,10903,11273,11717,11939,12161,12457,13049,135...
; A244174: Number of compositions of 3n in which the minimal multiplicity of parts equals n. ; 1,3,7,21,71,253,925,3433,12871,48621,184757,705433,2704157,10400601,40116601,155117521,601080391,2333606221,9075135301,35345263801,137846528821,538257874441,2104098963721,8233430727601,32247603683101,126410606437753,495918532...
############################################################################### # 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...
struct Foo_empty {}; struct Foo; struct Bar { Foo *f; }; void baz_struct(Foo* f); union Union; void baz_union(Union* u); class Quux; void baz_class(Quux* q);
; A178414: Least odd number in the Collatz (3x+1) preimage of odd numbers not a multiple of 3. ; 1,3,9,7,17,11,25,15,33,19,41,23,49,27,57,31,65,35,73,39,81,43,89,47,97,51,105,55,113,59,121,63,129,67,137,71,145,75,153,79,161,83,169,87,177,91,185,95,193,99,201,103,209,107,217,111,225,115,233,119,241,123,249,127,257,131,2...
; A344853: a(n) = n minus (sum of digits of n in base 3). ; 0,0,0,2,2,2,4,4,4,8,8,8,10,10,10,12,12,12,16,16,16,18,18,18,20,20,20,26,26,26,28,28,28,30,30,30,34,34,34,36,36,36,38,38,38,42,42,42,44,44,44,46,46,46,52,52,52,54,54,54,56,56,56,60,60,60,62,62,62 lpb $0 div $0,3 add $1,$0 lpe mul $1,2 mov $0,$1
[bits 32] VIDEO_MEMORY equ 0xb8000 print_string_pm: pusha mov edx, VIDEO_MEMORY mov ah, 0x0f .printchar: mov al, [ebx] cmp al, 0 je .done mov [edx], ax add edx, 2 inc ebx jmp .printchar .done: popa ret
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0x1b59a, %rsi lea addresses_UC_ht+0x1864a, %rdi clflush (%rsi) cmp $42664, %r12 mov $13, %rcx rep movsl nop cmp $40136, %r9 lea addresses_WT_ht+0x1624a, %rsi lea addresses_D_ht+0x149fa, %rdi clflush...
// Copyright (c) 2017-2020, The Monero Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list o...
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: Scalar_test.cpp (value) // Authors: Kern Handa // //////////////////////////////////////////////////////////////////////////////////////////////////// #i...
add hl, hl add hl, hl add hl, hl add hl, hl add hl, hl ld h, l ld l, 0 ---- ld h, l ld l, 0 add hl, hl add hl, hl add hl, hl add hl, hl add hl, hl
//============================================================================ // Author : Soheil Abbasloo // Version : 1.0 //============================================================================ /* MIT License Copyright (c) Soheil Abbasloo 2020 (ab.soheil@gmail.com) Permission is hereb...
.model small .stack 100h .data .code Main proc Mov ah ,1 Int 21h mov dl,al mov ah ,1 int 21h add al,dl mov dl,al sub dl,48 mov ah,2 int 21h mov ah, 4ch int 21h main endp end main
; A266797: a(n) = (6^n + 4^n + 3*2^n)/8. ; 2,8,38,200,1112,6368,37088,218240,1292672,7689728,45874688,274196480,1640978432,9829081088,58907353088,353175633920,2117979963392,12703584616448,76204327436288,457157244354560,2742668586647552,16454912005111808 add $0,1 mov $3,2 pow $3,$0 mov $1,$3 mov $2,$3 add $2,1 lpb $0 ...
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 57 ...
; ; ZX Spectrum specific routines ; by Stefano Bodrato, Fall 2013 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg_callee.asm,v 1.5 2017-01-02 23:57:08 aralbrec Exp $ ; SECTION code_clib PUBLIC set_psg_callee PUBLIC _set_psg_callee EXTERN __psg_select_and_read_port EXTERN __psg_write...
; A261391: a(n) = n^5 + 5*n^3 + 5*n. ; 0,11,82,393,1364,3775,8886,18557,35368,62739,105050,167761,257532,382343,551614,776325,1069136,1444507,1918818,2510489,3240100,4130511,5206982,6497293,8031864,9843875,11969386,14447457,17320268,20633239,24435150,28778261,33718432,39315243,45632114,52736425,60699636,69597407,795097...
;***************************************************************************** ;* deblock-a.asm: x86 deblocking ;***************************************************************************** ;* Copyright (C) 2005-2017 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Fiona Glaser <fiona@x2...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: icon editor FILE: documentUI.asm AUTHOR: Steve Yegge, Feb 24, 1993 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ * * * OBJECT POOL * * ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1995 -- All Rights Reserved PROJECT: Socket MODULE: access point database FILE: accpntCApi.asm AUTHOR: Eric Weber, May 25, 1995 ROUTINES: Name Description ---- ----------- REVISION HISTO...
; A169200: Number of reduced words of length n in Coxeter group on 43 generators S_i with relations (S_i)^2 = (S_i S_j)^27 = I. ; 1,43,1806,75852,3185784,133802928,5619722976,236028364992,9913191329664,416354035845888,17486869505527296,734448519232146432,30846837807750150144,1295567187925506306048,544138218928712648540...
; A286191: a(n) = (2^n-1)^2 + 2*n. ; 3,13,55,233,971,3981,16143,65041,261139,1046549,4190231,16769049,67092507,268402717,1073676319,4294836257,17179607075,68718952485,274876858407,1099509530665,4398042316843,17592177655853,70368727400495,281474943156273,1125899839733811,4503599493152821,18014398241046583,72057593501057...
MVI A, FEH MVI B, 27H ADD B STA F100H MVI A, 00H JNC NC MVI A, 01H NC: STA F101H RST 1 HLT
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 without restriction, including without limita...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: circle.asm,v 1.6 2016/04/13 21:09:09 dom Exp $ ; ;Usage: circle(struct *pixels) SECTION code_clib PUBLIC circ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %r8 push %rcx push %rdi lea addresses_normal_ht+0x15733, %r15 nop nop nop nop inc %r11 mov $0x6162636465666768, %r8 movq %r8, (%r15) nop nop nop nop nop cmp %r11, %r11 lea addresses_WT_ht+0x10ff3, %r10 sub %r13, %r13 movl $0x61626...
; A169027: Number of reduced words of length n in Coxeter group on 14 generators S_i with relations (S_i)^2 = (S_i S_j)^24 = I. ; 1,14,182,2366,30758,399854,5198102,67575326,878479238,11420230094,148462991222,1930018885886,25090245516518,326173191714734,4240251492291542,55123269399790046,716602502197270598 add $0,1 mo...
; A169355: Number of reduced words of length n in Coxeter group on 6 generators S_i with relations (S_i)^2 = (S_i S_j)^31 = I. ; 1,6,30,150,750,3750,18750,93750,468750,2343750,11718750,58593750,292968750,1464843750,7324218750,36621093750,183105468750,915527343750,4577636718750,22888183593750,114440917968750,57220458984...
; void *sms_memcpy_vram_to_mem_unsafe(void *dst, void *src, unsigned int n) SECTION code_clib SECTION code_arch PUBLIC _sms_memcpy_vram_to_mem_unsafe EXTERN asm_sms_memcpy_vram_to_mem_unsafe _sms_memcpy_vram_to_mem_unsafe: pop af pop de pop hl pop bc push bc push hl push de push af ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x12c7e, %rax clflush (%rax) nop nop nop xor %rdx, %rdx mov (%rax), %r10d nop nop xor $56879, %r11 lea addresses_UC_ht+0x847e, %rsi lea addresses_WC_ht+0x89b3, %rdi nop nop no...
; A052713: E.g.f. (1-sqrt(1-8*x))/2. ; 0,2,8,96,1920,53760,1935360,85155840,4428103680,265686220800,18066663014400,1373066389094400,115337576683929600,10611057054921523200,1061105705492152320000,114599416193152450560000 lpb $0 trn $0,1 seq $0,144828 ; Partial products of successive terms of A017113; a(0)=1. mov ...
; A010685: Period 2: repeat (1,4). ; Submitted by Christian Krause ; 1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4 mod $0,2 mul $0,3 add $0,1
// // detail/win_iocp_socket_send_op.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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.t...
// // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, // copy or use the software. // // // License Agreement // ...
; A061223: a(n) = n^3 + (n + 1)^4 + (n + 2)^5. ; 33,260,1113,3408,8465,18228,35385,63488,107073,171780,264473,393360,568113,799988,1101945,1488768,1977185,2585988,3336153,4250960,5356113,6679860,8253113,10109568,12285825,14821508,17759385,21145488,25029233,29463540,34504953,40213760,46654113,53894148,62006105,71066448,...
GLOBAL systemCallHandler extern systemCallDispatcher section .text systemCallHandler: pushState call systemCallDispatcher popState iretq %macro pushState 0 push rbx push rcx push rdx push rbp push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %end...
;============================================================================== ; Contents of this file are copyright Phillip Stevens ; ; You have permission to use this for NON COMMERCIAL USE ONLY ; If you wish to use it elsewhere, please include an acknowledgement to myself. ; ; https://github.com/feilipu/ ; ; https:...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x16fbc, %rsi lea addresses_UC_ht+0x12e5c, %rdi add %r11, %r11 mov $98, %rcx rep movsb nop nop nop nop sub $23544, %rsi lea addresses_A_ht+0xf5c, %rsi lea addresses_WC_ht+0xc75c, %r...
; ; 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 "msxbios.def" msx_lpt:...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x9b3e, %rsi lea addresses_UC_ht+0x1cfe, %rdi nop nop sub $44730, %rax mov $68, %rcx rep movsw nop nop nop nop nop dec %rcx lea addresses_normal_ht+0x18f3e, %r12 nop nop nop add %r9, %r9...
; A273849: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 969", based on the 5-celled von Neumann neighborhood. ; 1,5,26,71,147,268,437,662,951,1312,1753,2282,2907,3636,4477,5438,6527,7752,9121,10642,12323,14172,16197,18406,20807,2340...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; CpuId.Asm ; ; Abstract: ; ; AsmCpuid function ; ; Notes: ; ;----------------------------------------...
/***************************************************************************************** * SGCT * * Simple Graphics Cluster Toolkit * * ...
; ReadControllers ; Ring counters are used to store controller button state in the address 'Controller<N>' ; Adapted from https://wiki.nesdev.com/w/index.php/Controller_Reading .IF NUMBER_OF_PLAYERS!=0 ReadControllers: ; Set the strobe bit to get controller status LDA #$01 STA CONTROLLER_REGISTER_1 .I...
[BITS 16] [ORG 0] sectors equ 1 interrupt equ 0x13 fallback equ 0xa7 %include 'tests/bios_patches/interrupt_patch.asm' interrupt_handler: pushf cmp ah,0x42 ; ah=0x42 is disk read, which we want to fail je fail popf jmp fallback_handler fail: push bp mov bp,sp or word[ss:bp+8],1 pop bp popf iret ; Padding times (51...
############################################################################### # 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...
; stub.asm ; Copyright 2020 Robin Verhagen-Guest ; ; 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 law or ...
.MODEL SMALL .STACK 100H .DATA PROMPT DB 'ENTER THE DIGIT:$' MSG DB 'THE ENTER DIGIT IS:$' .CODE MAIN PROC MOV AX, @DATA MOV DS, AX LEA DX, PROMPT MOV AH, 9 INT 21H MOV AH, 1 INT 21H MOV BL, AL ...
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714 // // /// // Buffer Definitions: // // cbuffer cbPNTriangles // { // // float4x4 g_f4x4World; // Offset: 0 Size: 64 [unused] // float4x4 g_f4x4ViewProjection; // Offset: 64 Size: 64 // float4x4 g_f4x4WorldViewProjec...
; Student ID : SLAE64-1611 ; Student Name : Jonathan "Chops" Crosby ; Assignment 3 : Egg Hunter (Linux/x86_64) Assembly ; File Name : egghunter.nasm global _start section .text _start: xor rdx, rdx ; zero out rdx so we have a place to ; hold our memory address setup_page: or dx...
; A102613: Numerator of the reduced fractions of the ratios of the number of primes less than n over the number of composites less than n. ; Submitted by Jon Maiga ; 0,1,2,1,3,1,4,1,4,2,5,5,6,3,2,3,7,7,8,2,8,4,9,3,9,9,1,9,10,1,11,11,1,11,11,11,12,6,4,3,13,13,14,7,14,7,15,5,15,3,5,15,16,8,16,2,16,8,17,17,18,9,2,9,18,3,1...
.text .globl main main: li $t0,23 li $t1,9 li $t2, -11 add $t1,$t0,$t1 add $t1,$t1,4 li $t3,14 sub $t2,$t3,$t0 sub $t2,$t1,$t2 sub $t0,$t1,$t2 sub $t0,$t0,15
#������ˮ�߲��ԣ�����ָ���������ԣ�һ��17��ָ�5����ˮ��ִ��������Ӧ����5+(17-1��=21 addi $s0,$zero, 0 addi $s1,$zero, 0 addi $s2,$zero, 0 addi $s3,$zero, 0 ori $s0,$s0, 0 ori $s1,$s1, 1 ori $s2,$s2, 2 ori $s3,$s3, 3 sw $s0, 0($s0) sw $s1, 4($s0) sw $s2, 8($s0) sw $s3, 12($s0) addi $v0,$zero,10 # system call for exit add...
;nasm -f bin -o shutdown.com shutdown.asm org 100h section .text start: cli ; disable interrupts ;chke if APM is ok mov ax, 5300h xor bx, bx int 15h jc APM_error ;connect to APM API mov ax, 5301h xor bx, bx int 15h ;try to set APM version (to 1.2) mov ax, 530Eh m...
; ; Copyright (c) 2010 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...
/* Firmata.cpp - Firmata library Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved. 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 Foundation; either version 2.1 of the Li...
; A156279: 4 times the Lucas number A000032(n). ; 8,4,12,16,28,44,72,116,188,304,492,796,1288,2084,3372,5456,8828,14284,23112,37396,60508,97904,158412,256316,414728,671044,1085772,1756816,2842588,4599404,7441992,12041396,19483388,31524784,51008172,82532956,133541128,216074084,349615212,565689296,915304508,1480993804,23...
// TarHandlerOut.cpp #include "StdAfx.h" #include "Common/ComTry.h" #include "Common/StringConvert.h" #include "Windows/PropVariant.h" #include "Windows/Time.h" #include "TarHandler.h" #include "TarUpdate.h" using namespace NWindows; namespace NArchive { namespace NTar { STDMETHODIMP CHandler::GetFileTimeType(UI...
/* * This file is part of the Nautilus AeroKernel developed * by the Hobbes and V3VEE Projects with funding from the * United States National Science Foundation and the Department of Energy. * * The V3VEE Project is a joint project between Northwestern University * and the University of New Mexico. The Hobbe...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x10837, %rbp add $20051, %r13 mov (%rbp), %rsi nop nop sub $11491, %r15 lea addresses_WC_ht+0x4ee7, %rdx nop nop cmp $50497, %r9 movl $0x61626364, (%rdx) nop nop nop nop nop ad...
; A243136: 512*n^10 - 1280*n^8 + 1120*n^6 - 400*n^4 + 50*n^2 - 1. ; Submitted by Jon Maiga ; -1,1,262087,22619537,457470751,4517251249,28860511751,137379191137,528572943487,1730726404001,4993116004999,13007560326001,31154649926687,69544807113937,146217791079751,291977237261249,557471159562751,1023286908188737,181401172...
// $Id: test_singleton.cpp 80826 2008-03-04 14:51:23Z wotte $ // This example illustrates the performance impact of using the // Double-Checked Locking pattern compared with using the "standard" // practice of acquiring and releasing a lock on every instance() // call. In addition, we compare the performance of ...
%ifdef CONFIG { "RegData": { "XMM0": ["0x7172737475767778", "0x5152535455565758"], "XMM1": ["0x6162636465666768", "0x7172737475767778"] } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx + 8 * 1], rax mov rax, 0x6162636465666768 mov [rdx...
/****************************************************************************** * * Project: MongoDB Translator * Purpose: Implements OGRMongoDBDriver. * Author: Even Rouault, even.rouault at spatialys.com * ****************************************************************************** * Copyright (c) 2015, ...
#include <gtest/gtest.h> #include "HE_Math.h" using namespace HE::Math; static_assert(!IsPow2(0), "HE::Math::IsPow2 failed to pass test"); static_assert(IsPow2(1), "HE::Math::IsPow2 failed to pass test"); static_assert(IsPow2(2), "HE::Math::IsPow2 failed to pass test"); static_assert(IsPow2(1024), "HE::Math::IsPow2 ...
; A120162: a(1)=3; a(n)=floor((14+sum(a(1) to a(n-1)))/4). ; 3,4,5,6,8,10,12,15,19,24,30,37,46,58,72,90,113,141,176,220,275,344,430,538,672,840,1050,1313,1641,2051,2564,3205,4006,5008,6260,7825,9781,12226,15283,19103 add $0,4 mov $2,2 mov $3,2 lpb $0,1 sub $0,$2 sub $0,1 mov $1,$3 add $1,2 sub $1,$2 div $1...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld a, ff ldff(45), a ld b, 91 call lwaitly_b ld hl, fe00 ld d, 10 ld a, d ld(hl++), a ld a, 08 ld(hl++), a inc l inc l ld a, d ld(hl++), ...
; A040210: Continued fraction for sqrt(226). ; Submitted by Christian Krause ; 15,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30 min $0,1 add $0,1 mul $0,15
;***************************************************************************** ;* x86-optimized functions for yadif filter ;* ;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at> ;* Copyright (c) 2013 Daniel Kang <daniel.d.kang@gmail.com> ;* Copyright (c) 2011-2013 James Darnley <james.darnley@gmail.com> ...