text stringlengths 1 1.05M |
|---|
Name: zel_bg31.asm
Type: file
Size: 5207
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: CE8B848548D32E6C7193DA7F52B7EE1941254904
Description: null
|
; A142974: A007318 * [1, 1, -1, 1, 1, 1,...].
; 1,2,2,2,4,12,34,86,200,440,934,1938,3964,8036,16202,32558,65296,130800,261838,523946,1048196,2096732,4193842,8388102,16776664,33553832,67108214,134217026,268434700,536870100,1073740954,2147482718
mov $1,1
lpb $0
sub $0,1
mul $1,2
add $3,$2
add $2,2
lpe
sub $1,$3
|
; A305861: a(n) = 32*3^n - 2^(n+5) + 5.
; 5,37,165,613,2085,6757,21285,65893,201765,613477,1856805,5603173,16875045,50756197,152530725,458116453,1375397925,4128290917,12389067045,37175589733,111543546405,334664193637,1004059689765,3012313287013,9037208296485,27112161760357
mov $2,3
mov $3,1
lpb $0,1
sub $0,1
add $... |
;
; FAT operations for MSDOS
;
INCLUDE DOSSEG.ASM
CODE SEGMENT BYTE PUBLIC 'CODE'
ASSUME SS:DOSGROUP,CS:DOSGROUP
.xlist
.xcref
INCLUDE DOSSYM.ASM
INCLUDE DEVSYM.ASM
.cref
.list
TITLE FAT - FAT maintenance routines
NAME FAT
i_need CURBUF,DWORD
i_need CLUSSPLIT... |
// Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifdef BOOST_QVM_TEST_SINGLE_HEADER
# include BOOST_QVM_TEST_SINGLE_HEADER
#else
# include <boos... |
; A028089: Expansion of 1/((1-3x)(1-7x)(1-8x)(1-9x)).
; Submitted by Jon Maiga
; 1,27,466,6558,82075,952329,10485532,111125916,1144265749,11522055831,113982102598,1111567913274,10714164992623,102277469691333,968483992074064,9108558269363832,85172800746064297
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
dif $2,$1
... |
/*
* Copyright (c) 2007, Laminar Research.
*
* 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 limitation
* the rights to use, copy, modify, merge, ... |
; A307421: Dirichlet g.f.: zeta(s) * zeta(3*s) / zeta(2*s).
; 1,1,1,0,1,1,1,1,0,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,0,1,1,1,1,1,1,1,0,1,1,0,1,1,1,1,0,1,1,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1,0,0,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,1,1,1,0,1,1,0,1,0,1,1,1,... |
; A059997: a(n) = (n/2)*(n + 1)*(3*n + 11).
; 14,51,120,230,390,609,896,1260,1710,2255,2904,3666,4550,5565,6720,8024,9486,11115,12920,14910,17094,19481,22080,24900,27950,31239,34776,38570,42630,46965,51584,56496,61710,67235,73080,79254,85766,92625,99840,107420,115374,123711,132440,141570,151110,161069,171456,182280,193... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video Drivers
FILE: vga8Chars.asm
AUTHOR: Jim DeFrisco, Oct 8, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
N... |
SECTION rodata_user
PUBLIC _font_8x8_bubble
_font_8x8_bubble:
; A
defb 0, 0, 0, 0, 0, 0, 0, 0
; B - top left
defb %00000000
defb %00000111
defb %00001000
defb %00010000
defb %00010000
defb %00010000
defb %00010000
defb %00010000
; C - left or right side
defb %00010000... |
.486
.MODEL FLAT
.CODE
PUBLIC _myFunc
_myFunc PROC
; Subroutine Prologue
push ebp ; Save the old base pointer value.
mov ebp, esp ; Set the new base pointer value.
sub esp, 4 ; Make room for one 4-byte local variable.
push edi ; Save the values of registers that the function
push esi ; will m... |
; A158703: a(n) = Hermite(n, 20).
; Submitted by Jon Maiga
; 1,40,1598,63760,2540812,101122400,4019487880,159566046400,6326369025680,250501704284800,9906193528929760,391237707071494400,15431572025223321280,607873176039216985600,23913706168912873070720,939527797827416847232000,36863700728029287697158400,1444483139590694... |
#include "VaryingAttributes.h"
#include <algorithm>
#include "CSE.h"
#include "CodeGen_GPU_Dev.h"
#include "IR.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Simplify.h"
namespace Halide {
namespace Internal {
Stmt make_block(Stmt first, Stmt rest) {
if (first.defined() && rest.defined()) {
... |
/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
;Testname=unoptimized; Arguments=-O0 -fbin -ofloatb.bin; Files=stdout stderr floatb.bin
;Testname=optimized; Arguments=-Ox -fbin -ofloatb.bin; Files=stdout stderr floatb.bin
;; Known problematic floating-point numbers and their proper
;; encoding...
bits 64
dd 1.1e10
dd 0x5023e9ac ; Should be...
dd 50.40e... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r9
push %rax
push %rdi
push %rsi
lea addresses_WT_ht+0x10ff4, %rax
nop
lfence
movw $0x6162, (%rax)
nop
nop
and $50223, %r12
lea addresses_D_ht+0x12074, %r14
nop
nop
nop
nop
cmp $18389, %r15
movw $0x6162, (%r14)
nop
cmp $37971, %r14
pop %rs... |
/*
* Interpolation kernel for chrominance 2x2 motion compensation
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*... |
COMMENT @----------------------------------------------------------------------
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Yoda (Sample PC GEOS application)
FILE: yoda.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 5/90 Initial ve... |
/*
* Project argon-firmware
* Description: Firmware for my talk "Bending the IoT To Your Will With JavaScript"
* Author: Brandon Satrom <brandon@particle.io>
* Date: 09/23/20191
*/
#include "Particle.h"
#include "Air_Quality_Sensor.h"
#include "Adafruit_BME280.h"
#include "SeeedOLED.h"
#include "Grove_ChainableLED... |
; Concerns:
; - those crazy 'switch' statements
; - register use
; - are the right subroutines doing their own jobs, and not another's?
; To work on:
; - stop user from going too low or too high; it breaks the program
;===============================================================================
; Virtual Piano -- a... |
.class iftest:Obj
.method $constructor
.local x,y
load x
const 4
store x
jump labelifcmp0
labelifbody1:
load y
const 1
store y
load y
call Int:print
pop
load x
const 10
store x
jump endlabelifcmp0
labelifcmp0:
load x
const 5
call Int:less
jump_if labelifbody1
labelelse2:
jump labelifcmp3
labelifbody4:
load y
const 5
s... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021 Marco Spedaletti (asimov@mclink.it)
; *
; * Licensed un... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_kk_McMillenLatin1
_ff_kk_McMillenLatin1:
BINARY "font/fzx/fonts/kk/McMillen_Latin1.fzx"
|
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1991 - 1992.
//
// File: Except.hxx
//
// Contents: Macro package for C++ exception support
//
// Classes: CException -- The base for all ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rbx
lea addresses_D_ht+0xa585, %r15
nop
nop
and %r13, %r13
mov (%r15), %r8
nop
nop
cmp $46716, %rbx
pop %rbx
pop %r8
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r8
push %r9
push %rdi
push %rdx
p... |
; A013727: a(n) = 22^(2*n + 1).
; 22,10648,5153632,2494357888,1207269217792,584318301411328,282810057883082752,136880068015412051968,66249952919459433152512,32064977213018365645815808,15519448971100888972574851072,7511413302012830262726227918848,3635524038174209847159494312722432
mul $0,2
add $0,1
mov $1,22
pow $1,$0
... |
/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... |
%include "common.asm"
; export function in this file
global _start
global TimerHandlerEntry
global SystemCallHandlerEntry
; from kernel c file
extern gTaskAddr
extern gGdtInfo
extern gIdtInfo
; from kernel c file
extern KMain
extern ClearScreen
extern SystemCallHandler
; from load.asm(shared memory)
extern InitInte... |
// Copyright 2019 The Fuchsia 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 "root_resource.h"
#include <lib/zx/time.h>
#include "gtest/gtest.h"
class SystemMonitorRootResourceTest : public ::testing::Test {};
TEST_F(Sy... |
segment .text
align 4
global f:function
f:
push ebp
mov ebp, esp
sub esp, 4
push dword 3
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
call printi
add esp, 4
leave
ret
align 4
global _main:function
_main:
align 4
xpl:
push ebp
mov ebp, e... |
song 0 ; note, you don't need to include the size of the song!
; song start
60 64 67
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
; A009948: Coordination sequence for alpha-Nd, Position Nd1.
; 1,12,42,96,170,264,378,516,674,852,1050,1272,1514,1776,2058,2364,2690,3036,3402,3792,4202,4632,5082,5556,6050,6564,7098,7656,8234,8832,9450,10092,10754,11436,12138,12864,13610,14376,15162,15972,16802,17652,18522,19416,20330,21264,22218,23196,24194,25212,262... |
#include "erm/math/math.h"
#include "erm/math/mat.h"
namespace erm::math {
void DecomposeMatrix(
const math::mat4& matrix,
math::vec3& translation,
math::quat& rotation,
math::vec3& scale)
{
translation.x = matrix[3][0];
translation.y = matrix[3][1];
translation.z = matrix[3][2];
rotation = glm::quat_cast(m... |
/// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
///
/// License
/// Copyright 2018-2021 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated documentation files(... |
bootblock.o: formato do arquivo elf32-i386
Desmontagem da seção .text:
00007c00 <start>:
# with %cs=0 %ip=7c00.
.code16 # Assemble for 16-bit mode
.globl start
start:
cli # BIOS enabled interrupts; disable
7c00: fa cli
# Zero data segmen... |
lda ({z1}),y
|
; A278756: Decimal representation of the x-axis, from the origin to the right edge, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 65", based on the 5-celled von Neumann neighborhood.
; 1,0,6,1,28,3,120,7,496,15,2016,31,8128,63,32640,127,130816,255,523776,511,2096128,1023,8386560... |
SECTION code_clib
PUBLIC generic_console_cls
PUBLIC generic_console_printc
PUBLIC generic_console_scrollup
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
PUBLIC generic_console_set_a... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 3/07/2006
;
; Currah uSpeech call, direct call,
; you must pass a string coded with allophones
;
; int currah_direct(char *allophones);
;
;
; $Id: currah_direct.asm,v 1.1 2006/07/03 15:04:15 stefano Exp $
;
XLIB currah_direct
currah_direct:
p... |
STACK SEGMENT STACK
DW 64 DUP(?)
STACK ENDS
DATA SEGMENT
STR1 DB 'STUDENT'
STR2 DB 'T',01H,'E',0FH,'A',01H
DB 'C',0FH,'H',01H,'E',0FH,'R',01H
LEN2 EQU $-STR2
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,SS:STA... |
/*
Original code by Lee Thomason (www.grinninglizard.com)
This software is provided 'as-is', without any express or 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 comme... |
#include "wm/sub-window.h"
#include "gui/so-handle.h"
#include "gui/so-handoff-lib.h"
#include "wm/cross-process-transfer.h"
#include "parser/ast-context.h"
#include <iostream>
#include <stdlib.h>
ADD_TRANSFER_TYPE(SubWindow, 3);
void DrawDecorations(gui::DrawCtx& cr, gui::Rectangle pos) {
cr.set_source_rgb(1.0, 1... |
; **********************************************************************************************************
; **********************************************************************************************************
;
; Superman
;
; **************************************************************************... |
; A013574: Minimal scope of an (n,2) difference triangle.
; 3,7,10,12,15,19,22,24,27,31,34,36,39,43,46,48,51,55,58,60,63,67,70,72,75,79,82,84,87,91,94,96,99,103,106,108,111,115,118,120,123,127,130,132,135,139,142,144,147,151,154,156,159,163,166,168,171,175,178,180,183,187,190,192,195,199,202,204,207,211,214,216,219,223... |
; A207643: a(n) = 1 + (n-1) + (n-1)*[n/2-1] + (n-1)*[n/2-1]*[n/3-1] + (n-1)*[n/2-1]*[n/3-1]*[n/4-1] +... for n>0 with a(0)=1, where [x] = floor(x).
; Submitted by Jon Maiga
; 1,1,2,3,7,9,26,31,71,129,262,291,1222,1333,2198,5139,11881,12673,39594,41923,117326,251841,354292,371163,1870453,2598577,3456926,7103955,16665859... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xd145, %rsi
nop
nop
nop
nop
add %rdi, %rdi
mov (%rsi), %rbx
sub $48397, %rsi
lea addresses_UC_ht+0x14d35, %rsi
lea addresses_D_ht+0x1b635, %rdi
nop
nop
sub %rbp, %rbp
mov $76... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QLabel>
#include <QImage>
#include <QPainter>
void MainWindow::title_logo()
{
//绘制LOGO(单图,图片位于资源文件)
QImage logo_image;
logo_image.load(":/icon/img/LOGO.png");
QPainter logo_Pai(&logo_image);
QImage logo_ResultImg = logo_image.scaled(ui... |
; main.s
; Runs on any Cortex M processor
; A very simple first project implementing a random number generator
; Daniel Valvano
; May 12, 2015
; This example accompanies the book
; "Embedded Systems: Introduction to Robotics,
; Jonathan W. Valvano, ISBN: 9781074544300, copyright (c) 2019
; For more information abo... |
.global s_prepare_buffers
s_prepare_buffers:
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x155b, %rsi
lea addresses_WC_ht+0xc903, %rdi
nop
nop
nop
add %rbx, %rbx
mov $61, %rcx
rep movsb
nop
nop
nop
add $19141, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
ret
.global s_faulty_load
s_faulty_load:
push %r... |
_FuchsiaCityText1::
text "Did you try the"
line "SAFARI GAME? Some"
cont "#MON can only"
cont "be caught there."
done
_FuchsiaCityText2::
text "SAFARI ZONE has a"
line "zoo in front of"
cont "the entrance."
para "Out back is the"
line "SAFARI GAME for"
cont "catching #MON."
done
_FuchsiaCityText3::
text... |
; A194113: a(n) = Sum_{j=1..n} floor(j*sqrt(10)); n-th partial sum of Beatty sequence for sqrt(10).
; 3,9,18,30,45,63,85,110,138,169,203,240,281,325,372,422,475,531,591,654,720,789,861,936,1015,1097,1182,1270,1361,1455,1553,1654,1758,1865,1975,2088,2205,2325,2448,2574,2703,2835,2970,3109,3251,3396,3544,3695,3849,4007,4... |
// load into A
@1234
// transfer into D
D=A
// add D and A e.g. 2*x
D = D + A
// load address
@2345
// write into M
M=D
(END)
@2345
M=M+1
@END
0;JMP
|
; A004493: Tersum n + 4.
; Submitted by Jamie Morken(s1)
; 4,5,3,7,8,6,1,2,0,13,14,12,16,17,15,10,11,9,22,23,21,25,26,24,19,20,18,31,32,30,34,35,33,28,29,27,40,41,39,43,44,42,37,38,36,49,50,48,52,53,51,46,47,45,58,59,57,61
seq $0,4482 ; Tersum n + 1 (answer recorded in base 10).
seq $0,4492 ; Tersum n + 3.
|
; A036551: a(n) = 2^(n-1)*(3^n-1) + 1.
; 1,3,17,105,641,3873,23297,139905,839681,5038593,30232577,181397505,1088389121,6530342913,39182073857,235092475905,1410554920961,8463329656833,50779978203137,304679869743105,1828079219507201,10968475319140353,65810851919036417
mov $1,3
pow $1,$0
mov $2,$0
lpb $2
mul $1,2
sub... |
#define SERVICE_CLASS 0x17dc9a1c
#define SENSOR_SIZE 2
txp_variant equ txp_serv0
BYTE t_sample
.sensor_impl
.serv_init EXPAND
.mova streaming_interval, 20
ENDM
.serv_process EXPAND
.t16_chk t16_1ms, t_sample, <goto do_light_sample>
.sensor_process
ENDM
.serv_prep_tx EXPAND
if (txp_variant... |
; A262543: Number of rooted asymmetrical polyenoids of type U_n* having n edges.
; 0,2,4,10,28,84,264,858,2860,9724,33592,117572,416024,1485800,5348880,19389690,70715340,259289580,955277400,3534526380,13128240840,48932534040,182965127280,686119227300,2579808294648,9723892802904,36734706144304,139067101832008,5274959035... |
#include <bits/stdc++.h>
#define MAXN 500005
using namespace std;
vector <int> e[MAXN],g[MAXN];
int n,m,u,v,a[MAXN],in[MAXN],out[MAXN];
long long ans,ve[MAXN],vl[MAXN];
bool vis[MAXN];
queue <int> q;
inline void read(int &x)
{
x=0;char ch=getchar();
while (ch<'0'||ch>'9') ch=getchar();
while (ch>='0'&&ch<='9') x=(... |
; Generated from x86id.c by GCC 3.2.3 with -O -S -I. -masm=intel.
; Many changes made to make nasm-syntax compatible.
;.file "x86id.c"
;#APP
;.ident "$Id$"
;#NO_APP
[extern yasm_internal_error_]
[extern yasm_expr_copy]
[extern yasm_expr_expr]
[extern yasm_expr_new]
[extern yasm_symrec_define_label]
[extern yasm_x86_... |
; A041370: Numerators of continued fraction convergents to sqrt(200).
; Submitted by Jon Maiga
; 14,99,2786,19601,551614,3880899,109216786,768398401,21624372014,152139002499,4281516441986,30122754096401,847718631141214,5964153172084899,167844007449518386,1180872205318713601,33232265756373499214,233806732499933208099,65... |
; A094375: a(n)=(4^n-2^n)/2+3^n.
; Submitted by Christian Krause
; 1,4,15,55,201,739,2745,10315,39201,150499,582825,2273275,8918001,35144659,138992505,551203435,2190497601,8719009219,34747027785,138600952795,553242074001,2209482560179,8827471984665,35278511073355
mov $1,3
pow $1,$0
mov $2,2
pow $2,$0
bin $2,2
add $1,$... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "db.h"
#include "net.h"
#include "init.h"
#include "strl... |
; A051162: Triangle T(n,k) = n+k, n >= 0, 0 <= k <= n.
; 0,1,2,2,3,4,3,4,5,6,4,5,6,7,8,5,6,7,8,9,10,6,7,8,9,10,11,12,7,8,9,10,11,12,13,14,8,9,10,11,12,13,14,15,16,9,10,11,12,13,14,15,16,17,18,10,11,12,13,14,15,16,17,18,19,20,11,12,13,14,15,16,17,18,19,20,21,22,12,13,14,15,16,17,18,19,20,21,22,23,24,13,14,15,16,17,18,19... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1eef8, %r10
nop
add $48169, %r12
mov (%r10), %rcx
nop
nop
nop
and $9852, %r9
lea addresses_A_ht+0x3236, %rsi
lea addresses_UC_ht+0x1870b, %rdi
nop
nop
nop
nop
add %rbx, %rbx
... |
; A084859: Binomial transform of Cullen numbers A002064.
; 1,4,16,62,232,842,2980,10334,35248,118610,394684,1301126,4255624,13825658,44657428,143521838,459230560,1463719586,4649308012,14722502870,46491507256,146447041994,460259735236,1443537130622
mov $1,$0
mov $3,1
lpb $0,1
sub $0,1
mul $1,2
add $2,$1
mov $1,... |
#include "gsTexture.hpp"
#include "gsMath.hpp"
#include "../lodepng/lodepng.h"
#include <iostream>
#include <string>
using std::cerr;
using std::endl;
void gs::Texture::Blit(const shared_ptr<const gs::Texture>& source, const gs::Vec2i& offset)
{
for (int sourceX = 0; sourceX < source->GetWidth(); ++sourceX)
... |
/*
* 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 may no... |
; A036154: a(n) = 2^n mod 181.
; 1,2,4,8,16,32,64,128,75,150,119,57,114,47,94,7,14,28,56,112,43,86,172,163,145,109,37,74,148,115,49,98,15,30,60,120,59,118,55,110,39,78,156,131,81,162,143,105,29,58,116,51,102,23,46,92,3,6,12,24,48,96,11,22,44,88,176,171,161,141,101,21,42,84,168,155,129,77,154,127,73,146,111,41,82,164,14... |
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#include "simd/simd.h"
namespace starrocks::vectorized {
template <PrimitiveType PT>
void JoinBuildFunc<PT>::prepare(RuntimeState* runtime, JoinHashTableItems* table_items) {
table_items->bucket_size = JoinHashMapHe... |
RenderScore:
ld de, scoreboard
ld hl, _SCRN0 + 32*17
call RenderString
ret
UpdateScore:
ld a, [scores]
add a, $30
ld [_SCRN0+32*17+3], a
ld a, [scores+1]
add a, $30
ld [_SCRN0+32*17+19], a
ret |
; A255766: Partial sums of A255745.
; 1,12,23,133,144,254,364,1464,1475,1585,1695,2795,2905,4005,5105,16105,16116,16226,16336,17436,17546,18646,19746,30746,30856,31956,33056,44056,45156,56156,67156,177156,177167,177277,177387,178487,178597,179697,180797,191797
mov $2,$0
mov $5,$0
lpb $2
mov $0,$5
sub $2,1
sub $0... |
// Copyright 2019 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... |
; A274104: a(n) = Sum_{k=0..n} (3*k+2)*Catalan(k).
; 2,7,23,78,274,988,3628,13495,50675,191673,729145,2786655,10691111,41150011,158825371,614483086,2382366586,9253540456,36001307656,140269835866,547245301906,2137552658206,8358366985726,32715599554876,128168506456852,502538379368656,1971926625140816,7743211351169148
mu... |
;*****************************************************************************
;* pixel.asm: x86 pixel metrics
;*****************************************************************************
;* Copyright (C) 2003-2020 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Holger Lubitz <holger@l... |
page ,132
subttl emftran.asm - Transcendentals
;***
;emftran.asm - Transcendentals
;
; Copyright (c) 1986-89, Microsoft Corporation
;
;Purpose:
; Transcendentals
;
; This Module contains Proprietary Information of Microsoft
; Corporation and should be treated as Confidential.
;
;Revision History:
; See ... |
;
; Code to work around lack of ix on 808x processors
;
SECTION code_clib
PUBLIC __printf_increment_chars_written
PUBLIC __printf_write_chars_written
PUBLIC __printf_is_padding_zero
PUBLIC __printf_get_fp
PUBLIC __printf_get_print_function
PUBLIC __printf_set_flags
PUBLIC __printf_set_width
PUBLIC __printf_get_base
P... |
/**
* @file cel_render.hpp
*
* CEL rendering.
*/
#pragma once
#include <utility>
#include "engine.h"
#include "items.h"
#include "engine/cel_sprite.hpp"
#include "engine/point.hpp"
namespace devilution {
/**
* Returns a pair of X coordinates containing the start (inclusive) and end (exclusive)... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x14008, %r8
nop
nop
nop
nop
dec %r12
movl $0x61626364, (%r8)
nop
nop
nop
nop
nop
sub $43213, %r15
lea addresses_normal_ht+0x1d86c, %rcx
nop
nop
and %r14, %r14
mov (%... |
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYING, ... |
copyright zengfr site:http://github.com/zengfr/romhack
00A2C6 dbra D0, $a2c0
copyright zengfr site:http://github.com/zengfr/romhack
|
;
; Z88dk Z88 Maths Library
;
;
; $Id: deq.asm,v 1.3 2015/01/21 10:56:30 stefano Exp $
PUBLIC deq
EXTERN fsetup
EXTERN stkequcmp
INCLUDE "fpp.def"
; TOS != FA?
.deq
call fsetup
fpp(FP_EQ)
jp stkequcmp
|
; A275795: The x members of the positive proper solutions (x = x2(n), y = y2(n)) of the second class for the Pell equation x^2 - 2*y^2 = +7^2.
; 11,57,331,1929,11243,65529,381931,2226057,12974411,75620409,440748043,2568867849,14972459051,87265886457,508622859691,2964471271689,17278204770443,100704757350969,586950339335... |
// Copyright (c) 2014-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "consensus/validation.h"
#include "script/standard.h"
#include "test/test_luk.h"
#include "uint25... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The Nscoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licen... |
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt o... |
;Write an 8051 ASM program to perform addition of two 8-bit numbers
;97H and 76H and store the result at address location 55H
ORG 0000H
MOV A,#97H
ADD A,#76H
MOV 55H,A
END ;Deeptimaan Banerjee |
#include "package_manager.hpp"
void Libre::PackageManager::update() {
this->show_message(_("Update Packages"), "");
for (int i = 0; i < this->packages.size(); i++) {
system(("git -C " + HOME(this->packages[i]) + " pull").c_str());
this->show_message(
_("Update Packages"),
std::string(_("Updating")) + ... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall fork. See 'man 2 fork' for more information.
Arguments:
</%docstring>
${syscall('SYS_fork')}
|
EmotionBubble:
ld a, [wWhichEmotionBubble]
ld c, a
ld b, 0
ld hl, EmotionBubblesPointerTable
add hl, bc
add hl, bc
ld e, [hl]
inc hl
ld d, [hl]
ld hl, vChars1 + $780
lb bc, BANK(EmotionBubbles), $04
call CopyVideoData
ld a, [wUpdateSpritesEnabled]
push af
ld a, $ff
ld [wUpdateSpritesEnabled], a
ld a, [... |
; A001950: Upper Wythoff sequence (a Beatty sequence): a(n) = floor(n*phi^2), where phi = (1+sqrt(5))/2.
; 2,5,7,10,13,15,18,20,23,26,28,31,34,36,39,41,44,47,49,52,54,57,60,62,65,68,70,73,75,78,81,83,86,89,91,94,96,99,102,104,107,109,112,115,117,120,123,125,128,130,133,136,138,141,143,146,149,151,154,157,159,162,164,16... |
; Parallel Driver versions
section version
xdef par_vers
; V2.00 First version.
;
; V2.01 Dynamic output buffering added.
;
; V2.02 Set and read headers added to V2.01.
;
; V2.03 Interrupt server modified for Canon PW1080A, PAR_PULSE added.
;
; V2.04 Zero length translated strings now OK.
;
; V2.05 Sta... |
; A083174: Leading diagonal of A083173.
; Submitted by Jon Maiga
; 2,9,15,42,55,117,119,228,207,435,341,666,533,903,705,1272,1003,1647,1273,2130,1533,2607,1909,3204,2425,3939,2781,4494,3161,5085,3937,6288,4521,7089,5215,8154,5809,9291,6513,10380,7339,11403,8213,12738,8865
mov $1,$0
seq $0,107621 ; Primes multiplied al... |
// Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_CG_IMPL_PARAMETER_CONVERT_ELEMENT_TYPE_HPP_INCLUDED
#define SGE_CG_IMPL_PARAMETER_CONVE... |
SECTION code_clib
PUBLIC generic_console_xypos
EXTERN __console_w
defc DISPLAY = 0xf000
generic_console_xypos:
ld hl,DISPLAY
ld de,(__console_w)
ld d,0
and a
sbc hl,de
inc b
generic_console_printc_1:
add hl,de
djnz ... |
;/***********************************************************************************************************************************/
;/**@file rfid_WriteHandle.asm
;* @brief
;* @details
;*
;* @author Justin Reina, UW Sensor Systems Lab
;* @created
;* @last rev
;*
;* @notes
;*
;* @section
;*
;* @todo Show the writ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_snprintf_72a.cpp
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-72a.tmpl.cpp
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: listen_s... |
; subroutine for reading the contents of a "struct sp1_pss" into registers
; 02.2008 aralbrec
; sinclair spectrum version
SECTION code_temp_sp1
PUBLIC SP1PSPOP
; enter : de = & string to print (or something else)
; hl = & struct sp1_pss to read
;
; exit : hl = & string to print (or something else)
; ... |
SECTION code_l
PUBLIC l_fast_htou
EXTERN l_char2num
l_fast_htou:
; ascii hex string to unsigned integer
; whitespace is not skipped, leading 0x not consumed
; char consumption stops on overflow
;
; enter : de = char *buffer
;
; exit : de = & next char to interpret in buffer
; hl = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.