text stringlengths 1 1.05M |
|---|
;
; Include code from halmps
; This is a cpp style symbolic link
MMTIMER equ 1
include ..\..\halmps\i386\mpprofil.asm
|
/*
Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... |
#include "nfa.h"
#include <stack>
using namespace std;
namespace ns {
Nfa::Nfa() {
auto s1 = get_state();
entry_ = s1;
}
Nfa::Nfa(char c) {
auto s1 = get_state();
auto s2 = get_state();
s1->connect(c, s2);
entry_ = s1;
accepts_.insert(s2);
}
Nfa::~Nfa() {
for (auto s : states_) {
delete s;
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x14ad0, %rsi
lea addresses_D_ht+0x21b0, %rdi
nop
nop
nop
nop
nop
add $36665, %r8
mov $119, %rcx
rep movsw
nop
nop
and $16072, %rbx
lea addresses_normal_ht+0x2ff9, %rsi
nop
nop... |
; ---------------------------------------------------------------------------
; Sprite mappings - trapdoor (SBZ)
; ---------------------------------------------------------------------------
dc.w byte_158E6-Map_obj69
dc.w byte_158FB-Map_obj69
dc.w byte_15924-Map_obj69
byte_158E6: dc.b 4
dc.b $F4, $E, 0, ... |
; A296159: Sum of the smaller parts in the partitions of n into two distinct parts with the larger part odd.
; 0,0,0,1,2,1,2,4,6,4,6,9,12,9,12,16,20,16,20,25,30,25,30,36,42,36,42,49,56,49,56,64,72,64,72,81,90,81,90,100,110,100,110,121,132,121,132,144,156,144,156,169,182,169,182,196,210,196,210,225,240,225
lpb $0,1
s... |
/*
*/
#include <boost/math/special_functions/next.hpp>
#include <iostream>
#include <limits>
#include <stdexcept>
#include "Functions.hpp"
int main()
{
/* 2.5.1 */
// a) Test the classify function with following values:
double val = std::numeric_limits<double>::max();
std::cout << "For val = numeric_limits... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2009 - 2015, 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... |
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 2000.
//
// File: Strategy.cxx
//
// Contents: Encapsulates strategy for choosing indexes
//
// History: 03-Nov-94 KyleP Created.
//
//-----... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer cbSimulationConstants
// {
//
// uint g_iNumParticles; // Offset: 0 Size: 4 [unused]
// float g_fTimeStep; // Offset: 4 Size: 4 [unused]
// float g_fSmoo... |
; A069126: Centered 13-gonal numbers.
; 1,14,40,79,131,196,274,365,469,586,716,859,1015,1184,1366,1561,1769,1990,2224,2471,2731,3004,3290,3589,3901,4226,4564,4915,5279,5656,6046,6449,6865,7294,7736,8191,8659,9140,9634,10141,10661,11194,11740,12299,12871,13456,14054,14665,15289,15926,16576,17239,17915,18604,19306,20021,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1a1f0, %rsi
lea addresses_UC_ht+0x165f0, %rdi
clflush (%rsi)
nop
nop
nop
sub %r14, %r14
mov $53, %rcx
rep movsb
nop
and $54093, %rbx
lea addresses_WC_ht+0x3138, %rbx
nop
nop
inc %r8
mov... |
; A313927: Coordination sequence Gal.5.135.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,10,16,22,28,34,40,45,50,55,60,66,72,78,84,90,95,100,105,110,116,122,128,134,140,145,150,155,160,166,172,178,184,190,195,200,205,210,216,... |
/** @file
*
* @ingroup dspSoundFileLib
*
* @brief Tests for the #TTSoundfileLoader class
*
* @details Tests the core functions of the TTSoundfileLoader class in order to ensure that things are working after a build. It also demostrate how to make calls to common methods within the class.@n
* IMPORTANT NOTE: Bec... |
;
; 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... |
Music_Vermilion_Ch1::
tempo 156
volume 7, 7
duty 3
vibrato 12, 3, 4
toggleperfectpitch
Music_Vermilion_branch_b9f6::
notetype 12, 11, 5
octave 3
E_ 4
C# 1
D_ 1
E_ 2
A_ 4
B_ 2
A_ 2
G# 2
F# 2
E_ 2
F# 2
A_ 4
F# 1
G# 1
A_ 2
E_ 4
C# 2
E_ 2
A_ 2
G# 2
B_ 2
A_ 2
G# 2
E_ 2
F# 2
G# 2
C# 2
D_ 2... |
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
halt
|
; A071725: Expansion of (1+x^2*C^4)*C, where C = (1 - sqrt(1-4*x))/(2*x) is g.f. for Catalan numbers, A000108.
; Submitted by Jon Maiga
; 1,1,3,10,34,117,407,1430,5070,18122,65246,236436,861764,3157325,11622015,42961470,159419670,593636670,2217608250,8308432140,31212003420,117544456770,443690433654,1678353186780,636132... |
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. 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 sou... |
[bits 16] ; tell assembler that working in real mode(16 bit mode)
[org 0x7c00] ; organize from 0x7C00 memory location where BIOS will load us
start:
; cls
mov ax, 0xb800
push ax
mov es, ax
xor di, di
mov cx, 0x07d0
mov ax, 0x0000
rep stosw
pop ax
mov ds, ax
mov bl, '0' ;; i... |
#include <fstream>
#include <ShlObj.h>
#include "json/json.h"
#include "Config.h"
Config::Config(const char* name) noexcept
{
if (PWSTR pathToDocuments; SUCCEEDED(SHGetKnownFolderPath(FOLDERID_Documents, 0, nullptr, &pathToDocuments))) {
path = pathToDocuments;
path /= name;
CoTaskMemFree... |
.file "project.c"
.def __main; .scl 2; .type 32; .endef
.section .rdata,"dr"
.LC0:
.ascii "\12Input number: \0"
.LC1:
.ascii "%d\0"
.LC2:
.ascii "%d is positive.\0"
.LC3:
.ascii "%d is negative.\0"
.LC4:
.ascii "%d is zero.\0"
.text
.globl main
.def main; .scl 2; .type 32; .endef
.seh_proc main
main:
pushq... |
/*
* 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... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; int bv_stack_push(bv_stack_t *s, int c)
;
; Push item onto stack.
;
; ===============================================================
SECTION code_clib
SECTION code_adt_b... |
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
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 ... |
; A168919: Number of reduced words of length n in Coxeter group on 50 generators S_i with relations (S_i)^2 = (S_i S_j)^21 = I.
; 1,50,2450,120050,5882450,288240050,14123762450,692064360050,33911153642450,1661646528480050,81420679895522450,3989613314880600050,195491052429149402450,9579061569028320720050,469374016882387... |
/**
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "TESProcess.h"
#include "BaseLib/Function... |
51_Header:
sHeaderInit ; Z80 offset is $C51B
sHeaderPatch 51_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 51_FM5, $00, $08
51_FM5:
sPatFM $00
ssModZ80 $01, $01, $E0, $14
dc.b nEb3, $09
sStop
51_Patches:
; Patch $00
; $3E
; $00, $05, $04, $04, $1F, $1F, $16, $16
; $00, $00, $00, $00, ... |
; A264448: a(n) = n*(n + 11)*(n + 22)*(n + 33)/24.
; 0,391,910,1575,2405,3420,4641,6090,7790,9765,12040,14641,17595,20930,24675,28860,33516,38675,44370,50635,57505,65016,73205,82110,91770,102225,113516,125685,138775,152830,167895,184016,201240,219615,239190,260015,282141,305620,330505
mov $1,10
mov $2,4
mov $3,$0
mov ... |
origin $003F0000
text_menu:
gameMenu($05, "ARMAS ")
gameMenu($05, "ITENS ")
gameMenu($05, "HERÓI ")
gameMenu($04, "MAPA ")
gameMenu($06, "SALVAR ")
gameMenu($03, "OK? ")
status_menu:
gameStatusMenu($05, $0D, $08, "NÍVEL")
gameStatusMenu($05, $0D, $0A, "SAÚDE")
gameStatusMenu... |
// Copyright 2013 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 "storage/browser/fileapi/quota/quota_reservation.h"
#include "base/bind.h"
#include "storage/browser/fileapi/quota/open_file_handle.h"
#include ... |
lda ({z2}),y
sta {m1}
lda #0
sta {m1}+1
|
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
; A103480: Row sums of A103462.
; 1,2,4,7,13,28,72,217,741,2790,11388,49875,232781,1151928,6018800,33087221,190780229,1150653938,7241710948,47454745823,323154696205,2282779990516,16700904488728,126356632390321,987303454928997
mov $4,$0
lpb $0
sub $0,1
mov $2,$0
add $3,1
pow $2,$3
add $1,$2
lpe
add $1,1
add $... |
TITLE id_util.asm - internal debug utilities
;***
;id_util.asm - internal debug utilities
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
; Utilities used for non-RELEASE versions of the common runtime.
;
;****************************************************************************
INCLUDE switch.inc
INCL... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Dumb ASCII (Unformatted) Print Driver
FILE: dumbInfo.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
---- ---- --... |
; A310372: Coordination sequence Gal.4.52.4 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,4,10,14,18,22,28,32,36,42,46,50,54,60,64,68,74,78,82,86,92,96,100,106,110,114,118,124,128,132,138,142,146,150,156,160,164,170,174,178,182,1... |
// Copyright (c) 2013 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 "net/quic/crypto/aes_128_gcm_decrypter.h"
#include <openssl/evp.h>
#include "base/memory/scoped_ptr.h"
#include "net/quic/crypto/scoped_evp... |
;;----------------------------------------------------------------------------;;
;; Char to upper case for familar wiki search function.
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the Li... |
#include "pxlpch.h"
#include "Application.h"
#include "Pixel/Event/ApplicationEvent.h"
#include "Pixel/Log.h"
namespace Pxl {
Application::Application()
{
}
Application::~Application()
{
}
void Application::Run()
{
WindowResizeEvent e(1280, 720);
PXL_TRACE(e);
while (true);
}
}
|
; A236185: Differences between terms of compacting Eratosthenes sieve for prime(4) = 7.
; 4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2
mod $0,8
mov $2,2
mov $3,$0
mod $3,2
mov $4,$0
add $4,$... |
; A130526: A permutation of the integers induced by the lower and upper Wythoff sequences.
; 0,1,-1,2,3,-2,4,-3,5,6,-4,7,8,-5,9,-6,10,11,-7,12,-8,13,14,-9,15,16,-10,17,-11,18,19,-12,20,21,-13,22,-14,23,24,-15,25,-16,26,27,-17,28,29,-18,30,-19,31,32,-20,33,-21,34,35,-22,36,37,-23,38,-24,39,40,-25,41,42,-26
mov $2,$0
ca... |
; A188083: [nr+kr]-[nr]-[kr], where r=sqrt(3), k=2, [ ]=floor.
; 1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0
add $0,2
seq $0,188071 ; [nr]-[kr]-[nr-kr], where r=sq... |
global _start
section .data
align 16
myquad:
dq 0x1234567890abcdef
mydword:
dd 0xcafebabe
myaddress:
dd 0xdeadbeef
%include "header.inc"
movd mm0, [mydword]
movd [myaddress], mm0
movd mm1, [myaddress]
movd eax, mm0
movd mm4, eax
mov eax, 0x42
movd mm6, eax
%include "footer.inc"
|
#include <vector>
#include <string>
#include <map>
#include <list>
#include <ros/ros.h>
#include <tf/tf.h>
#include <tf/transform_listener.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <nav_msgs/OccupancyGrid.h>
#include <nav_msgs/Path.h>
#include <geometry_msgs/PoseStamped.h>
#in... |
; A050403: Partial sums of A051877.
; Submitted by Jamie Morken(s1.)
; 1,13,70,252,714,1722,3696,7260,13299,23023,38038,60424,92820,138516,201552,286824,400197,548625,740278,984676,1292830,1677390,2152800,2735460,3443895,4298931,5323878,6544720,7990312,9692584,11686752,14011536,16709385,19826709,23414118,27526668,32224... |
/**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
;########################################################################
;
; Bidirectional scroller demo with adjacent screen masks
; that allow describe a compelx topology of a map
;
; Copyright 2019-2020 0x8BitDev ( MIT license )
;
;########################################################################
;... |
clc
lda {m2}
adc {c1},y
sta {m1}
lda {m2}+1
adc {c1}+1,y
sta {m1}+1
lda {m2}+2
adc {c1}+2,y
sta {m1}+2
lda {m2}+3
adc {c1}+3,y
sta {m1}+3 |
// Copyright (c) 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 "main.h"
#include "db.h"
#include "txdb.h"
#include "init.h"
#include "miner.h... |
;ASH - Aidan's SHell
;32K EEPROM (0x0000 - 0x7FFF)
;32K SRAM (0x8000 - FFFF)
;IO Provided via 16550 UART
;TODO:
;Change most DE to HL
;Change eror to check for non-zero values
;Finish Tokenizer
;Start Parser
;Start Execution Function
STACK_H equ 0xFF
STACK_L equ 0xFF
;First byte of term buf is the size of the term b... |
section .data
IndexPrompt db 'Enter the index value: '
indl equ $-IndexPrompt
Const1 db 'Enter the first constant value: '
const1l equ $-Const1
Const2 db 'Enter the second constant value: '
const2l equ $-Const2
Const3 db 'Enter the third constant value: '
const3l equ $-Const3
def db ... |
; fill string with one character 27/01-92 O.Fink
section string
include win1_keys_err
xdef st_filst ; fill a string
;+++
; fill a string with one character
; x,10 -> xxxxxxxxxx
;
; Entry Exit
; a0 ptr to... |
; utilities.asm
Resources proc Table:
; Bank FName Index Notes
db 18, 18 ; 0 Daybreak Layer 2 (1/6)
db 19, 19 ; 1 Daybreak Layer 2 (2/6)
db 20, 20 ; 2 Daybreak Layer 2 (3/6)
db 21, 21 ; 3 Daybreak Layer 2 (4/6)
db 22, 22 ; 4 Daybreak Layer 2 (5/6)
db ... |
; A005818: Numbers n that are primitive solutions to n^2 = a^2 + b^2 + c^2 (a,b,c > 0).
; 3,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131,133,135,137,139,141,143,1... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "utilities/BatchApplicationManager.h"
int main(int argc, char* argv[])
{
qputenv("Q... |
;===============================================================================
; Copyright 2014-2021 Intel Corporation
;
; 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.apa... |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#if defined(STM32PLUS_F4)
#include "config/rtc.h"
#include "config/gpio.h"
#include "config/timing.h"
using n... |
; A261348: a(1)=0; a(2)=0; for n>2: a(n) = A237591(n,2) = A237593(n,2).
; 0,0,1,1,2,1,2,2,2,2,3,2,3,3,3,3,4,3,4,4,4,4,5,4,5,5,5,5,6,5,6,6,6,6,7,6,7,7,7,7,8,7,8,8,8,8,9,8,9,9,9,9,10,9,10,10,10,10,11,10,11,11,11,11,12,11,12,12,12,12,13,12,13,13,13,13,14,13,14,14,14,14,15,14,15,15,15,15,16,15,16,16,16,16,17,16
mov $2,$0
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1cef3, %rsi
lea addresses_WT_ht+0xc93, %rdi
nop
nop
nop
nop
cmp %rbx, %rbx
mov $112, %rcx
rep movsl
nop
nop
nop
nop
inc %rdi
lea addresses_WT_ht+0xf293, %rsi
lea address... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="fd, offset, count"/>
<%docstring>
Invokes the syscall readahead. See 'man 2 readahead' for more information.
Arguments:
fd(int): fd
offset(off64_t): offset
count(size_t): count
</%docstring>
${syscall('SYS_readahead', fd, off... |
; A310492: Coordination sequence Gal.6.249.6 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.
; Submitted by Simon Strandgaard
; 1,4,10,16,20,24,28,32,38,44,48,52,58,64,68,72,76,80,86,92,96,100,106,112,116,120,124,128,134,140,144,148,15... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r9
push %rcx
push %rsi
// Faulty Load
mov $0x91cd60000000327, %rsi
nop
nop
nop
nop
nop
add $174, %r9
movb (%rsi), %r14b
lea oracles, %rsi
and $0xff, %r14
shlq $12, %r14
mov (%rsi,%r14,1), %r14
pop %rsi
... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0148FE move.w (A1)+, D2
014900 andi.w #$ffe0, D2 [base+6006, base+6026, base+602E, base+610E, base+6116, base+6186, base+618E, base+6196, base+619E, base+61A6, base+61AE, base+621E, base+622E, base+62B6, ba... |
; void *obstack_int_grow(struct obstack *ob, int data)
SECTION code_alloc_obstack
PUBLIC obstack_int_grow
EXTERN asm_obstack_int_grow
obstack_int_grow:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_obstack_int_grow
|
; A188590: [(n+1)*r] - [n*r], where r = 3/2 + sqrt(13)/2 and [...] denotes the floor function.
; 3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,4,3
mov $3,$0
mov $6,2
lpb $6
mov $0,$3
sub $6,1
add $0,$6
sub $0,... |
; A174748: x-values in the solution to x^2-33*y^2=1.
; Submitted by Christian Krause
; 1,23,1057,48599,2234497,102738263,4723725601,217188639383,9985953686017,459136680917399,21110301368514337,970614726270742103,44627167107085622401,2051879072199667888343,94341810154077637241377,4337671388015371645214999,19943854203855... |
#pragma once
#include <utility>
template <class Func>
class Defer {
Func func_;
public:
// NOLINTNEXTLINE(google-explicit-constructor)
Defer(Func func) try
: func_(std::move(func))
{
} catch (...) {
func();
throw;
}
Defer(const Defer&) = delete;
Defer(Defer&&) = d... |
.data
.text
main: addi $fp ,$zero ,32767
addi $sp ,$fp ,0
addi $8 ,$zero ,64512
addi $t8 ,$zero ,0
sw $t8, 0($8)
label2: j label3
label3: addi $9 ,$zero ,64528
... |
.data #Apartado de declaración de datos
num1: .word 15 #.word para representar datos enteros
num2: .word 10
pedir: .asciiz "Digite un numero:"
letrero1: .asciiz "Suma: " #.ascciz para representar cadenas o string
letrero2: .asciiz "Resta: "
letrero3: .asciiz "Multiplicacion: "
letrero4: .asciiz... |
SECTION code_driver
SECTION code_driver_character_input
PUBLIC asm_asci0_peekc
EXTERN asci0RxCount, asci0RxOut
asm_asci0_peekc:
ld a,(asci0RxCount) ; get the number of bytes in the Rx buffer
ld l,a ; and put it in hl
or a ... |
const char outdata[] = /* NOLINT */
{
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" ... |
;;#############################################################################
;; FILE: CLAlnTable.asm
;;
;; DESCRIPTION: Natural Logarithm Tables
;;
;; Group: C2000
;; Target Family: C28x+CLA
;;
;;#############################################################################
;; $TI Release: CLA Math Lib... |
; A052629: E.g.f. (1-x)/(1-5x+3x^2).
; Submitted by Jon Maiga
; 1,4,34,438,7536,162120,4185360,126060480,4339278720,168038478720,7230318681600,342214829510400,17669683572710400,988372892015308800,59538455210371737600,3842709218808235776000,264549049753191211008000
mov $2,1
mov $3,$0
lpb $3
mul $1,$3
mul $2,$3
ad... |
INCLUDE "SoundSystemNotes.inc"
INCLUDE "SoundSystem.def"
INCLUDE "SoundSystem.inc"
; tabs=8,hard
;***************************************************************************************************************************
;* default behaviors
;******************************************************************... |
LXI H,2060
MOV A,M
INX H
MOV B,M
ADD B
STA 2070
JC L1
L2: HLT
L1: MVI A,01
STA 2071
JMP L2
// to store the memory contents
# ORG 2060H
# DB FFH,FFH
|
; A170473: Number of reduced words of length n in Coxeter group on 32 generators S_i with relations (S_i)^2 = (S_i S_j)^45 = I.
; 1,32,992,30752,953312,29552672,916132832,28400117792,880403651552,27292513198112,846067909141472,26228105183385632,813071260684954592,25205209081233592352,781361481518241362912,2422220592706... |
DATA SEGMENT
X1 DW 28H
X2 DW 38H
X3 DW 48H
Y DW ?
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AX,X1
ADD AX,X2
ADD AX,X3
MOV Y,AX
MOV AH,4CH
INT 21H
CODE ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1998 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video Drivers
FILE: vga16Pointer.asm
AUTHOR: Jim DeFrisco, Oct 8, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY... |
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
int main(int argc, char *argv[])
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QGuiApplication app(argc, argv);
QQuickStyle::setStyle("Material");
QQ... |
/*
* Copyright © 2007,2008,2009 Red Hat, Inc.
* Copyright © 2012,2013 Google, Inc.
* Copyright © 2019, Facebook Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute th... |
# Trevor Hickey
# Prof. Bennett
# CSCI 312 Spring 2012
# EASTER 2012!!!! ()()()
# Code was written in MARS 4.2
#-----------------------------------------------------------------------------------------------------+
# Program Description: |
#... |
codeseg
; an enum's size is a double word. so use db, not the actual name.
enum _FILE_MODE_ {
FILE_R,
FILE_W,
FILE_RW
}
; int open_file(string filename, FileMode mode)
proc open_file
push bp
mov bp, sp
push bx
push dx
mov ah, 3Dh
mov dx, [bp + 6]
mov al, [byte ptr bp + 4]
... |
SECTION code_ctype
PUBLIC asm_isalnum
asm_isalnum:
; determine if char is in [0-9A-Za-z]
; enter : a = char
; exit : carry set if not alphanumeric
; uses : f
cp '0'
ret c
cp '9'+1
ccf
ret nc
cp 'A'
ret c
cp 'Z'+1
ccf
ret nc
cp 'a'
ret c
cp 'z'+1
... |
open_save_hook:
;push the registers to the stack
addiu sp, sp, -0x40
sw ra, 0x00(sp)
sw v0, 0x04(sp)
sw v1, 0x08(sp)
sw a0, 0x0C(sp)
sw a1, 0x10(sp)
sw a2, 0x14(sp)
sw a3, 0x18(sp)
sw s0, 0x1c(sp)
sw s1, 0x20(sp)
sw at, 0x24(sp)
lw a0, 0x60(sp) ;get savecontext variable off the stack
jal Save_Open
lw a0, 0x00(a0) ... |
/****************************************************************************
* Copyright (c) 2020, CEA
* 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 retai... |
#include "detection.h"
#define OBJECT_ITEM_LOCATION_ID "locationId"
#define OBJECT_ITEM_VENDOR_ID "vendorId"
#define OBJECT_ITEM_PRODUCT_ID "productId"
#define OBJECT_ITEM_DEVICE_NAME "deviceName"
#define OBJECT_ITEM_MANUFACTURER "manufacturer"
#define OBJECT_ITEM_SERIAL_NUMBER "serialNumber"
#define OBJECT_... |
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2008-08-25
// Updated : 20... |
; Row Sum Calculation (RowSum.asm)
; This program demonstrates the use of Base-Index addressing
; with a two-dimensional table array of bytes (a byte matrix).
INCLUDE Irvine32.inc
.data
tableB BYTE 10h, 20h, 30h, 40h, 50h
BYTE 60h, 70h, 80h, 90h, 0A0h
BYTE 0B0h, 0C0h, 0D0h,... |
;;============================================================================
;; MCKL/lib/asm/fma.asm
;;----------------------------------------------------------------------------
;; MCKL: Monte Carlo Kernel Library
;;----------------------------------------------------------------------------
;; Copyright (c) 2013-2... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1a1a0, %rsi
lea addresses_A_ht+0x175a0, %rdi
clflush (%rdi)
nop
nop
nop
dec %r12
mov $6, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $5717, %r9
lea addresses_D_ht+0x16b80, %rdi
sub $60067, ... |
; A037585: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 3,1.
; Submitted by Jamie Morken(s4)
; 3,19,117,703,4221,25327,151965,911791,5470749,32824495,196946973,1181681839,7090091037,42540546223,255243277341,1531459664047,9188757984285,55132547905711,330795287434269,1984771... |
; A168398: a(n) = 4 + 8*floor((n-1)/2).
; 4,4,12,12,20,20,28,28,36,36,44,44,52,52,60,60,68,68,76,76,84,84,92,92,100,100,108,108,116,116,124,124,132,132,140,140,148,148,156,156,164,164,172,172,180,180,188,188,196,196,204,204,212,212,220,220,228,228,236,236,244,244,252,252,260,260,268,268,276,276,284,284,292,292,300,300,... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: http.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "http.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/p... |
; A112335: Row sums of number triangle A112334.
; 1,-1,-4,-7,-10,-13,-16,-19,-22,-25,-28,-31,-34,-37,-40,-43,-46,-49,-52,-55,-58,-61,-64,-67,-70,-73,-76,-79,-82,-85,-88,-91,-94,-97,-100,-103,-106,-109,-112,-115,-118,-121,-124,-127,-130,-133,-136,-139,-142,-145,-148,-151,-154,-157,-160,-163,-166,-169
mul $0,3
trn $0,1
... |
; A212686: Number of (w,x,y,z) with all terms in {1,...,n} and 2|w-x|=n+|y-z|.
; 0,0,4,8,24,40,76,112,176,240,340,440,584,728,924,1120,1376,1632,1956,2280,2680,3080,3564,4048,4624,5200,5876,6552,7336,8120,9020,9920,10944,11968,13124,14280,15576,16872,18316,19760,21360,22960
mov $3,$0
mov $5,$0
lpb $5,1
mov $0,$3
s... |
_start:
sub sp, sp, #0x20
stp x29, x30, [sp, #0x10]
add x29, sp, #0x10
bl function
cbz x0, label
nop
label:
ldp x29, x30, [sp, #0x10]
add sp, sp, #0x20
ret
function:
ret
|
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; SpoolKernelAvx512F.asm
;
; Abstract:
;
; This module implements the kernels for the single precision pooling
; operation.
;
; This implementation uses AVX512F instructions.
;
;--
.... |
; A228137: Numbers that are congruent to {1, 4} mod 12.
; 1,4,13,16,25,28,37,40,49,52,61,64,73,76,85,88,97,100,109,112,121,124,133,136,145,148,157,160,169,172,181,184,193,196,205,208,217,220,229,232,241,244,253,256,265,268,277,280,289,292,301,304,313,316,325,328,337,340,349,352,361,364,373,376,385,388,397,400,409,412,4... |
; void *tshr_saddrpright(void *saddr, uchar bitmask)
SECTION code_clib
SECTION code_arch
PUBLIC tshr_saddrpright_callee
EXTERN asm_tshr_saddrpright
tshr_saddrpright_callee:
pop af
pop hl
dec sp
pop de
push af
ld e,d
jp asm_tshr_saddrpright
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshr_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.