text stringlengths 1 1.05M |
|---|
lc r4, 0x00000002
lc r5, 0x7fffffff
eq r6, r4, r5
halt
#@expected values
#r4 = 0x00000002
#r5 = 0x7fffffff
#r6 = 0x00000000
#pc = -2147483628
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
//===--- SILGenDecl.cpp - Implements Lowering of ASTs -> SIL for Decls ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
# SYNTAX TEST "Packages/Assembly-6809/Assembly-6809.sublime-syntax"
# <- source.mc6809
section
sect
.area
endsection
endsect
sym EXTERN
sym EXTERNAL
sym IMPORT
sym EXPORT
sym .GLOBL
EXPORT sym
.globl sym
sym EXTDEP
|
* = $C000
LDA .data
LDX .data+1
LDY .data+2
BRK
.data !byte $FF,$FE,$FD
|
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2020 Return Infinity -- see LICENSE.TXT
;
; Version 1.0
; =============================================================================
b_input equ 0... |
; A101386: Expansion of g.f.: (5 - 3*x)/(1 - 6*x + x^2).
; 5,27,157,915,5333,31083,181165,1055907,6154277,35869755,209064253,1218515763,7102030325,41393666187,241259966797,1406166134595,8195736840773,47768254910043,278413792619485,1622714500806867,9457873212221717,55124524772523435,321289275422918893,187261112776498992... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
; A004590: Expansion of sqrt(10) in base 7.
; Submitted by Jon Maiga
; 3,1,0,6,4,4,2,5,4,2,6,3,1,4,6,1,0,0,2,5,1,4,1,5,3,6,5,3,4,3,4,6,2,1,6,3,2,5,4,0,1,6,5,2,1,0,2,1,5,6,0,6,6,4,2,6,1,6,1,0,2,6,3,2,5,6,5,4,3,1,2,1,1,6,5,5,5,2,1,3,4,0,6,5,0,6,3,2,0,5,1,1,0,0,5,1,6,0,3,2
mov $1,1
mov $2,1
mov $3,$0
add $3,2
mov $4,$0
a... |
#include "lmpch.h"
#include "ImGuiLayer.h"
#include "Core/OS/Input.h"
#include "Core/OS/Window.h"
#include "App/Application.h"
#include "Graphics/API/IMGUIRenderer.h"
#include "Core/VFS.h"
#include "ImGuiHelpers.h"
#include "Core/Profiler.h"
#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS
#include <imgui/imgui.h>
#include <i... |
// Copyright Louis Dionne 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/functional/arg.hpp>
#include <cstddef>
#include <utility>
namespace hana = boost::hana;
constexpr int to_int(char c... |
#include "stdafx.h"
#include "terminate_monitor_hook.h"
bool terminate_monitor_hook::add_redirect(unsigned __int64 target_address)
{
SIZE_T num_written = 0;
unsigned char inject[0x20];
if (!_is64)
{
// Redirect code that is the same for x86 and AMD64
unsigned char data[] = {
// call +0
0x... |
; A213511: The sequence N'(n) arising in the enumeration of balanced ternary trees.
; 0,1,2,3,5,7,9,11,13,15,17,19,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99,102,106,110,114,118,122,126,130,134,138,142
lpb $0
add $1,$0
sub $0,1
add $3,2
trn $0,$3
mov $2,$3
add $2,$3
... |
; A110344: a(n) = sum( n+k, k=0..n-1 ) = n(3n-1)/2 if n is even; a(n) = sum( n-k, k=0..n-1 ) = n(n+1)/2 if n is odd.
; 1,5,6,22,15,51,28,92,45,145,66,210,91,287,120,376,153,477,190,590,231,715,276,852,325,1001,378,1162,435,1335,496,1520,561,1717,630,1926,703,2147,780,2380,861,2625,946,2882,1035,3151,1128,3432,1225,3725... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
; A111607: Fourth column of A109626.
; 1,2,3,3,5,3,7,2,9,10,11,9,13,7,15,4,17,18,19,15,21,11,23,6,25,26,27,21,29,15,31,8,33,34,35,27,37,19,39,10,41,42,43,33,45,23,47,12,49,50,51,39,53,27,55,14,57,58,59,45,61,31,63,16,65,66,67,51,69,35,71,18,73,74,75
mov $2,$0
add $2,1
mov $1,$2
dif $2,2
bin $2,2
mod $2,$1
sub $1,$2
mo... |
// Tests that constants are identified early
// Commodore 64 PRG executable file
.file [name="const-early-identification.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment ... |
.text
.globl main
main:
li $v0, 5
syscall
move $t0, $v0
li $v0, 5
syscall
move $t1, $v0
loop:
bge $t2, $t1, end_loop
add $t3, $t2, $t0
move $a0, $t3
li $v0, 1
syscall
la $a0, spazio
li $v0, 4
syscall
add $t2, $t2, 1
j loop
end_loop:
li $v0, 10
syscall
.data
spazio: .ascii " " |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x400",
"RBX": "0x3ff0000000000000"
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
mov eax, 0x44800000 ; 1024.0
mov [rdx + 8 * 0], eax
mov rax, -1
mov [rdx + 8 * 1], rax
fld dword [rdx + 8 * 0]
fistp qword [rdx + 8 * 1]
fld1
mov rax, q... |
; A134068: a(n) = 2*a(n-2) + 4*a(n-3), with initial terms 0, 3, 3.
; Submitted by Christian Krause
; 0,3,3,6,18,24,60,120,216,480,912,1824,3744,7296,14784,29568,58752,118272,235776,471552,944640,1886208,3775488,7550976,15095808,30203904,60395520,120791040,241606656,483164160,966377472,1932754944,3865411584,7731019776,1... |
; vbe_set_mode:
; Sets a VESA mode
; In\ AX = Width
; In\ BX = Height
; In\ CL = Bits per pixel
; Out\ FLAGS = Carry clear on success
; Out\ Width, height, bpp, physical buffer, all set in vbe_screen structure
vbe_set_mode:
mov [.width], ax
mov [.height], bx
mov [.bpp], cl
sti
push es ; some VESA BIOSes ... |
; this file contains the title screen
; inits title mode
init_title:
lda #%00010000 ; pattern table 1
sta gfx_flags
lda #GAME_MODE_TITLE
sta game_mode
lda #<update_title
sta update_sub
lda #>update_title
sta update_sub+1
lda #<update_title_crit
sta update_sub_crit
lda #>u... |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:26 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Includin... |
/*
Copyright (c) 2009-2016, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include <El.hpp>
using namespace El;
template<typename ... |
db 0 ; species ID placeholder
db 60, 55, 50, 45, 40, 55
; hp atk def spd sat sdf
db BUG, POISON ; type
db 190 ; catch rate
db 75 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/venonat/front.dimensions"
db GROWTH_MEDIUM_FAST ... |
/*
pbrt source code is Copyright(c) 1998-2016
Matt Pharr, Greg Humphreys, and Wenzel Jakob.
This file is part of pbrt.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Red... |
;
; Created by Mateusz Stompór on 01/11/2019.
;
%include "source/list.asm"
%include "source/sizes.asm"
%include "source/memory_management.asm"
global LL_DELETE
section .text
LL_DELETE:
; About
; Deletes given node from a list
; Takes
; rdi - pointer to a list
; rsi - pointer to an iterator
... |
; A040548: Continued fraction for sqrt(572).
; Submitted by Jon Maiga
; 23,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10,1,46,1,10
gcd $0,262156
mul $0,42
mod $0,13
mul $0,2
mov $1,$0
sub $0... |
; A116948: Riordan array ((1+2x^2)/(1-x^3),x).
; 1,0,1,2,0,1,1,2,0,1,0,1,2,0,1,2,0,1,2,0,1,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,1,2,0,1,2,0,1,2,0,1,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,1,2,0,1,2,0,1,2,0,1,2,0,1
cal $0,212012 ; Triangle read by rows in which row n lists the number of states of the s... |
.data
buffer: .space 4 # address space will be allocated to store string variable
maxBuffer: .word 4 # length of the maxBuffer
.text
li $v0, 8 # service code 8 to read .asciiz
la $a0, buffer # (buffer) bytes user input will be stored in $a0
lw $a1, maxBuffer # max bytes which will be read will be stored in $a1
... |
; A164421: Number of binary strings of length n with no substrings equal to 0000 0010 or 1001
; Submitted by Jon Maiga
; 13,22,38,65,111,189,322,549,936,1596,2721,4639,7909,13484,22989,39194,66822,113925,194231,331145,564570,962537,1641032,2797800,4769977,8132347,13864861,23638240,40300901,68709118,117142366,199716345,... |
; A025698: Index of 3^n within sequence of numbers of form 3^i*7^j.
; Submitted by Jamie Morken(w2)
; 1,2,4,6,9,12,16,20,25,31,37,44,51,59,67,76,86,96,107,118,130,142,155,168,182,197,212,228,244,261,278,296,315,334,354,374,395,416,438,461,484,508,532,557,582,608,634,661,689,717,746,775,805,835,866,898,930,963,996
mov ... |
0x0000 (0x000000) 0x1104- f:00010 d: 260 | A = 260 (0x0104)
0x0001 (0x000002) 0x2919- f:00024 d: 281 | OR[281] = A
0x0002 (0x000004) 0x1800-0x0D55 f:00014 d: 0 | A = 3413 (0x0D55)
0x0004 (0x000008) 0x291A- f:00024 d: 282 | OR[282] = A
... |
; A236203: Interleave A005563(n), A028347(n).
; 0,0,3,5,8,12,15,21,24,32,35,45,48,60,63,77,80,96,99,117,120,140,143,165,168,192,195,221,224,252,255,285,288,320,323,357,360,396,399,437,440,480,483,525,528,572,575,621,624,672,675,725,728,780,783,837,840,896,899,957,960,1020,1023,1085,1088,1152,1155,1221,1224,1292,1295,13... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Grazelle
; High performance, hardware-optimized graph processing engine.
; Targets a single machine with one or more x86-based sockets.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Authored b... |
; A169495: Number of reduced words of length n in Coxeter group on 50 generators S_i with relations (S_i)^2 = (S_i S_j)^33 = I.
; 1,50,2450,120050,5882450,288240050,14123762450,692064360050,33911153642450,1661646528480050,81420679895522450,3989613314880600050,195491052429149402450,9579061569028320720050,469374016882387... |
;
; z88dk library: Generic VDP support code
;
; extern void vread(unsigned int source, void* dest, unsigned int count);
;
; Transfer count bytes from VRAM to RAM
;
; $Id: gen_vread.asm,v 1.2 2015/01/19 01:32:57 pauloscustodio Exp $
;
PUBLIC msx_vread
EXTERN SETRD
INCLUDE "msx/vdp.inc"
msx_vread:
ld ... |
/**
* Created by mathis on 01/03/2020.
*/
#include "TranslateGizmo.hpp"
void TranslateGizmo::init_models() {
m_Xmodel.reset( init_arrow( glm::vec3( 1.f, 0.f, 0.f ) ) );
m_Ymodel.reset( init_arrow( glm::vec3( 0.f, 1.f, 0.f ) ) );
m_Zmodel.reset( init_arrow( glm::vec3( 0.f, 0.f, 1.f ) ) );
}
Model* Trans... |
/*
* test_case_base.cpp
*
* Created on: 2014年3月11日
* Author: owent
*
* Released under the MIT license
*/
#include "test_manager.h"
#include "test_case_base.h"
test_case_base::test_case_base(const std::string& test_name, const std::string& case_name, test_func func) {
success_ = 0;
failed_ = 0;... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clau... |
; A047283: Numbers that are congruent to {0, 1, 3, 6} mod 7.
; 0,1,3,6,7,8,10,13,14,15,17,20,21,22,24,27,28,29,31,34,35,36,38,41,42,43,45,48,49,50,52,55,56,57,59,62,63,64,66,69,70,71,73,76,77,78,80,83,84,85,87,90,91,92,94,97,98,99,101,104,105,106,108,111
mov $1,$0
lpb $0
sub $0,4
add $1,3
lpe
lpb $0
mod $0,2
a... |
#include "FileManager.hpp"
#include <ostream>
#include <thread>
#include "FileSystemMessage.hpp"
#include "MainController/GestureQueue.hpp"
void FileManager::deleteFiles
(
fs::paths& files,
fs::copy_options options // = fs::copy_options::none
)
{
undoStack.push( FileSystemAction::DELETE, files, fs::path... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>pwritev(fd, iovec, count, offset) -> str
Invokes the syscall pwritev.
See 'man 2 pwritev' for more information.
Arguments:
fd(int): fd
iovec(iovec*): iovec
count(int): count
offset(off_t... |
#define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod_1000000007"
#include "../../template/template.hpp"
#include "../../modint/arbitrary-prime-modint.hpp"
#include "../../ntt/arbitrary-ntt.hpp"
int MOD = 1000000007;
using mint = ArbitraryLazyMontgomeryModInt;
using vm = vector<mint>;
using namespace Nyaa... |
; ************************************************************************************************
; ************************************************************************************************
;
; Name: soundsync.asm
; Purpose: Sound sync/update code
; Created: 9th April 2021
; Author: Paul Robson (paul@robs... |
; A081143: 5th binomial transform of (0,0,0,1,0,0,0,0,......).
; 0,0,0,1,20,250,2500,21875,175000,1312500,9375000,64453125,429687500,2792968750,17773437500,111083984375,683593750000,4150390625000,24902343750000,147857666015625,869750976562500,5073547363281250,29373168945312500,168895721435546875,965118408203125000,5483... |
// Original test: ./bolanows/hw4/problem6/jalr_2.asm
// Author: bolanows
// Test source code follows
// Makes sure values can be added to register we jump to
JAL 4 // Jumps to TargetA, PC = 6
Nop
Nop
Nop // PC = 6 TargetA
JALR r7, 16 // Jumps to TargetB, PC = 18
Nop
Nop
Nop
Nop
Nop // TargetB
Halt
Nop
Nop
Halt
|
; A296065: Partial sums of A296064.
; 0,2,3,0,5,0,7,0,9,0,11,0,13,0,15,0,17,0,19,0,21,0,23,0,25,0,27,0,29,0,31,0,33,0,35,0,37,0,39,0,41,0,43,0,45,0,47,0,49,0,51,0,53,0,55
mov $1,$0
lpb $0
add $1,1
mov $2,$0
sub $0,$0
sub $2,1
lpe
lpb $2
mul $1,$0
dif $2,2
lpe
|
; ---------------------------
; macros for creating toolbar
; ---------------------------
TBextraData MACRO
mov tbb.fsState, TBSTATE_ENABLED
mov tbb.dwData, 0
mov tbb.iString, 0
ENDM
; ------------------------------
TBbutton MACRO bID, cID
... |
#include <iostream>
#include <clocale>
#include <cstring>
#include <vector>
using namespace std;
class DiskSpace {
public:
int minDrives(vector <int> used, vector <int> total) {
int resp = 0;
long usado = 0;
for (int i = 1; i < total.size(); i++) {
for (int j = 0; j < i; j++) {
if (total... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rcx
push %rdi
lea addresses_WT_ht+0x128ca, %rdi
nop
nop
nop
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %r8
movq %r8, %xmm2
movups %xmm2, (%rdi)
sub %rdi, %rdi
pop %rdi
pop %rcx
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %rcx
push %rdi
// Store
lea addresses_RW+0xc4d, %r12
and %r8, %r8
mov $0x5152535455565758, %r11
movq %r11, (%r12)
nop
nop
nop
nop
add $39737, %rcx
// Faulty Load
lea addresses_RW+0xc4... |
;
; Old School Computer Architecture - SD Card driver
; Taken from the OSCA Bootcode by Phil Ruston 2011
; Port by Stefano Bodrato, 2012
;
; int sd_write_sector(struct SD_INFO descriptor, long sector, unsigned char *address);
;
; sd_card_info and card_select must be accessible,
; a good place to put them is in the var... |
LXI H, 0200H ; HL ye 0200H verisini yükle
MVI A, 0FFH ; A ya FFH(255) verisini yükle
LXI B, 0064H ; B => 0, C => 100
LOOP: CMP M ; M ile A yı karşılaştır.
JNZ NO ; Z biti sıfır değilse atla
INR B ; B yi 1 arttır
NO: INX H ; M yi 1 arttır
DCR C ; C yi bir azalt
JNZ LOOP ; Z biti sıfır değilse atla
MOV A, B ; Sonucu... |
//g_infostringLoad.cpp
//reads in ext_data\infostrings.dat
#include "g_local.h"
#include "g_items.h"
#include "g_infostrings.h"
qboolean G_ParseInt( char **data, int *i );
qboolean G_ParseString( char **data, char **s );
extern ginfoitem_t bg_infoItemList[];
typedef struct
{
char *infoString;
int infoItemNum;
... |
; Copyright (c) 2009 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.
; This file is just a convenient place for experimenting with x86 encodings.
BITS 32
; sldt to detect which processor we are running on.
sldt eax
sidt ... |
; A017594: a(n) = (12*n + 6)^2.
; 36,324,900,1764,2916,4356,6084,8100,10404,12996,15876,19044,22500,26244,30276,34596,39204,44100,49284,54756,60516,66564,72900,79524,86436,93636,101124,108900,116964,125316,133956,142884,152100,161604,171396,181476,191844,202500,213444,224676,236196,248004,260100,272484,285156,298116,31... |
; A141977: Primes congruent to 1 mod 29.
; Submitted by Jon Maiga
; 59,233,349,523,929,1103,1277,1451,1567,1741,1973,2089,2437,2843,3191,3307,3539,4003,4177,4409,4583,4931,5279,5569,5743,5801,6091,6323,6961,7019,7193,7309,7541,8179,8237,8353,8527,8933,9049,9281,9397,9629,9803,10093,10151,10267,10499,10789,10847,11311,1... |
; The serial monitor a simple monitor program
; for teathering the CPU
;
; Needs to provide the following commands
;
; READ : read a specific word from memory -> R , ADDR , VAL
; WRITE : write a specific word to memory -> W , ADDR , VAL
; CALL : jump the execution to a memory position -> J ADDR
;
; extras
;
; bulk rea... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="who, usage"/>
<%docstring>
Invokes the syscall getrusage. See 'man 2 getrusage' for more information.
Arguments:
who(rusage_who_t): who
usage(rusage): usage
</%docstring>
${syscall('SYS_getrusage', who, usage)}
|
;----------------------
;This lib contains functions to do basic IO in the simulator
;---------------------
;Prints the char in R1
label printc
pushr R2 ;storing SR
mov R2 SR
set 6
cpy SR
set 0 ;tx_cmd
cpy R11
set 1 ;tx_data
cpy R12
read R1 ;writing char
str R12
set 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: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
SECTION rodata_font_fzx
PUBLIC _ff_dkud3_Lovely
_ff_dkud3_Lovely:
BINARY "font/fzx/fonts/dkud3/Lovely/LOVELY.fzx"
|
#include "BallEntity.h"
#include "Blit3D.h"
#include "CollisionMask.h"
extern Blit3D *blit3D;
extern b2World *world;
BallEntity * MakeBall(Sprite *sprite)
{
//make a ball entity
BallEntity *ballEntity = new BallEntity();
// Define the Ball body.
//We set its position and call the body factory.
b2BodyDef BallBo... |
; A100299: Number of dissections of a convex n-gon by nonintersecting diagonals into an even number of regions.
; Submitted by Jamie Morken(s4)
; 0,2,5,23,98,452,2139,10397,51524,259430,1323361,6824435,35519686,186346760,984400759,5231789177,27954506504,150079713482,809181079293,4379654830223,23787413800490,12960796885... |
; A312507: Coordination sequence Gal.6.245.1 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,8,14,18,22,28,32,36,42,46,50,54,58,64,68,72,78,82,86,92,96,100,104,108,114,118,122,128,132,136,142,146,150,154,158,164,168,172,178,182,1... |
; A099035: a(n) = (n+1)*2^(n-1) - 1.
; 1,5,15,39,95,223,511,1151,2559,5631,12287,26623,57343,122879,262143,557055,1179647,2490367,5242879,11010047,23068671,48234495,100663295,209715199,436207615,905969663,1879048191,3892314111,8053063679,16642998271,34359738367,70866960383,146028888063,300647710719,618475290623,1271310... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2018, Intel Corporation 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 s... |
inst_rom.om: file format elf32-tradbigmips
Disassembly of section .text:
00000000 <_start>:
0: 34011234 li at,0x1234
4: ac010000 sw at,0(zero)
8: 34015678 li at,0x5678
c: e0010000 sc at,0(zero)
10: 8c010000 lw at,0(zero)
14: 00000000 nop
18: 34010000 li at,0x0
1c: c0010000 ll at,0(zer... |
LOWORD equ [0]
HIWORD equ [4]
;*******************************************************************************
;llmul - long multiply routine
;
;Entry:
; Parameters are passed on the stack:
; 1st pushed: multiplier (QWORD)
; 2nd pushed: multiplicand (QWORD)
;Exit:
; ED... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xc97e, %rsi
lea addresses_UC_ht+0x1e666, %rdi
nop
nop
nop
xor %rbp, %rbp
mov $7, %rcx
rep movsl
nop
nop
nop
nop
and %r15, %r15
lea addresses_WT_ht+0x1e066, %rsi
lea addresses_A... |
// Original test: ./benson/hw4/problem6/andni_3.asm
// Author: benson
// Test source code follows
lbi r1, 255
andni r2, r1, 31
halt
|
#include "ClockDomain.h"
using namespace std;
namespace ClockDomain
{
// "Default" crosser with a 1:1 ratio
ClockDomainCrosser::ClockDomainCrosser(ClockUpdateCB *_callback)
: callback(_callback), clock1(1UL), clock2(1UL), counter1(0UL), counter2(0UL)
{
}
ClockDomainCrosser::ClockDomainCrosser(uint64_t _clock... |
; A027816: 66*(n+1)*C(n+5,11).
; 462,6336,46332,240240,990990,3459456,10618608,29405376,74826180,177365760,395747352,838053216,1695505812,3294910080,6177956400,11218384320,19791524610,34015101120,57085528500,93740446800,150886065330,238437239040,370429282080,566473564800,853644191400,1268900785152,1862172907056,2700255... |
COMMENT | -*- Mode: asm; tab-width: 8; c-basic-offset: 4 -*-
***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: toshiba 24-pin Print Driver
FILE: toshiba24Styles.asm
AUTHOR: Dave Durran, 1 March 1990
ROUTINES:
Name Description
---- -------... |
dnl Alpha mpn_bdiv_dbm1c.
dnl Copyright 2008 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free... |
###############################################################################
# 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... |
init_netplay_launch_screen:
.(
jsr set_menu_chr
SWITCH_BANK(#DATA_BANK_NUMBER)
; Enable ESP
lda #1
sta RAINBOW_FLAGS
; Construct nt buffers for palettes (to avoid changing it mid-frame)
lda #<palette_netplay_launch
sta tmpfield1
lda #>palette_netplay_launch
sta tmpfield2
jsr construct_palettes_nt_buffer
... |
// Copyright (C) 2010-2016 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <util/buffer.h>... |
#ch19-1
.data
array: .space 100
.text
.globl main
main:
lui $8, 0x1001
ori $9, $0, 0
ori $10, $0, 25
loop: beq $9, $10, exit
sll $0, $0, 0
sb $9, 0($8)
sll $0, $0, 0
addi $8, $8, 4
addi $9, $9, 1
j loop
exit: sll $0, $0, 0 |
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail 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.txt)
//
// Test that header file is self-contained.
#include <beast/http/resume_context.h... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageBlend.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is... |
////////////////////////////////////////////////////////////////////////////////
// Copyright(c) Kingsoft
//
// FileName : KG_Step8Dialog.cpp
// Version : 1.0
// Creator : Hu Hao
// Create Date : 2009-6-1 19:05:22
// Comment :
//
///////////////////////////////////////////////////////////... |
;Expects sound_param_byte_0 to contain desired region (SOUND_REGION_NTSC, SOUND_REGION_PAL, SOUND_REGION_DENDY)
;Expects sound_param_word_0 to contain song list address.
;Expects sound_param_word_1 to contain sfx list address.
;Expects sound_param_word_2 to contain instrument list address.
;If FEATURE_DPCM is defined, ... |
/**
* @file FileConcatenation.cpp
* @author Louai KASSA BAGHDOUCHE
* @brief Concatenation of large f64 binary files
* @version 0.1
* @date 2022-03-30
*
* @copyright Copyright (c) 2022
*
*/
#include <iostream>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/... |
/* Copyright (c) 2020 by Stan Fortoński */
#ifndef MODEL_ANIM_HPP
#define MODEL_ANIM_HPP 1
#include <map>
#include <cmath>
#include "MeshBone.hpp"
#include "Model.hpp"
namespace Engine
{
class ModelAnim: public Model
{
static const unsigned MAX_BONES = 100;
struct BoneMatrix
{
aiMatrix4x4 boneO... |
#include "channel.hpp"
#include "debug/log.hpp"
#include "messages/message.hpp"
#include "singletons/emotemanager.hpp"
#include "singletons/ircmanager.hpp"
#include "singletons/loggingmanager.hpp"
#include "singletons/windowmanager.hpp"
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJ... |
; A036690: Product of a prime and the following number.
; 6,12,30,56,132,182,306,380,552,870,992,1406,1722,1892,2256,2862,3540,3782,4556,5112,5402,6320,6972,8010,9506,10302,10712,11556,11990,12882,16256,17292,18906,19460,22350,22952,24806,26732,28056,30102,32220,32942,36672,37442,39006,39800,44732,49952,51756,52670,545... |
; A162396: a(n) = 2*a(n-2) for n > 2; a(1) = 5, a(2) = 2.
; 5,2,10,4,20,8,40,16,80,32,160,64,320,128,640,256,1280,512,2560,1024,5120,2048,10240,4096,20480,8192,40960,16384,81920,32768,163840,65536,327680,131072,655360,262144,1310720,524288,2621440,1048576,5242880,2097152,10485760,4194304,20971520,8388608,41943040,16777... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D3C move.l D0, (A4)+
004D3E move.l D0, (A4)+
0128FA move.b ($4a,A2), D2
0128FE add.w D2, D2 [123p+ 4A, enemy+4A, item+4A]
012900 or.b ($4a,A3), D2
012904 add.w D2, D2 [123p+ 4A, enemy+4A, ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation 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 s... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIE... |
SECTION code_fp_math32
PUBLIC pow
EXTERN cm32_sccz80_pow
defc pow = cm32_sccz80_pow
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _pow
EXTERN _m32_powf
defc _pow = _m32_powf
ENDIF
|
#Demonstrates swapping single precision floating point numbers
.text
l.s $f0, float1 #Loads float1 into $f0
l.s $f1, float2 #Loads float2 into $f1
s.s $f1, float1 #Stores $f1 to float1
s.s $f0, float2 #Stores $f0 to float2
l.s $f12, float1 #Loads float1 to $f12.
li $v0, 2 #Sets the system call code ... |
; A031394: a(n) = prime(7*n - 4).
; Submitted by Jon Maiga
; 5,29,59,89,127,163,197,239,277,317,367,409,449,491,547,593,631,673,727,769,823,863,919,971,1019,1061,1103,1163,1217,1277,1303,1373,1433,1481,1523,1571,1613,1667,1723,1783,1847,1889,1951,2003,2063,2111,2153,2237,2281,2339,2381,2423,2477,2551,2621,2677,2711,275... |
#include <Master.h>
#define BOOST_TEST_MODULE poker
#include <boost/test/unit_test.hpp>
#include "ut_phases.hpp"
#include <iostream>
#if TEST_ROYAL
BOOST_AUTO_TEST_CASE(ROYAL)
{
hand_vector s = {card(ace,spades),card(king,spades) ,card(queen,spades) ,card(jack,spades) ,card(ten,spades) };
BOOST_CHECK(isRoyalFlush... |
; A203976: a(n) = 3*a(n-2) - a(n-4), a(0)=0, a(1)=1, a(2)=5, a(3)=4.
; Submitted by Jon Maiga
; 0,1,5,4,15,11,40,29,105,76,275,199,720,521,1885,1364,4935,3571,12920,9349,33825,24476,88555,64079,231840,167761,606965,439204,1589055,1149851,4160200,3010349,10891545,7881196,28514435,20633239,74651760,54018521,195440845,141... |
; A168613: a(n) = 3^n - 5.
; -4,-2,4,22,76,238,724,2182,6556,19678,59044,177142,531436,1594318,4782964,14348902,43046716,129140158,387420484,1162261462,3486784396,10460353198,31381059604,94143178822,282429536476,847288609438,2541865828324,7625597484982,22876792454956,68630377364878,205891132094644,617673396283942,18530... |
// Copyright (c) 2012 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 "content/browser/accessibility/browser_accessibility_state_impl.h"
#include <windows.h> // Must be in front of other Windows header files.
... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Northern developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lice... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.