text
stringlengths
1
1.05M
; 16-bit compare HL with register ; CMP16 DE == CMP HL, DE CMP16 macro &RP AND A ; Clear carry SBC HL, &RP ADD HL, &RP ; Set flags endm PUSHALL macro PUSH AF PUSH BC PUSH DE PUSH HL PUSH IX PUSH IY endm POPALL macro POP IY POP IX POP HL POP DE POP BC POP AF endm
sty $ff lda ({z1}),y ldy #0 clc adc ({z1}),y sta ({z1}),y ldy $ff iny lda ({z1}),y ldy #1 adc ({z1}),y sta ({z1}),y
; A253430: Number of (n+1) X (3+1) 0..1 arrays with every 2 X 2 subblock diagonal minus antidiagonal sum nondecreasing horizontally, vertically and ne-to-sw antidiagonally. ; 69,70,85,121,193,337,625,1201,2353,4657,9265,18481,36913,73777,147505,294961,589873,1179697,2359345,4718641,9437233,18874417,37748785,75497521,15...
// SPDX-License-Identifier: Apache-2.0 // ---------------------------------------------------------------------------- // Copyright 2011-2020 Arm Limited // // 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 ...
#include <iostream> #include <algorithm> #include <map> #include <vector> #include <tuple> using namespace std; int main() { int N, k, gallery; cin >> N >> k; map<pair<int, int>, pair<bool, int>> art_gallery; vector<tuple<int, int, int>> galleries; for(int i = 0; i < 2; i++) { for(int j...
/* file: regression_training_input.cpp */ /******************************************************************************* * Copyright 2014-2017 Intel Corporation * All Rights Reserved. * * If this software was obtained under the Intel Simplified Software License, * the following terms apply: * * The source code, ...
//================================================================================================= /*! // \file src/mathtest/operations/dmatsmatkron/HDaMIa.cpp // \brief Source file for the HDaMIa dense matrix/sparse matrix Kronecker product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reser...
#ifndef BOOST_MPL_MAP_AUX_ERASE_IMPL_HPP_INCLUDED #define BOOST_MPL_MAP_AUX_ERASE_IMPL_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2003-2004 // Copyright David Abrahams 2003-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://w...
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Diablo Daisy Wheel printer driver FILE: diabloManager.asm AUTHOR: Dave Durran REVISION HISTORY: Name Date Description ---- ---- -----...
//scaling.cpp #include <Rcpp.h> #include <algorithm> // std::set_intersection, std::sort #include <math.h> #include <cmath> #include <vector> // std::vector #include <valarray> #include <numeric> using namespace Rcpp; struct logt { double operator() (double d) const { return std::log10(d); } }; // [[...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: ...
//////////////////////////////////////////////////////////////////////////// // Created : 24.02.2009 // Author : Armen Abroyan // Copyright (C) GSC Game World - 2009 //////////////////////////////////////////////////////////////////////////// #include "pch.h" #include "transform_control_base.h" #include "col...
; A277287: a(n) = binomial(2*n,n) + Sum_{k=1..n} binomial(2*n-k,n-k)*Fibonacci(k). ; Submitted by Christian Krause ; 1,3,10,36,133,499,1891,7217,27690,106680,412368,1598358,6209542,24171004,94246202,368022472,1438965885,5632870627,22072920103,86575738469,339860843589,1335186464195,5249164967309,20650056413491,812855166...
@ libgcc code defines - extracted from lib1funcs.S /* Copyright 1995, 1996, 1998, 1999, 2000, 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This file 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 Softw...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xe2c4, %rsi lea addresses_normal_ht+0x17a9d, %rdi nop nop xor %rdx, %rdx mov $25, %rcx rep movsw inc %r14 lea addresses_A_ht+0x1c69d, %rsi lea addresses_UC_ht+0x114dd, %rdi nop nop cmp %r8, %r8 mo...
; WARNING: FOR MACOS ONLY ; nasm -f macho64 cipher.asm -o cipher.o && ld -o cipher.macho -macosx_version_min 10.7 -e start cipher.o && ./cipher.macho BITS 64 section .text global start start: push rbp mov rbp,rsp ; PRINT OUTPUT push 0xa203a mov DWORD [rsp+0x4],0x0 push 0x76207965 mov DW...
; A272459: The total number of different isosceles trapezoids, excluding squares, that can be drawn on a n X n square grid where the corners of each individual trapezoid lie on a lattice point. ; 0,1,7,18,40,71,119,180,264,365,495,646,832,1043,1295,1576,1904,2265,2679,3130,3640,4191,4807,5468,6200,6981,7839,8750,9744,1...
; A280340: a(n) = a(n-1) + 10^n * a(n-2) with a(0) = 1 and a(1) = 1. ; Submitted by Christian Krause ; 1,1,101,1101,1011101,111111101,1011212111101,1112122222111101,101122323232322111101,1112223344434333322111101,1011224344546565545343322111101,111223345667777878776655443322111101,10112244557699112131212008877564433221...
#include "utils/strings/string-rotation.h" #include <string> #include <algorithm> bool isStringRotation(const std::string &s1, const std::string &s2) { std::string s1Sorted = s1; std::string s2Sorted = s2; // sort is made in place // we could also remove the const keyword and pass both strings as copy...
// // Compute the DFA output (whether it's in an accepting // State) // We will rewrite RAM to contain a table of accepting // states (word i in RAM will be 1 if the state is // accepting and 0 otherwise). // // Note: most of the header parameters and symbols // are taken from the runDFA assembly script. .header words...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distri...
// Test7View.cpp : implementation of the CTest7View class // #include "stdafx.h" #include "Test7.h" #include "Test7Doc.h" #include "Test7View.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ////////////////////////////////////////////////////////////...
/////////////////////////////////////////////////////////////////////////////// // Name: src/generic/clrpickerg.cpp // Purpose: wxGenericColourButton class implementation // Author: Francesco Montorsi (readapted code written by Vadim Zeitlin) // Modified by: // Created: 15/04/2006 // RCS-ID: $I...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x5bb7, %rsi lea addresses_WC_ht+0x8017, %rdi nop nop nop nop and %rdx, %rdx mov $40, %rcx rep movsl nop nop xor $36733, %r15 lea addresses_D_ht+0x1a747, %rbx nop nop add %rdx, %rdx mov...
CopyByteAtHLixToA: MACRO memloc ex de,hl ; save hl ld hl,memloc add hl,a ld a,(hl) ; get XX2[x] ex de,hl ; get hl back as we need it in loop END...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x735e, %rsi lea addresses_WT_ht+0x10c5e, %rdi nop nop nop and $42418, %r12 mov $72, %rcx rep movsq nop nop inc %r13 lea addresses_UC_ht+0x19f5e, %rsi lea addresses_D_ht+0x1285e, %rdi nop nop...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt .MODEL SMALL .STACK 100H .DATA PROMPT_1 DB "Enter HEX no from A to F : $" PROMPT_2 DB 0DH,0AH , "HEX converted to Decimal : $" .CODE MAIN PROC MOV AX , @DATA ...
// // Configuration hacks // // Returns whether configuration is saved in the zero flag. // Must be called with 16-bit A! is_config_saved: // Check magic values. lda.l {sram_config_valid} cmp.w #{magic_config_tag_lo} bne .not_saved lda.l {sram_config_valid} + 2 cmp.w #{magic_config_tag_hi} bne .n...
user/_wc: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 7119 addi sp,sp,-128 2: fc86 sd ra,120(sp) 4: f8a2 sd s0,112(sp) 6: f4a6 sd s1,104(sp) 8: ...
#include "geolocation.h" Geolocation::Geolocation(const char* path_to_mmdb) { db = new GeoLite2PP::DB(path_to_mmdb); } Geolocation::Geolocation() {} Geolocation::~Geolocation() { delete db; db = nullptr; } int Geolocation::get_country_iso_numeric_code(std::string& ip) { try { GeoLite2PP::MStr m...
#include "exporter.hh" #include "registry.hh" #include "registryiterator.hh" #include <utilmm/configfile/configset.hh> #include <utilmm/stringtools.hh> #include <typelib/typevisitor.hh> #include <set> #include <fstream> using namespace Typelib; using namespace std; using utilmm::join; void Exporter::save(std::string ...
pha pha pha
// // Animation View // // // Copyright (C) 2017 Peter Niekamp // #include "animationview.h" #include "assetfile.h" #include "buildapi.h" #include <QMouseEvent> #include <QWheelEvent> #include <QDragEnterEvent> #include <QDropEvent> #include <QUrl> #include <QMimeData> #include <QDebug> using namespace std; using n...
; A097843: First differences of Chebyshev polynomials S(n,123) = A049670(n+1) with Diophantine property. ; Submitted by Jamie Morken(s4) ; 1,122,15005,1845493,226980634,27916772489,3433536035513,422297015595610,51939099382224517,6388086926998019981,785682752921374233146,96632590522402032656977,1188502295150252864257502...
; A175485: Numerators of averages of squares of the first n positive integers. ; 1,5,14,15,11,91,20,51,95,77,46,325,63,145,248,187,105,703,130,287,473,345,188,1225,221,477,770,551,295,1891,336,715,1139,805,426,2701,475,1001,1580,1107,581,3655,638,1335,2093,1457,760,4753,825,1717,2678 mul $0,2 add $0,1 seq $0,27626 ; D...
; A130236: Partial sums of the 'upper' Fibonacci Inverse A130234. ; 0,1,4,8,13,18,24,30,36,43,50,57,64,71,79,87,95,103,111,119,127,135,144,153,162,171,180,189,198,207,216,225,234,243,252,262,272,282,292,302,312,322,332,342,352,362,372,382,392,402,412,422,432,442,452,462,473 mov $14,$0 mov $16,$0 lpb $16,1 clr $0,14 ...
// Copyright 2019 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/ui/webui/chromeos/in_session_password_change/confirm_password_change_handler.h" #include <string> #include "base/check.h" #incl...
; A337004: Turn sequence of the R5 dragon curve. ; 1,1,-1,-1,1,1,1,-1,-1,1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,1,1,1,-1,-1,1,1,1,-1,-1,1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,1,1,1,-1,-1,1,1,1,-1,-1,1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,1,1,1,-1,-1,1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,1,1,1,-1,...
assume cs:code,ds:data data segment pa equ 20a0h pb equ 20a1h pc equ 20a2h cr equ 20a3h rowval db ? colval db ? scode db ? data ends code segment start: mov ax,data mov ds,ax mov dx,cr mov al,90h out dx,al tryagain: mov bl,01h mov bh,03h mov...
// license:BSD-3-Clause // copyright-holders:AJR /********************************************************************** Rockwell R65C19 Microcomputer (MCU) TODO: fully describe this MCU and its successors (C29, C39) and emulate their internal peripherals (only core emulation now) ***********************...
; A098299: Member r=14 of the family of Chebyshev sequences S_r(n) defined in A092184. ; Submitted by Jon Maiga ; 0,1,14,169,2016,24025,286286,3411409,40650624,484396081,5772102350,68780832121,819597883104,9766393765129,116377127298446,1386759133816225,16524732478496256,196910030608138849,2346395634819169934,2795983758...
SECTION code_clib SECTION code_fp_math48 PUBLIC cos EXTERN cm48_sccz80_cos defc cos = cm48_sccz80_cos
/* * Copyright (c) 2012, Michael Lehn, Klaus Pototzky * * 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...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x104f6, %rsi lea addresses_WC_ht+0x586, %rdi clflush (%rsi) nop nop nop nop cmp %rdx, %rdx mov $111, %rcx rep movsb nop nop nop xor $64915, %rbx lea addresses_WT_ht+0x7186, %r...
; A190088: Triangle of binomial coefficients binomial(3*n-k+1,3*n-3*k+1). ; Submitted by Jon Maiga ; 1,1,3,1,15,5,1,36,70,7,1,66,330,210,9,1,105,1001,1716,495,11,1,153,2380,8008,6435,1001,13,1,210,4845,27132,43758,19448,1820,15,1,276,8855,74613,203490,184756,50388,3060,17,1,351,14950,177100,735471,1144066,646646,116280...
// Data section begins .section .data var1: .int 40 var2: .int 20 var3: .int 30 .section .text .globl _start _start: # move the contents of variables movl (var1), %ecx cmpl (var2), %ecx jg check_third_var movl (var2), %ecx check_third_var: cmpl (var3), %ecx jg _exit movl (var3), %ecx _exit: movl $1, %...
; load bootrom at '0x7c00' org 0x7c00 ;org 0x0 ; work in 16-bit mode bits 16 jmp _run _alpha: ; `bl` is the character to be written ; write 'X' to screen and jump infinitely mov bl, '0' alpha: mov ah, 0x0e mov al, bl int 0x10 mov cl, bl inc bl cmp cl, 'z' jne alpha jmp run ...
; ****************************************************************************** ; Lprt - Load the printer driver ; ; Copyright (c) 2021 by Gaston Williams ; ; ****************************************************************************** ; Based on code written by Michael H Riley ; Original copyright notice: ; ******...
title 'Requester Network I/O System for CP/NET 1.2' page 54 ;*************************************************************** ;*************************************************************** ;** ** ;** R e q u e s t e r N e t w o r k I / O S y s t e m ...
; A214061: Least m>0 such that gcd(2*n-1+m, 2*n-m) > 1. ; 2,4,6,2,10,12,2,16,3,2,22,24,2,3,30,2,34,36,2,40,42,2,4,3,2,52,54,2,3,4,2,64,66,2,70,6,2,76,3,2,82,84,2,3,90,2,6,96,2,100,4,2,106,3,2,112,114,2,3,120,2,7,126,2,4,132,2,136,3,2,142,4,2,3,7,2,154,156,2,6,9,2,166,3,2,4,174,2,3,180,2,184,4,2,190,192,2,9,3,2,7,6,2,3,...
* --------------------------------------------------------------------------- * Tilemap - Subroutines to draw a background of tiles * * input REG : none * * --------------------------------------------------------------------------- INCLUDE "./Engine/Graphics/Tilemap/DataTypes/Layer.equ" INCLUDE "./Eng...
; ; Sorcerer Exidy pseudo graphics routines ; Version for the 2x3 graphics symbols (UDG redefined) ; ; Stefano Bodrato 2014 ; ; ; Plot pixel at (x,y) coordinate. ; ; ; $Id: plotpixl.asm,v 1.6 2016-07-02 09:01:36 dom Exp $ ; INCLUDE "graphics/grafix.inc" SECTION code_clib PUBLIC plotpixel ...
; A339196: Number of (undirected) cycles on the n X 2 king graph. ; 7,30,85,204,451,954,1969,4008,8095,16278,32653,65412,130939,262002,524137,1048416,2096983,4194126,8388421,16777020,33554227,67108650,134217505,268435224,536870671,1073741574,2147483389,4294967028,8589934315,17179868898,34359738073,68719476432,137438953...
; A167616: a(n) = Fibonacci(n) - 5. ; Submitted by Jon Maiga ; 0,3,8,16,29,50,84,139,228,372,605,982,1592,2579,4176,6760,10941,17706,28652,46363,75020,121388,196413,317806,514224,832035,1346264,2178304,3524573,5702882,9227460,14930347,24157812,39088164,63245981,102334150,165580136,267914291,433494432,701408728,11349031...
#include "CurlDownloader.hpp" #include <curl/curl.h> bool CurlDownloader::download(const std::string& url, const std::string& destination) const { if (auto curl = curl_easy_init()) { auto fp = fopen(destination.c_str(), "wb"); curl_easy_setopt(curl, CURLOPT_URL, ur...
EXTRN theloop:far code SEGMENT para public 'CODE' ASSUME cs:code .386 LOCALS PUBLIC _wave1,_wave2,_vbuf,_cameralevel _wave1 dw 0,0 _wave2 dw 0,0 _vbuf dw 0,0 _cameralevel dw 0 PUBLIC _sin1024 include sin1024.inc PUBLIC _setborder _setborder PROC FAR push bp mov bp,sp mov dx,3dah in al,dx ...
; A097789: a(n)=4a(n-1)+C(n+4,4),n>0, a(0)=1. ; 1,9,51,239,1026,4230,17130,68850,275895,1104295,4418181,17674089,70698176,282795084,1131183396,4524737460,18098954685,72395824725,289583306215,1158333233715,4633332945486,18533331794594,74133327193326 lpb $0 mov $2,$0 sub $0,1 seq $2,97788 ; a(n)=4a(n-1)+C(n+3,3),n...
############################################################################### # Copyright 2019 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...
// Copyright (c) 2017-2018, NVIDIA CORPORATION. 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 requ...
; uint in_KeyPressed(uint scancode) SECTION code_clib PUBLIC in_KeyPressed PUBLIC _in_KeyPressed EXTERN l_push_di EXTERN l_pop_ei ; Determines if a key is pressed using the scan code ; returned by in_LookupKey. ; enter : l = scan row ; h = key mask ; exit : carry = key is pressed & HL = 1 ; no carry...
; A001966: Wythoff game. ; 2,7,13,18,23,28,34,39,44,49,54,60,65,70,75,81,86,91,96,102,107,112,117,123,128,133,138,143,149,154,159,164,170,175,180,185,191,196,201,206,212,217,222,227,233,238,243,248,253,259,264,269,274,280,285,290,295,301,306,311,316,322,327,332,337,342,348,353,358,363,369,374,379,384,390,395,400,405,41...
; uint kbd_pressed(uint scancode) ; 09.2005 aralbrec XLIB kbd_pressed ; Determines if a key is pressed using the scan code ; returned by kbd_lookup. ; ; enter : l = scan row ; h = key mask ; exit : carry = key is pressed & hl = 1 ; no carry = key not pressed & hl = 0 ; used : af, bc, hl .kbd_presse...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
architecture wdc65816-strict include "../../../src/common/assert.inc" constant a = 0x7f0000 assertZeroPage(a) // ERROR
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L ; ; See "bifrost_h.h" for further details ; ---------------------------------------------------------------- ; void BIFROSTH_showTilePosH(unsigned int lin,unsigned int col) ; callee SEC...
; ----- void xordraw(int x, int y, int x2, int y2) IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION code_graphics PUBLIC xordraw PUBLIC _xordraw EXTERN asm_xordraw .xordraw ._xordraw push ix ld ix,2 add ix,sp ld l,(ix+6) ;y0 ld h,(ix+8) ;x0 ld ...
;generated via makeasms.bat include raster.i include rastlib.i CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP RASTLIB_JUMP pj_set_rast RL_SET_RAST code ends end
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/evidently/model/StartExperimentResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aw...
! crtn.s for solaris 2.0. ! Copyright (C) 1992 Free Software Foundation, Inc. ! Written By David Vinayak Henkel-Wallace, June 1992 ! ! This file 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 ver...
; A137823: Numbers occurring in A137822 : first differences of numbers n such that 3 | sum( Catalan(k), k=1..2n). ; 1,2,3,7,8,21,61,62,183,547,548,1641,4921,4922,14763,44287,44288,132861,398581,398582,1195743,3587227,3587228,10761681,32285041,32285042,96855123,290565367,290565368,871696101,2615088301,2615088302 mov $1...
Name: Move-j.asm Type: file Size: 5779 Last-Modified: '1992-07-14T15:00:00Z' SHA-1: BE71734B6E37ECEFF55703B9DA6CA40EC64829D7 Description: null
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: LaserJet print driver FILE: printcomPCL4Text.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- PrInitFont ...
; A118608: Start with 1 and repeatedly reverse the digits and add 19 to get the next term. ; 1,20,21,31,32,42,43,53,54,64,65,75,76,86,87,97,98,108,820,47,93,58,104,420,43,53,54,64,65,75,76,86,87,97,98,108,820,47,93,58,104,420,43,53,54,64,65,75,76,86,87,97,98,108,820,47,93,58,104,420,43,53,54,64,65,75,76 mov $2,$0 mov ...
//----------------------------------------------------------------------------- /*! * \file compute_metrics.cc * \author Wayne Joubert * \date Wed Sep 23 12:39:13 EDT 2015 * \brief Top-level function to calculate metrics. */ //----------------------------------------------------------------------------- /*---...
/****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved. * iSulad licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan P...
NB_COPIED_TILES EQU 1 NB_EMPTY_TILES EQU 128 - NB_COPIED_TILES TILE_SIZE EQU 16 TOTAL_BYTES equ (NB_COPIED_TILES + NB_EMPTY_TILES) * TILE_SIZE RESULTS_START EQUS "vTestBuf" RESULTS_N_ROWS EQU (NB_COPIED_TILES + 1) * 2 + 1 include "base.inc" ; Test what happens when performing a HDMA with LCD off ; A single tile sho...
/** * Copyright (c) 2016-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. */ #include "...
//================================================================================================== /*! @file @copyright 2016 NumScale SAS @copyright 2016 J.T. Lapreste Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) ...
; A100679: Floor of cube root of tetrahedral numbers. ; 0,1,1,2,2,3,3,4,4,5,6,6,7,7,8,8,9,9,10,10,11,12,12,13,13,14,14,15,15,16,17,17,18,18,19,19,20,20,21,22,22,23,23,24,24,25,25,26,26,27,28,28,29,29,30,30,31,31,32,33,33,34 add $0,3 mul $0,2 add $0,52 mul $0,2 add $0,3 mov $1,1 mov $2,$0 lpb $0 mov $0,1 mul $2,2 ...
// Copyright 2020 the V8 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. #include "src/heap/cppgc/stats-collector.h" #include <algorithm> #include <cmath> #include "src/base/atomicops.h" #include "src/base/logging.h" #inclu...
// Copyright (C) 2011 - 2014 David Reid. See included LICENCE. #ifndef GT_DefaultSceneRenderer_LightGroup #define GT_DefaultSceneRenderer_LightGroup #include <GTGE/Core/Vector.hpp> #if defined(_MSC_VER) #pragma warning(push) #pragma warning(disable:4351) // new behavior: elements of array will be default i...
################################################# # exe7 MIPS assembly # # author: Rogério Peixoto # ################################################# .globl main # data directives .data str: .asciiz "Arquitetura de Computadores"...
; ******************************************************************************************** ; ******************************************************************************************** ; ; Name : mouse.asm ; Purpose : .. ; Created : 15th Nov 1991 ; Updated : 4th Jan 2021 ; Authors : Fred Bowen ; ; ***...
// // Copyright 2020 Google LLC // // 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 agreed to ...
; A033661: Trajectory of 31 under map x->x + (x-with-digits-reversed). ; Submitted by Jamie Morken(s4) ; 31,44,88,176,847,1595,7546,14003,44044,88088,176176,847847,1596595,7553546,14007103,44177144,88354288,176599676,853595347,1597190705,6668108656,13236127322,35608290553,71117571206 mov $2,$0 lpb $2 mov $0,$1 add...
SECTION code_clib PUBLIC w_xorpixel defc NEEDxor = 1 .w_xorpixel INCLUDE "w_pixel.inc"
[bits 64] [extern _Z9task_exitv] [global task_entry] ; NOTE: the addres to the target task needs to be in rax ; we do this to prevent jumping to random code if the task returns task_entry: sti mov rbp, 0 ; mark bottom of stack trace call rax .exit: call _Z9task_exitv ; if the task ever returns just exit jmp $
; A055770: Largest factorial number which divides n. ; Submitted by Jamie Morken(s4) ; 1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,24,1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,24,1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,24,1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,6,1,2,1,2,1,24,1,2,1,2 add $0,1 mov $2,1 mov $3,1 l...
; ; ANSI Video handling for Sharp OZ family ; ; Text Attributes ; m - Set Graphic Rendition ; ; -- ONLY FOO STUFF, FOR NOW !! -- ; ; Stefano Bodrato - Aug. 2002 ; ; ; $Id: f_ansi_attr.asm,v 1.3 2016-06-12 16:06:43 dom Exp $ ; SECTION code_clib PUBLIC ansi_attr EXTERN INVRS .ansi_attr ; and a ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2018 The PandaCash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/license...
;Parameshor Bhandari ;Program: 5 ;Title: String Processing Lab ; org 100h section .data msg1 DB 'Parameshor Bhandari $' msg2 DB 0Ah,0Dh,'Enter the string(Maximum 75 character): $' msg3 DB 0Ah,0Dh,'The character in reverse is: $' exCode DB 0 ;section .bss MAX_LEN DB 3 ACT_LEN DB 0 chars TIMES 4 DB 0 sec...
SECTION code_fp_math16 PUBLIC _frexpf16 EXTERN cm16_sdcc_frexp defc _frexpf16 = cm16_sdcc_frexp
# Turn on the red, green, and blue LEDs on the Longan Nano include gd32vf103.asm # jump to "main" since programs execute top to bottom # we do this to enable writing helper funcs at the top j main # Func: rcu_init # Arg: a0 = RCU base addr # Arg: a1 = RCU config # Ret: none rcu_init: # store config sw a1, ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1a9a4, %r8 add $60869, %rax mov $0x6162636465666768, %rdx movq %rdx, %xmm0 movups %xmm0, (%r8) nop nop add %r13, %r13 lea addresses_A_ht+0x84a4, %rsi lea addresses_WT_ht+0x566...
<% from pwnlib.shellcraft.aarch64.linux import exit as exit from pwnlib.shellcraft.aarch64.linux import mmap from pwnlib.shellcraft.aarch64 import setregs, mov, memcpy from pwnlib.shellcraft import common from pwnlib.util.packing import unpack %> <%page args="address"/> <%docstring> Loads a statica...
; A084266: Binomial transform of A084265. ; 1,3,11,34,96,256,656,1632,3968,9472,22272,51712,118784,270336,610304,1368064,3047424,6750208,14876672,32636928,71303168,155189248,336592896,727711744,1568669696,3372220416,7230980096,15468593152,33017561088,70330089472,149518548992,317290708992,672162381824,1421634174976,3002...
; A140062: 101*2^(n-1) - 100. ; 1,102,304,708,1516,3132,6364,12828,25756,51612,103324,206748,413596,827292,1654684,3309468,6619036,13238172,26476444,52952988,105906076,211812252,423624604,847249308,1694498716 mov $1,2 pow $1,$0 mul $1,101 sub $1,100
//--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 1996 // // File: cenumgrp.cxx // // Contents: LDAP GroupCollection Enumeration Code // // CLDAPGroupCollectionEnum:: // CLDAP...
; void funlockfile(FILE *file) SECTION code_stdio PUBLIC _funlockfile EXTERN asm_funlockfile _funlockfile: pop af pop ix push hl push af jp asm_funlockfile
; ; Grundy Newbrain Specific libraries ; ; Stefano Bodrato - 19/05/2007 ; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; This function is linked only in the non-CP/M version ; it calls the ROM functions via the standard rst entry ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; U...