text stringlengths 1 1.05M |
|---|
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
; A093143: Expansion of (1-5*x)/(1-10*x).
; 1,5,50,500,5000,50000,500000,5000000,50000000,500000000,5000000000,50000000000,500000000000,5000000000000,50000000000000,500000000000000,5000000000000000,50000000000000000,500000000000000000
mov $1,10
pow $1,$0
sub $1,2
div $1,2
add $1,1
mov $0,$1
|
; A074399: a(n) is the largest prime divisor of n(n+1).
; 2,3,3,5,5,7,7,3,5,11,11,13,13,7,5,17,17,19,19,7,11,23,23,5,13,13,7,29,29,31,31,11,17,17,7,37,37,19,13,41,41,43,43,11,23,47,47,7,7,17,17,53,53,11,11,19,29,59,59,61,61,31,7,13,13,67,67,23,23,71,71,73,73,37,19,19,13,79,79,5,41,83,83,17,43,43,29,89,89,13,23,31,47,47... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE
;
; See "bifrost2.h" for further details
; ----------------------------------------------------------------
; unsigned char *BIFROST2_findAttrH(unsigned int lin,unsigned int col)
SECTION code_clib
SEC... |
SFX_Cry06_3_Ch5:
duty_cycle_pattern 3, 3, 2, 2
square_note 6, 8, 3, 583
square_note 15, 6, 2, 550
square_note 4, 5, 2, 581
square_note 9, 6, 3, 518
square_note 15, 8, 2, 549
square_note 15, 4, 2, 519
SFX_Cry06_3_Ch6:
sound_ret
SFX_Cry06_3_Ch8:
noise_note 8, 13, 4, 140
noise_note 4, 14, 2, 156
noise_note ... |
; A000914: Stirling numbers of the first kind: s(n+2, n).
; 0,2,11,35,85,175,322,546,870,1320,1925,2717,3731,5005,6580,8500,10812,13566,16815,20615,25025,30107,35926,42550,50050,58500,67977,78561,90335,103385,117800,133672,151096,170170,190995,213675,238317,265031,293930,325130,358750,394912,433741,475365,519915,567525... |
; void *p_list_remove_after(p_list_t *list, void *list_item)
SECTION code_adt_p_list
PUBLIC p_list_remove_after
EXTERN asm_p_list_remove_after
p_list_remove_after:
pop af
pop hl
pop bc
push bc
push hl
push af
jp asm_p_list_remove_after
|
db 0 ; 315 DEX NO
db 50, 60, 45, 65, 100, 80
; hp atk def spd sat sdf
db GRASS, POISON ; type
db 150 ; catch rate
db 152 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/roselia/front.... |
include "../../../src/common/enum.inc"
namespace test {
createEnum()
enum(A)
enum(B)
enum(C)
// endEnum() is optional
}
// Try to re-declare an enum.
namespace test {
createEnum() // ERROR
enum(D)
enum(E)
enum(F)
endEnum()
}
|
//
// COMP 371 Labs Framework
//
// Created by Nicolas Bergeron on 20/06/2019.
//
#include <iostream>
#include <list>
#define GLEW_STATIC 1 // This allows linking with Static Library on Windows, without DLL
#include <GL/glew.h> // Include GLEW - OpenGL Extension Wrangler
#include <GLFW/glfw3.h> // cross-platfor... |
; A255771: Number of distinct prime factors of A220294(n).
; 1,1,1,2,2,1,2,2,4,2,2
add $0,1
lpb $0
gcd $0,3
mov $1,$0
mul $0,2
lpe
add $1,1
mov $0,$1
|
// Copyright 2015 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/compiler/code-assembler.h"
#include <ostream>
#include "src/code-factory.h"
#include "src/compiler/graph.h"
#include "src/compiler/instr... |
// 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 "ash/wm/common/background_animator.h"
namespace ash {
namespace {
// Duration of the background animation.
const int kBackgroundDurationMS ... |
; A007814: Exponent of highest power of 2 dividing n, a.k.a. the binary carry sequence, the ruler sequence, or the 2-adic valuation of n.
; 0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,... |
; A025777: Expansion of 1/((1-x)*(1-x^5)*(1-x^7)).
; 1,1,1,1,1,2,2,3,3,3,4,4,5,5,6,7,7,8,8,9,10,11,12,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29,31,32,34,35,36,38,39,41,42,44,46,47,49,50,52,54,56,58,59,61,63,65,67,69,71,73,75,77,79,81,84
add $0,6
mov $2,6
mov $3,6
lpb $0
add $0,1
lpb $2
add $1,4
tr... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xdfc7, %rbp
nop
nop
nop
nop
and %r13, %r13
movups (%rbp), %xmm0
vpextrq $0, %xmm0, %rdi
nop
nop
nop
nop
add $31250, %rax
lea addresses_WT_ht+0x99f, %r13
and $56323, %... |
; CALLER linkage for function pointers
PUBLIC strnicmp
EXTERN strnicmp_callee
EXTERN ASMDISP_STRNICMP_CALLEE
.strnicmp
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp strnicmp_callee + ASMDISP_STRNICMP_CALLEE
|
%macro scall 4
mov rax,%1
mov rdi,%2
mov rsi,%3
mov rdx,%4
syscall
%endmacro
section .data
warn : db "File is not opened successfully",0x0A
lenw : equ $-warn
copiedmessage db "Contents Copied",10
lencopied equ $-copiedmessage
msg1 db "TYPE executed"
l1 equ $-msg1
section .bss
fname : resb 1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xff7, %r15
nop
inc %rdx
movl $0x61626364, (%r15)
nop
xor %r10, %r10
lea addresses_D_ht+0xb9da, %rbp
inc %rdi
movups (%rbp), %xmm0
vpextrq $0, %xmm0, %rax
inc %rdi
l... |
; A196872: A007018(n) repeated A007018(n) times.
; 1,2,2,6,6,6,6,6,6,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806,1806
lpb $0
mov $2,$0
sub $0,1
sub $0,... |
// Copyright (c) 2014-2017, The Shangcoin Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this lis... |
.size 8000
.text@50
jp ltimaint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
xor a, a
ldff(0f), a
ldff(ff), a
ld a, fe
ldff(05), a
ld a, f0
ldff(06), a
ld a, 04
ldff(ff), a
ld a, 04
ldff(07), a
ei
nop
halt
.text@1000
ltimaint:
ld a, 05
ldff(07), a
.text@103f
ldff a, (05)
jp lprint_a
.t... |
; #########################################################################
.386
.model flat, stdcall
option casemap :none
; #########################################################################
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \m... |
; A017265: a(n) = (9*n + 8)^9.
; 134217728,118587876497,5429503678976,78815638671875,618121839509504,3299763591802133,13537086546263552,45848500718449031,134217728000000000,350356403707485209,833747762130149888,1838459212420154507,3802961274698203136,7450580596923828125,13929745610903012864,25004854810776297743,4331040... |
; A107872: Column 1 of triangle A107870; a(n) = C(n*(n+1)/2 + n+2, n).
; 1,4,21,165,1820,26334,475020,10295472,260932815,7575968400,247994680648,9036996468045,362827605867363,15913388077274800,757000487505568680,38819452599736372800,2134712294190092847615,125308416229978665995064,7820410059188152111703325,5170660449201... |
mov word ax, 0xb800
mov word ds, ax
mov byte [0x00], 'a'
mov byte [0x02], 's'
mov byte [0x04], 'm'
jmp $
times 510 - ($-$$) db 0
db 0x55,0xaa |
###############################################################################
# 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... |
; Very simple wrapper for SHA1ShortMsg.txt
;
; Note:
; First message on list has length ZERO, however its represented in test vectors as string 00.
; This wrapper reads *ONLY* messages and valid hashes from test vectors, THE LENGHT OF MESSAGES
; IS DIRECTLY COMPUTED AS NUMBERS OF BYTES READ.
; Thats why it uses additio... |
; -----------------------------------------------------------------------------
; test program
; -----------------------------------------------------------------------------
moge macro
defb 0, 1
endm
|
; void *tshr_saddrpleft(void *saddr, uchar bitmask)
SECTION code_clib
SECTION code_arch
PUBLIC _tshr_saddrpleft_callee
EXTERN asm_tshr_saddrpleft
_tshr_saddrpleft_callee:
pop af
pop hl
dec sp
pop de
push af
ld e,d
jp asm_tshr_saddrpleft
|
;******************************************************************************
;* FFT transform with SSE/3DNow optimizations
;* Copyright (c) 2008 Loren Merritt
;* Copyright (c) 2011 Vitor Sessak
;*
;* This algorithm (though not any of the implementation details) is
;* based on libdjbfft by D. J. Bernstein.
;*
;* This... |
.thumb
.org 0x0
@called at 75D00
push {r14}
mov r0,#2
ldr r1,Func_A240 @copies text to ram
mov r14,r1
.short 0xF800
mov r4,r0
ldr r1,Custom_Message_Func
mov r14,r1
.short 0xF800
ldr r1,Func_3EDC
mov r14,r1
.short 0xF800
pop {r1}
bx r1
.align
Func_A240:
.long 0x0800A240
Func_3EDC:
.long 0x08003EDC
Custom_M... |
; A007581: a(n) = (2^n+1)*(2^n+2)/6.
; 1,2,5,15,51,187,715,2795,11051,43947,175275,700075,2798251,11188907,44747435,178973355,715860651,2863377067,11453377195,45813246635,183252462251,733008800427,2932033104555,11728128223915,46912504507051,187650001250987,750599971449515,3002399818689195,12009599140539051,480383962937... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xda14, %rsi
lea addresses_A_ht+0x4b8, %rdi
nop
nop
sub %r13, %r13
mov $86, %rcx
rep movsb
nop
nop
sub %r11, %r11
lea addresses_D_ht+0x2d54, %r15
and %rbx, %rbx
movups (%r1... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "AnimGraphPrivatePCH.h"
#include "AnimationGraph.h"
#define LOCTEXT_NAMESPACE "AnimationGraph"
/////////////////////////////////////////////////////
// UAnimationGraph
UAnimationGraph::UAnimationGraph(const FObjectInitializer& ObjectInitializer)
... |
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int tc, n, i;
long a[1000];
long sum=0;
cin>>n;
for(i=0;i<n;i++)
{
cin>>a[i];
sum+=a[i];
}
cout<<sum;
return 0;
}
|
; size_t b_array_size(b_array_t *a)
SECTION code_adt_b_array
PUBLIC _b_array_size
EXTERN asm_b_array_size
_b_array_size:
pop af
pop hl
push hl
push af
jp asm_b_array_size
|
.text ; read-only
.global _partA
_partA: MV A6, B1 ; Loop counter
ZERO A7 ; Output accumulator
loop: LDH *A4++, A0
LDH *B4++, B0
NOP 4
MPY A0, A0, A0
MPY B0, B0, B0
NOP
SUB A0, B0, A0
ABS A0, A0
ADD A0, A7, A7
SUB B1, 1, B1 ; Decrement loop ... |
_mkdir: 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 ... |
#include <easylogging++.h>
#include "hint.h"
#include "record.h"
#include "stable_file.h"
namespace bordkv {
StableFile::StableFile(FileHandler file, CacheMetrics &metrics)
: file_{ file }
, metrics_{ metrics }
, cache_{ 128 } {
}
Value StableFile::Read(const Key &key, uint32_t offset, ... |
; A024125: a(n) = 10^n - n^11.
; 1,9,-1948,-176147,-4184304,-48728125,-361797056,-1967326743,-8489934592,-30381059609,-90000000000,-185311670611,256991629312,8207839605963,95950434830336,991350244140625,9982407813955584,99965728103692367,999935731589920768,9999883509741101781,99999795200000000000,999999649722499457779,... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="file, buf"/>
<%docstring>
Invokes the syscall stat. See 'man 2 stat' for more information.
Arguments:
file(char): file
buf(stat): buf
</%docstring>
${syscall('SYS_stat', file, buf)}
|
// 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 "net/cert/nss_cert_database.h"
#include <cert.h>
#include <certdb.h>
#include <pk11pub.h>
#include <algorithm>
#include <memory>
#include ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x9f64, %rsi
lea addresses_WT_ht+0x106cc, %rdi
nop
nop
nop
cmp $15200, %r14
mov $17, %rcx
rep movsl
nop
nop
nop
nop
nop
lfence
pop %rsi
pop %rdi
pop %rcx
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r... |
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
.data
t1_value equ 1 or 2
t1 BYTE t1_value DUP (0)
; CHECK: t1:
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .byte 0
; CHECK-NEXT: .byte 0
; CHECK-NOT: .byte 0
END
|
Map_PathSwap: dc.w word_1D06A-Map_PathSwap
dc.w word_1D084-Map_PathSwap
dc.w word_1D09E-Map_PathSwap
dc.w word_1D09E-Map_PathSwap
dc.w word_1D0B8-Map_PathSwap
dc.w word_1D0D2-Map_PathSwap
dc.w word_1D0EC-Map_PathSwap
dc.w word_1D0EC-Map_PathSwap
word_1D06A: dc.w 4 ; DATA XREF: ROM:0001D05Ao
dc.b $E0... |
;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, DISPLAYI... |
.model small
.stack
.code
start:
; Start of background
mov ah, 06h
mov bh, 70h
mov ch, 00
mov cl, 00
mov dh, 32
mov dl, 80
int 10h
;Start of Nes
;Cap
mov ah, 06h
mov bh, 00h
mov ch, 4
mov cl, 4
mov dh, 6
mov dl, 4
int 10h
mov ah, 06h
mov bh, 00h
mov ch, 3
mov cl, 5
mov dh, 3
mo... |
;
; Getsprite - Picks up a sprite from display with the given size
; by Stefano Bodrato - 2019
;
; The original putsprite code is by Patrick Davidson (TI 85)
;
; Generic version (just a bit slow)
;
; THIS IS A QUICK PLACEHOLDER, WORKING ONLY ON THE PIXELS REGION (0,0)-(255,255)
;
;
; $Id: w_getsprite.asm $
;
IF !__CP... |
.size 8000
.text@48
inc a
ldff(45), a
xor a, a
ldff(41), a
ldff(c), a
jp l1000
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld c, 41
lbegin_waitm0:
ldff a, (c)
and a, b
jrnz lbegin_waitm0
ld a, 80
ldff(68), a
ld a, ff
ld c, 69
ldff(c), a
ldff(... |
// See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
//
// Prints some basic information about the FSTs in an FST archive.
#include <string>
#include <vector>
#include <fst/extensions/far/farscript.h>
#include <fst/extensions/far/getters.h>
DEFINE_string(begin_key, ... |
; A200249: Number of 0..5 arrays x(0..n-1) of n elements with each no smaller than the sum of its previous elements modulo 6.
; 6,21,75,267,951,3387,12063,42963,153015,544971,1940943,6912771,24620199,87686139,312298815,1112268723,3961403799,14108748843,50249054127,178964660067,637392088455,2270105585499,8085100933407,2... |
lui $1,19826
ori $1,$1,49734
lui $2,26681
ori $2,$2,15744
lui $3,6610
ori $3,$3,691
lui $4,21452
ori $4,$4,16857
lui $5,669
ori $5,$5,45959
lui $6,43832
ori $6,$6,40221
mthi $1
mtlo $2
sec0:
nop
nop
nop
or $0,$6,$2
sec1:
nop
nop
sltu $6,$6,$3
or $1,$6,$2
sec2:
nop
nop
ori $6,$2,17169
or $3,$6,$2
sec3:
nop
... |
; A023455: n-13.
; -13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47
sub $0,13
mul $0,120259084288
mov $1,$0
div $1,120259084288
|
#include "core.h"
#include "gl2pixelshader.h"
#include "idatastream.h"
#include "memorystream.h"
GL2PixelShader::GL2PixelShader()
: m_PixelShader( 0 )
{
}
GL2PixelShader::~GL2PixelShader()
{
if( m_PixelShader != 0 )
{
glDeleteShader( m_PixelShader );
}
}
void GL2PixelShader::Initialize( const IDataStream& Strea... |
#ifndef _TCURASTERIZATIONVERIFIER_HPP
#define _TCURASTERIZATIONVERIFIER_HPP
/*-------------------------------------------------------------------------
* drawElements Quality Program Tester Core
* ----------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Ap... |
; void *b_vector_append_block_callee(b_vector_t *v, size_t n)
SECTION code_clib
SECTION code_adt_b_vector
PUBLIC _b_vector_append_block_callee
EXTERN asm_b_vector_append_block
_b_vector_append_block_callee:
pop af
pop hl
pop de
push af
jp asm_b_vector_append_block
|
; int adt_StackPush(struct adt_Stack *s, void *item)
; CALLER linkage for function pointers
XLIB adt_StackPush
LIB adt_StackPush_callee
XREF ASMDISP_ADT_STACKPUSH_CALLEE
.adt_StackPush
pop bc
pop de
pop hl
push hl
push de
push bc
jp adt_StackPush_callee + ASMDISP_ADT_STACKPUSH_CALLEE
|
data
align 4
LABELV $70
address $71
address $72
address $73
address $74
address $75
address $76
address $77
address $78
address $79
address $80
address $81
address $82
address $83
byte 4 0
code
proc UI_CreditMenu_Draw_ioq3 8 20
ADDRLP4 4
CNSTI4 38
ASGNI4
CNSTI4 320
ARGI4
ADDRLP4 4
INDIRI4
ARGI4
ADDRGP4 $84
ARGP4
CNSTI4... |
//
// timer.cpp
// ~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <asio.hpp>
int main... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; LDNDOS.ASM
;;
;; To build LDNDOS.COM:
;; MAC LDNDOS
;; LOAD LDNDOS
;;
;; This is the loader for NIOS.SPR and NDOS.SPR. If NDOS is
;; already running, then LDNDOS resets the network stack.
;; Use the /K argument to unload NDOS.
;;
;; If ... |
BITS 64
GLOBAL strpbrk:function
strpbrk:
PUSH RBP
MOV RBP, RSP
XOR RAX, RAX
XOR RCX, RCX
XOR R8, R8
loop:
CMP BYTE[RDI + RAX], 0
JE end_fail
XOR RCX, RCX
INC RAX
JMP enter_loop
enter_loop:
CMP BYTE[RSI + RCX], 0
JE loop
MOV R9B, [RDI + RAX - 1]
CMP BYTE[RSI + RCX], R9B
JE end
INC RCX
JMP enter_lo... |
.text
addi $t0,$zero,-1 # t0 = 0 +(-1)
srl $s0,$t0,1 # s0 = t0 / 2 | s0 = x, x = maior inteiro possivel
add $t1,$zero, 9375 # s1 = 0 + 9375
sll $s1,$t1,5 # s1 = t1 * 2^5 | s1 = y , y = 300000;
add $t2,$zero,$s1 # t2 = 0 + s1
sll $t2,$t2,2 # t2 *= 2^2 | 300000 * 4;
sub $s2,$s0,$t2 # s2 = s0 + t2 | z = x - 4y
|
; A004495: Tersum n + 6.
; 6,7,8,0,1,2,3,4,5,15,16,17,9,10,11,12,13,14,24,25,26,18,19,20,21,22,23,33,34,35,27,28,29,30,31,32,42,43,44,36,37,38,39,40,41,51,52,53,45,46,47,48,49,50,60,61,62,54
mov $3,$0
mod $0,9
mov $1,896
add $1,$3
mov $2,7
lpb $0,1
mov $0,2
sub $1,$2
sub $1,2
lpe
sub $1,890
|
extern putchar
extern printf
intPrintFormat db "%d", 10, 0
charPrintFormat db "%c", 10, 0
pointerPrintFormat db "%p", 10, 0
printI8:
sub rsp, 8
mov esi, edi
mov edi, intPrintFormat
xor al, al
call printf
add rsp, 8
ret
printI16:
sub rsp, 8
mov esi, edi
mov edi, intPrintFormat
... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="fildes, ctlptr, dataptr, band, flags"/>
<%docstring>
Invokes the syscall putpmsg. See 'man 2 putpmsg' for more information.
Arguments:
fildes(int): fildes
ctlptr(strbuf): ctlptr
dataptr(strbuf): dataptr
band(int): band
flags... |
; Porto alegre, maio de 2021
; Trabalho do INTEL
;
;====================================================================
;====================================================================
.model small
.stack
CR equ 0dh
LF equ 0ah
.data
; Mensagens
linha0 db 'Arquitetura e Organizacao de... |
copyright zengfr site:http://github.com/zengfr/romhack
005D10 move.b ($35,A6), D1 [123p+ 25]
005D14 moveq #$10, D0 [123p+ 35]
019B6C move.b ($35,A6), D1 [123p+ 25]
019B70 andi.b #$f, D1 [123p+ 35]
01A316 move.b ($35,A6), D1 [123p+ 37]
01A31A moveq #$9, D0 [123p+ 35]
copyright zengfr site:http://github.co... |
; Test STAT mode timing while running at double speed.
; Mode 3 duration is measured for different SCX values but
; without any window or sprite rendering.
;
; Verified:
; 2021-10-21 pass: CPU CGB E - CPU-CGB-06
; 2021-10-21 pass: CPU CGB B - CPU-CGB-02
; 2021-10-21 fail: DMG-CPU C (blob) - DMG-CPU-08
;
INCLUDE "... |
; A014935: a(1)=1, a(n) = n*18^(n-1) + a(n-1).
; 1,37,1009,24337,549217,11886625,249972193,5147732449,104327377633,2087920281313,41363059774177,812583980724961,15851391939265249,307372900058661601,5929573413789876961,113875823277429211873
add $0,1
lpb $0
add $2,$0
sub $0,1
mul $2,18
mov $1,$2
lpe
div $1,18
mov... |
* ED - Inserting and deleting characters 1985 Tony Tebby QJUMP
*
section ed
*
xdef ed_insch
xdef ed_delch
xdef ed_setps
*
xref ed_right
xref ed_scrup
xref ed_scrdx
*
include dev8_sbsext_ed_keys
include dev8_sbsext_ed_data
*
* d1 c s character to be inserted
*
* find character position
*
ed_fcpos
move.w e... |
; int zx_getstr(char variable, char *value)
; CALLER linkage for function pointers
PUBLIC zx_getstr
EXTERN zx_getstr_callee
EXTERN ASMDISP_ZX_GETSTR_CALLEE
.zx_getstr
pop bc
pop hl
pop de
push de
push hl
push bc
jp zx_getstr_callee + ASMDISP_ZX_GETSTR_CALLEE
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r15
push %rbp
push %rdi
push %rsi
lea addresses_D_ht+0x1aa4a, %r15
nop
nop
nop
nop
xor $16011, %r11
mov $0x6162636465666768, %rbp
movq %rbp, (%r15)
nop
nop
and $28904, %r14
lea addresses_WC_ht+0x291f, %r12
nop
nop
and %rsi, %rsi
mov $0x616... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xaf3d, %rsi
lea addresses_normal_ht+0x1380a, %rdi
nop
nop
sub $54996, %rax
mov $52, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $48898, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
ret
.global s_faulty_... |
; Move area (generalised PAN/SCROLL) V2.01 Tony Tebby
;
section con
xdef cn_mblock
xdef pt_mblock
;
; d1 c s size of section to move
; d2 c s old origin in source area
; d3 c s new origin in destination area
; d4 s scratch
; d5 s scratch
; d6/d7 preserved
; a0/a1 preserved
; a2 c row increment of sou... |
.text
main:
# load length value and array address
# r1 = passes remaining
# r2 = iterations remaining in current pass
# r3 = address of left element to compare;
# the adjacent right element is 1(r3)
lw $r1 length
lw $r2 length
la $r3 array
loop:
beq $r1... |
#include "dxgi_format.h"
#include <array>
namespace dxvk {
const std::array<DXGI_VK_FORMAT_MAPPING, 133> g_dxgiFormats = {{
// DXGI_FORMAT_UNKNOWN
{ },
// DXGI_FORMAT_R32G32B32A32_TYPELESS
{ VK_FORMAT_R32G32B32A32_UINT,
VK_FORMAT_UNDEFINED,
VK_FORMAT_R32G32B32A32_UINT },
// DXGI_F... |
// 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 "net/http/http_stream_parser.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/strings/string_util.h"
#include "b... |
; A055477: Powers of ten written in base 6.
; Submitted by Jamie Morken(s2)
; 1,14,244,4344,114144,2050544,33233344,554200144,13531202544,243121245344,4332142412144,113534523014544,2043221010301344,33133534145024144,552403211002430544,13502453354043313344,242244120325135240144,4320350125444430242544,1133302222535553043... |
; A239492: The fifth bicycle lock sequence: a(n) is the maximum value of min{x*y, (5-x)*(n-y)} over 0 <= x <= 5, 0 <= y <= n for integers x, y.
; 0,0,2,3,4,6,6,8,9,10,12,12,14,15,16,18,18,20,21,22,24,24,26,27,28,30,30,32,33,34,36,36,38,39,40,42,42,44,45,46,48,48,50,51,52,54,54,56,57,58,60,60,62,63,64,66,66,68,69,70,72,... |
; A152750: Eight times hexagonal numbers: 8*n*(2*n-1).
; 0,8,48,120,224,360,528,728,960,1224,1520,1848,2208,2600,3024,3480,3968,4488,5040,5624,6240,6888,7568,8280,9024,9800,10608,11448,12320,13224,14160,15128,16128,17160,18224,19320,20448,21608,22800,24024,25280,26568,27888,29240,30624,32040,33488,34968,36480,38024,396... |
; A139734: a(n) = 10^n mod 3^n.
; 0,1,1,1,37,127,541,1036,3799,5185,51850,164206,224884,1185958,3887965,5398867,10941949,66372769,276307201,438549076,3223229293,7824802123,15485902012,60715841293,42299339968,705422936161,1970497704952,1911916251217,11493565027183,23428480451986,28393672425211,283936724252110,9863470536... |
; Copyright Oliver Kowalke 2009.
; 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)
; ----------------------------------------------------------------------------------
; | 0 |... |
; *******************************************************
; * *
; * Delphi Runtime Library *
; * Macros *
; * *
; * Copyright (c) 1996,98 Inprise Corporation *
; * *
; *******************************************************
LOCALS @@
; Public variable definition m... |
// Copyright (c) 2019 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 <chainparams.h>
#include <coins.h>
#include <consensus/tx_check.h>
#include <consensus/tx_verify.h>
#include <consensus/v... |
; main file to my project, pong.
; banking
.memorymap
defaultslot 0
slotsize $8000
slot 0 $0000
slotsize $2000
slot 1 $c000
.endme
.rombankmap
bankstotal 1
banksize $8000
banks 1
.endro
.include "tiles.asm"
; compression for tiles
.include "aplib-z80.asm"
.ramsection "aPlibstuff" bank 0 slot 1
aPLibMemory instance... |
; uint in_Inkey(void)
; Read current state of keyboard but only return
; keypress if a single key is pressed.
SECTION code_clib
PUBLIC in_Inkey
PUBLIC _in_Inkey
EXTERN in_keytranstbl
EXTERN in_keyrowmap
; exit : carry set and HL = 0 for no keys registered
; else HL = ASCII character code
; uses : AF,BC,DE,HL
... |
; A213387: a(n) = 5*2^(n-1)-2-3*n.
; 0,2,9,26,63,140,297,614,1251,2528,5085,10202,20439,40916,81873,163790,327627,655304,1310661,2621378,5242815,10485692,20971449,41942966,83886003,167772080,335544237,671088554,1342177191,2684354468,5368709025,10737418142,21474836379,42949672856,85899345813,171798691730,343597383567,68... |
; Link Library Test #2 (TestLib2.asm)
; Testing the Irvine32 Library procedures.
INCLUDE Irvine32.inc
TAB = 9 ; ASCII code for Tab
.code
main PROC
call Randomize ; init random generator
call Rand1
call Rand2
exit
main ENDP
Rand1 PROC
; Generate ten pseudo-random integers.
mov ecx,10 ; loop 10 times
L1: c... |
Route21_h:
db OVERWORLD ; tileset
db ROUTE_21_HEIGHT, ROUTE_21_WIDTH ; dimensions (y, x)
dw Route21Blocks, Route21TextPointers, Route21Script ; blocks, texts, scripts
db NORTH | SOUTH ; connections
NORTH_MAP_CONNECTION ROUTE_21, PALLET_TOWN, 0, 0, PalletTownBlocks
SOUTH_MAP_CONNECTION ROUTE_21, CINNABAR_ISLAND, 0... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x11ed9, %r10
clflush (%r10)
nop
nop
nop
nop
nop
sub $56999, %r11
mov (%r10), %esi
and $38331, %r11
lea addresses_A_ht+0x1e535, %rbp
nop
nop
nop
nop
xor %r9, %r9
mov (%rbp), %rc... |
; A001755: Lah numbers: n! * binomial(n-1, 3)/4!.
; Submitted by Christian Krause
; 1,20,300,4200,58800,846720,12700800,199584000,3293136000,57081024000,1038874636800,19833061248000,396661224960000,8299373322240000,181400588328960000,4135933413900288000,98228418580131840000,2426819753156198400000,6228837366434242560000... |
% Code generated by PREV compiler
SP GREG Stack_Segment
FP GREG #6100000000000000
HP GREG Data_Segment
LOC Data_Segment
L3 BYTE "Sudoku:",0
ReadSize IS 255
ReadArgs BYTE 0,ReadSize
% Code Segment
LOC #500
Main PUSHJ $8,_main
% STOPPING PROGRAM
TRAP 0,Halt,0
% Code for function: _main
% --- Prolog ---
_main SET ... |
; A204453: Period length 14: [0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1] repeated.
; 0,1,2,3,4,5,6,0,6,5,4,3,2,1,0,1,2,3,4,5,6,0,6,5,4,3,2,1,0,1,2,3,4,5,6,0,6,5,4,3,2,1,0,1,2,3,4,5,6,0,6,5,4,3,2,1,0,1,2,3,4,5,6,0,6,5,4,3,2,1,0,1,2,3,4,5,6,0,6,5,4,3,2,1,0,1,2,3,4,5
lpb $0
add $1,$0
mod $0,7
sub $0,$1
add $1,$0
l... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ReadIdtr.Asm
;
; Abstract:
;
; AsmReadIdtr function
;
; Notes:
;
;----------------------------------... |
; A table that translates key presses on the zx keyboard into ascii
; codes. There are four tables mapping the 8x5 zx matrix to an
; ascii code, each corresponding to the states of the CAPS / SYM
; shift keys.
;
; An effort has been made to emulate the PC keyboard with the CTRL key
; represented by CAPS+SYM shifts si... |
org $8000
tilestest: INCBIN "tiles_nivel05.SR5.plet1"
|
; A138035: Binomial transform of A135416.
; Submitted by Christian Krause
; 1,1,3,7,13,21,35,71,169,409,931,1959,3829,7021,12203,20351,33233,55217,99043,201895,465501,1147717,2857075,6941815,16228985,36368201,78183171,161651143,322440517,622370973
mov $4,$0
add $0,1
lpb $0
sub $0,1
mov $2,$1
mul $1,2
add $2,1
... |
; int fputc_unlocked(int c, FILE *stream)
SECTION code_stdio
PUBLIC fputc_unlocked
EXTERN asm_fputc_unlocked
fputc_unlocked:
pop af
pop ix
pop de
push de
push hl
push af
jp asm_fputc_unlocked
|
BITS 32
laitetulostus EQU 4
stdout EQU 1
loppu_hyvin EQU 0
lopetus EQU 1
SECTION .rodata
vakio_pii dq 3.141592654 ;const double pii = 3.1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.