text stringlengths 1 1.05M |
|---|
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
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 pus... |
; A139279: a(n) = 40*n - 32.
; 8,48,88,128,168,208,248,288,328,368,408,448,488,528,568,608,648,688,728,768,808,848,888,928,968,1008,1048,1088,1128,1168,1208,1248,1288,1328,1368,1408,1448,1488,1528,1568,1608,1648,1688,1728,1768,1808,1848,1888,1928,1968,2008,2048,2088,2128,2168,2208,2248,2288,2328,2368,2408,2448,2488,252... |
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// extended_type_info.cpp: implementation for portable version of type_info
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See a... |
;
;
; Z88 Maths Routines
;
; C Interface for Small C+ Compiler
;
; 30th August 2003
;
; $Id: pi.asm,v 1.2 2009/06/22 21:44:17 dom Exp $
;double pi(void) - returns the value of pi
INCLUDE "fpp.def"
XLIB pi
LIB stkequ2
.pi
fpp(FP_PI)
jp... |
.data
a.0: .word 0
b.1: .word 0
c.2: .word 0
t0: .word 0
t1: .word 0
t2: .word 0
.text
runtime:
addi $sp, $sp, -4
sw $ra, 0($sp)
lw $ra, 0($sp)
addi $sp, $sp, 4
jr $ra
.end runtime
.globl main
.ent main
main:
li $3, 1 # a.0 -> $3
li $5, 1 # b.1 -> $5
li $6, 4 # c.2 -> $6
sw $6, c.2 # spilled... |
/**********************************************************************
Audacity: A Digital Audio Editor
Effect.cpp
Dominic Mazzoni
Vaughan Johnson
Martyn Shaw
*******************************************************************//**
\class Effect
\brief Base class for many of the effects in Audacity.
*//... |
main.elf: file format elf32-littleriscv
Disassembly of section .text:
00000000 <_start>:
0: 00000037 lui zero,0x0
00000004 <__crt0_pointer_init>:
4: 80002117 auipc sp,0x80002
8: ff810113 addi sp,sp,-8 # 80001ffc <__ctr0_io_space_begin+0x800021fc>
c: 80000197 ... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="sig, act, oact"/>
<%docstring>
Invokes the syscall sigaction. See 'man 2 sigaction' for more information.
Arguments:
sig(int): sig
act(sigaction): act
oact(sigaction): oact
</%docstring>
${syscall('SYS_sigaction', sig, act, oact... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r8
push %rcx
push %rsi
// Faulty Load
lea addresses_A+0xdc1a, %r8
nop
sub %r13, %r13
mov (%r8), %r14d
lea oracles, %r10
and $0xff, %r14
shlq $12, %r14
mov (%r10,%r14,1), %r14
pop %rsi
pop %rcx... |
; ===================
; Basic Sprite System
; ===================
section "Sprite Variables",wram0
Sprite_NextSprite: db
section "Sprite Routines",rom0
; Reset sprite counter
BeginSprites:
xor a
ld [Sprite_NextSprite],a
ret
; Add sprite entry
; INPUT: b = Tile ID
; c = Attributes
; d = Y ... |
; A101103: Partial sums of A101104. First differences of A005914.
; 1,13,36,60,84,108,132,156,180,204,228,252,276,300,324,348,372,396,420,444,468,492,516,540,564,588,612,636,660,684,708,732,756,780,804,828,852,876,900,924,948,972,996,1020,1044,1068,1092,1116,1140,1164,1188,1212,1236,1260,1284,1308,1332,1356,1380,1404,1... |
; A190509: a(n) = n + [nr/s] + [nt/s] + [nu/s] where r=golden ratio, s=r^2, t=r^3, u=r^4, and [] represents the floor function.
; Submitted by Jon Maiga
; 4,11,15,22,29,33,40,44,51,58,62,69,76,80,87,91,98,105,109,116,120,127,134,138,145,152,156,163,167,174,181,185,192,199,203,210,214,221,228,232,239,243,250,257,261,268... |
; A240752: First differences of digit sums of squares, cf. A004159.
; Submitted by Simon Strandgaard
; 1,3,5,-2,0,2,4,-3,-1,-8,3,5,7,0,-7,4,6,-10,1,-6,5,7,0,2,-5,6,-1,1,-6,-4,7,-9,11,-5,-3,8,1,-6,-4,-2,9,2,4,-3,-10,1,3,-4,-2,0,2,4,6,-1,-8,3,5,-2,0,-7,4,6,8,-8,-6,5,7,-9,2,-5,-3,8,1,3,-4,7,0,-7,-5,-3,8,1,12,-13,-2,9,2,-5... |
; A249184: A249183 seen as binary numbers.
; Submitted by Christian Krause
; 1,7,27,119,427,1799,6939,30583,109227,458759,1769499,7798903,27984299,117901063,454761243,2004318071,7158278827,30064771079,115964117019,511101108343,1833951035819,7726646167303,29802778073883,131352984844151,469126392949419,1970354902204423,7... |
//$Id$
//------------------------------------------------------------------------------
// SolverReal
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represe... |
INCLUDE "data/sprites/facings.asm"
INCLUDE "data/sprites/map_objects.asm"
DeleteMapObject::
push bc
ld hl, OBJECT_MAP_OBJECT_INDEX
add hl, bc
ld a, [hl]
push af
ld h, b
ld l, c
ld bc, OBJECT_STRUCT_LENGTH
xor a
call ByteFill
pop af
cp -1
jr z, .ok
bit 7, a
jr nz, .ok
call GetMapObject
ld hl, OBJECT_S... |
#include "hi.asm"
io0 = 0xff1
li(0x5a)
st io0
li(0xa5)
st io0
hlt
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xfcb6, %r12
dec %rcx
mov (%r12), %ebp
xor $44698, %rax
lea addresses_WC_ht+0x171a, %rcx
nop
nop
nop
nop
nop
xor %rdi, %rdi
movb $0x61, (%rcx)
nop
nop
nop
nop
dec %r12
lea addre... |
#include"Semaphore.h"
Semaphore::Semaphore(){
count =0;
}
void Semaphore::notify(){
std::unique_lock<std::mutex> lock(mtx); // RAII
count++;
cv.notify_one(); // wake waiting one, if no one, do nothing
}
void Semaphore::wait(){
std::unique_lock<std::mutex> loc... |
tilepal 0, WATER, RED, YELLOW, YELLOW, RED, GREEN, GREEN, BROWN
tilepal 0, BROWN, BROWN, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
tilepal 0, GRAY, GRAY, YELLOW, YELLOW, RED, GREEN, GREEN, BROWN
tilepal 0, BROWN, ROOF, GRAY, GRAY, GRAY, GRAY, GRAY, GRAY
tilepal 0, GRAY, GRAY, BROWN, BROWN, GRAY, BROWN, BROWN, ROOF
tilep... |
TITLE Multiple Data Segments (MultData.asm)
; This program shows how to explicitly declare
; multiple data segments.
; Last update: 06/01/2006
cseg SEGMENT 'CODE'
ASSUME cs:cseg, ds:data1, ss:mystack
main PROC
mov ax,data1 ; point DS to data1 segment
mov ds,ax
mov ax,seg val2 ... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: QuietJet printer driver
FILE: quietjetManager.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
---- ---- -----------
... |
; A241526: Number of different positions in which a square with side length k, 1 <= k <= n - floor(n/3), can be placed within a bi-symmetric triangle of 1 X 1 squares of height n.
; 2,7,16,31,53,83,123,174,237,314,406,514,640,785,950,1137,1347,1581,1841,2128,2443,2788,3164,3572,4014,4491,5004,5555,6145,6775,7447,8162,8... |
; A229341: a(n) = tau(n'), the number of divisors of the arithmetic derivative of n.
; 1,1,3,1,2,1,6,4,2,1,5,1,3,4,6,1,4,1,8,4,2,1,6,4,4,4,6,1,2,1,10,4,2,6,12,1,4,5,6,1,2,1,10,4,3,1,10,4,6,6,8,1,5,5,6,4,2,1,6,1,4,4,14,6,2,1,12,4,2,1,12,1,4,4,10,6,2,1,10,12,2,1,6,4,6,6,12,1,4,6,12,4,3,8,10,1,4,6,12,1
add $0,2
seq $0,34... |
; int iscntrl(int c)
SECTION code_clib
SECTION code_ctype
PUBLIC iscntrl
EXTERN asm_iscntrl, error_znc
IF __CLASSIC && __CPU_GBZ80__
PUBLIC _iscntrl
_iscntrl:
ld hl,sp+2
ld a,(hl+)
ld h,(hl)
ld l,a
ENDIF
iscntrl:
inc h
dec h
jp nz, error_znc
ld a,l
call asm_iscntrl
ld l,h
IF __C... |
; A139143: This sequence and A139142 are complements. a(1)=2. A139142(1)=1. A139142(n+1) = A139142(n) + sum{k=1 to n} a(k).
; 2,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,62,63,64,65,66,67,68,69,70,71,72,73... |
; int mtx_lock(mtx_t *m)
SECTION code_threads_mutex
PUBLIC _mtx_lock
EXTERN asm_mtx_lock
_mtx_lock:
pop af
pop hl
push hl
push af
jp asm_mtx_lock
|
; Autogenerated by the Meson build system.
; Do not edit, your changes will be lost.
%define ARCH_X86_32 0
%define ARCH_X86_64 1
%define FORCE_VEX_ENCODING 0
%define HAVE_AVX512ICL 1
%define PIC 1
; %define STACK_ALIGNMENT 16 -- Stack alignment is controlled by Chromium
%define private_prefix dav1d
|
; A079424: A bisection of A024675. Cf. A058296.
; 6,12,18,26,34,42,50,60,69,76,86,99,105,111,129,138,150,160,170,180,192,198,217,228,236,246,260,270,279,288,309,315,334,348,356,370,381,393,405,420,432,441,453,462,473,489,501,515,532,552,566,574,590,600,610,618,636
add $0,1
seq $0,100479 ; Prime(2n-1) + prime(2n).
div ... |
; libsrc/graphics/ts2068hr/w_pixladdr.asm
; posted by rdk77, 11/11/2010
XLIB w_pixeladdress
INCLUDE "graphics/grafix.inc"
;
; $Id: w_pixladdr.asm,v 1.3 2010/12/24 11:59:35 stefano Exp $
;
; ******************************************************************
; Get absolute pixel address in map... |
; A165775: n + (least square >= n), i.e., n + A048761(n).
; 0,2,6,7,8,14,15,16,17,18,26,27,28,29,30,31,32,42,43,44,45,46,47,48,49,50,62,63,64,65,66,67,68,69,70,71,72,86,87,88,89,90,91,92,93,94,95,96,97,98,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,146,147,148,149,150,151,152,153,154,155,156,157,158,159... |
; sccz80 crt0 library - 8085 version
;
; feilipu 10/2021
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_div_u
PUBLIC l_div_u_0
; HL = DE / HL, DE = DE % HL
.l_div_u
ld bc,hl ;copy divisor to bc
; HL = DE / BC, DE = DE % BC
.l_div_u_0
ld hl,0 ;clear remainder
ld ... |
; A265078: Partial sums of A072154.
; 1,4,9,16,25,37,52,69,88,109,133,160,189,220,253,289,328,369,412,457,505,556,609,664,721,781,844,909,976,1045,1117,1192,1269,1348,1429,1513,1600,1689,1780,1873,1969,2068,2169,2272,2377,2485,2596,2709,2824,2941,3061,3184,3309,3436,3565,3697,3832,3969,4108,4249,4393,4540,4689,4840,499... |
SECTION "hUGE Driver memory", hUGE_RAM_SECTION_DECL
; If this is zero, then `hUGE_TickSound` will do nothing
; This is basically a mutex so the driver does not process an inconsistent state
whUGE_Enabled:
db
; Each how many ticks a new note will be played
; For example, if this is set to 1, a new note will play ... |
;*******************************************************************************
; elf.nasm - ELF32 binary format support.
; Copyright (c) 2002 RET & COM Research.
;*******************************************************************************
module binfmt.elf
%include "sys.ah"
exportproc module_init, module_exi... |
; A132944: a(n)=Floor[n^(1/3)+n^(1/4)].
; 2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7
sub $0,2
mov $1,2
mov $2,2
lpb $0
sub $0,$2
add $2,$1
sub $0,$2
trn $0,1
add $1,1
lpe
mov $0,$1
|
;
; ANSI Video handling for the Jupiter ACE
;
; BEL - chr(7) Beep it out
;
;
; Stefano Bodrato - Feb. 2001
;
;
; $Id: f_ansi_bel.asm,v 1.2 2001/04/13 14:13:59 stefano Exp $
;
XLIB ansi_BEL
; No sound, for now!
.ansi_BEL
ret
|
; *******************************************************************************************
; *******************************************************************************************
;
; Name : fpfromstr.asm
; Purpose : Convert String to floating point
; Date : 14th August 2019
; Author : Paul Robson (paul... |
////////////////////////////////////////////////////////////
//
// Bouge - Modern and flexible skeletal animation library
// Copyright (C) 2010 Lucas Beyer (pompei2@gmail.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... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediastore/model/PutContainerPolicyResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include... |
;; @file
; This is the assembly code for transferring to control to OS S3 waking vector
; for X64 platform
;
; Copyright (c) 2006, 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 a... |
CheckForHiddenItems:
; Checks to see if there are hidden items on the screen that have not yet been found. If it finds one, returns carry.
call GetMapScriptsBank
ld [wBuffer1], a
; Get the coordinate of the bottom right corner of the screen, and load it in wBuffer3/wBuffer4.
ld a, [wXCoord]
add SCREEN_WIDTH / 4
l... |
; FV-1 Testing
;
; Program: Read reg 0x0c
;
; POT0: Test Value
;
; Check read register 0x0c
;
skp RUN,main
wlds SIN0,0x03f,0x7fff ; SIN0
wlds SIN1,0x07f,0x7fff ; SIN1
wldr RMP0,0x2000,4096 ; RMP0
wldr RMP0,0x4000,4096 ; RMP1
main: clr
rdax 0x0c,1.0 ; load reg 0x0c
wrax DACL,0.0 ; write to DACL
cho sof,SIN0,... |
//
// Target.hpp
// Clock Signal
//
// Created by Thomas Harte on 02/04/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#ifndef Analyser_Static_MSX_Target_h
#define Analyser_Static_MSX_Target_h
#include "../StaticAnalyser.hpp"
#include <string>
namespace Analyser {
namespace Static {
namespace MSX ... |
RecordStairType: {
pha
lda.l DRMode : beq .norm
lda $040c : cmp #$ff : beq .norm
lda $0e
cmp #$25 : bcc ++ ; don't record straight staircases
sta $045e
++ pla : bra +
.norm pla : sta $a0
+ lda $063d, x
rtl
}
SpiralWarp: {
lda.l DRMode : beq .abort ; abort... |
; A091570: Sum of odd proper divisors of n. Sum of the odd divisors of n that are less than n.
; 0,1,1,1,1,4,1,1,4,6,1,4,1,8,9,1,1,13,1,6,11,12,1,4,6,14,13,8,1,24,1,1,15,18,13,13,1,20,17,6,1,32,1,12,33,24,1,4,8,31,21,14,1,40,17,8,23,30,1,24,1,32,41,1,19,48,1,18,27,48,1,13,1,38,49,20,19,56,1,6,40,42,1,32,23,44,33,12,1,7... |
/* This file was generated automatically by the Snowball to ANSI C compiler */
#include "header.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int spanish_UTF_8_stem(struct SN_env* z);
extern struct SN_env* spanish_UTF_8_create_env(void);
extern void spanish_UTF_8_close_env(struct SN_env* z);
#ifdef __cplusplus
}
... |
; A005054: a(n) = (4*5^n + 0^n) / 5.
; 1,4,20,100,500,2500,12500,62500,312500,1562500,7812500,39062500,195312500,976562500,4882812500,24414062500,122070312500,610351562500,3051757812500,15258789062500,76293945312500,381469726562500,1907348632812500
mov $1,5
pow $1,$0
mul $1,8
add $1,7
div $1,10
|
;
; ANSI Video handling for the Sharp X1
;
; ANSI Video handling for the Commodore 128 (Z80 mode)
; By Stefano Bodrato - 22/08/2001
;
; Text Attributes
; m - Set Graphic Rendition
;
; $Id: f_ansi_attr.asm,v 1.6 2016/07/14 17:44:18 pauloscustodio Exp $
;
SECTION code_clib
PUBLIC ansi_attr
;EXTERN INVRS
EXTERN ... |
; ============================
; Startup/Interrupt Routines
; ============================
#bank program
STARTUP:
; Reset vector (hardware entry point):
.Reset:
; A nop ensures that a reset is performed correctly, regardless of the clock state
nop
; Disable timer
mov [TMR_ACTIVE], zero
; Initiali... |
; A185346: a(n) = 2^n - 9.
; -8,-7,-5,-1,7,23,55,119,247,503,1015,2039,4087,8183,16375,32759,65527,131063,262135,524279,1048567,2097143,4194295,8388599,16777207,33554423,67108855,134217719,268435447,536870903,1073741815,2147483639,4294967287,8589934583,17179869175,34359738359,68719476727,137438953463,274877906935,54975... |
; *********************************************************************************
; *********************************************************************************
;
; File: command.src
; Date : 19th March 2019
; Author: paul@robsons.org.uk
; Purpose: Command line code
;
; **********************************... |
; Built-in functions.
:repl_env .dat 0
.def last_builtin, 0
; Setting up the builtin macro.
; We're building a linked list of (next, string, length, code) blobs for each
; builtin.
; Each builtin has the following parts:
; - foo_name - raw string.
; - foo_record - the (next, string, length, code) blob.
; - foo_symbo... |
#include "main.h"
#include <natus/concurrent/global.h>
#include <natus/log/global.h>
using namespace natus::core::types ;
//
// testing the loose tasks. This is a task that
// run on a rouge(outside thread pool) thread of
// execution.
//
int main( int argc, char ** argv )
{
bool_t run_loop = true ;
na... |
; A118415: (4*n - 3) * 2^(n - 1).
; 1,10,36,104,272,672,1600,3712,8448,18944,41984,92160,200704,434176,933888,1998848,4259840,9043968,19136512,40370176,84934656,178257920,373293056,780140544,1627389952,3388997632,7046430720,14629732352,30333206528,62813896704,129922760704,268435456000,554050781184,1142461300736,2353642... |
; A021509: Decimal expansion of 1/505.
; 0,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1,9,8,0,1
mov $2,7
pow $2,$0
div $2,35
mov $0,$2
mod $0,10
|
#include "../../../java/math/BigInteger.hpp"
#include "./DHParameterSpec.hpp"
namespace javax::crypto::spec
{
// Fields
// QJniObject forward
DHParameterSpec::DHParameterSpec(QJniObject obj) : JObject(obj) {}
// Constructors
DHParameterSpec::DHParameterSpec(java::math::BigInteger arg0, java::math::BigInteger ... |
// Copyright 2020 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 "third_party/blink/renderer/core/css/resolver/matched_properties_cache.h"
#include "third_party/blink/renderer/core/css/css_property_name.h"
#in... |
/****************************************************************************
** Meta object code from reading C++ file 'notificator.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.0)
**
** WARNING! All changes made in this file will be lost!
***************************************************... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x12e73, %r10
nop
nop
nop
and $23367, %rbx
movw $0x6162, (%r10)
nop
nop
nop
nop
xor %rbx, %rbx
lea addresses_WT_ht+0x14e73, %rsi
lea addresses_WT_ht+0x27b3, %rdi
nop
and %r8, %r8
mov $86, %rcx... |
.386
STACK SEGMENT USE16 STACK
DB 200 DUP(0)
STACK ENDS
DATA SEGMENT USE16
XUEHAO DB 3 DUP(0)
DATA ENDS
CODE SEGMENT USE16
ASSUME CS:CODE,DS:DATA,SS:STACK
START:
; INDIRECT
MOV BX, OFFSET XUEHAO
MOV BYTE PTR[BX],'5'
INC BX
MOV BYTE PTR[BX],'3'
INC BX
MOV BYTE ... |
; A134914: Ceiling(n^(1/3)).
; 1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6... |
#include <set>
#include <SDL.h>
#include "devilution.h"
#include "stubs.h"
namespace dvl {
static std::set<uintptr_t> threads;
static std::set<uintptr_t> events;
struct event_emul {
SDL_mutex *mutex;
SDL_cond *cond;
};
struct func_translate {
unsigned int (*func)(void*);
void* arg;
};
static int SDLCALL threa... |
; A004322: Binomial coefficient C(3n,n-4).
; 1,15,153,1330,10626,80730,593775,4272048,30260340,211915132,1471442973,10150595910,69668534468,476260169700,3245372870670,22057981462440,149608375854525,1012974972473835,6848956078664700
mov $1,3
mul $1,$0
add $1,12
bin $1,$0
mov $0,$1
|
; A001002: Number of dissections of a convex (n+2)-gon into triangles and quadrilaterals by nonintersecting diagonals.
; Submitted by Jon Maiga
; 1,1,3,10,38,154,654,2871,12925,59345,276835,1308320,6250832,30142360,146510216,717061938,3530808798,17478955570,86941210950,434299921440,2177832612120,10959042823020,55322023... |
; A184534: a(n) = floor(1/{(4+n^3)^(1/3)}), where {}=fractional part.
; 1,3,7,12,18,27,36,48,60,75,90,108,126,147,168,192,216,243,270,300,330,363,396,432,468,507,546,588,630,675,720,768,816,867,918,972,1026,1083,1140,1200,1260,1323,1386,1452,1518,1587,1656,1728,1800,1875,1950,2028,2106,2187,2268,2352,2436,2523,2610,270... |
#include "format.h"
#include <string>
#define HR_TO_SECONDS 3600
using std::string;
string HMSformat(long value) {
string hms{""};
hms = (value<10)?("0"+to_string(value))
return hms; }
// DONE: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
// REMOVE: [[maybe_unused]] ... |
;10 CLEAR VAL "46000":RANDOMIZE USR VAL "{BE}23636*256+{BE}23635+70":REM
;10 CLEAR VAL "46000":PRINT"Filename?":INPUT LINE a$:RANDOMIZE USR VAL "49155"
;prevent assembly code from being listed
defb 0x0d
defb 0xff
;ensure bank 0 is selected
ld a, (0x5b5c) ; Previous value of port
and 0xf8 ; Select bank 0
ld bc, 0x7... |
; A029025: Expansion of 1/((1-x)(1-x^2)(1-x^8)(1-x^9)).
; 1,1,2,2,3,3,4,4,6,7,9,10,12,13,15,16,19,21,25,27,31,33,37,39,44,47,53,57,63,67,73,77,84,89,97,103,112,118,127,133,143,150,161,169,181,190,202,211,224,234,248,259,274
lpb $0
mov $2,$0
sub $0,2
seq $2,25789 ; Expansion of 1/((1-x)(1-x^8)(1-x^9)).
add $1,$... |
; A169233: Number of reduced words of length n in Coxeter group on 28 generators S_i with relations (S_i)^2 = (S_i S_j)^28 = I.
; 1,28,756,20412,551124,14880348,401769396,10847773692,292889889684,7908027021468,213516729579636,5764951698650172,155653695863554644,4202649788315975388,113471544284531335476,3063731695682346... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_dkud1_Overline
_ff_dkud1_Overline:
BINARY "font/fzx/fonts/dkud1/Overline/overline.fzx"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xb145, %rsi
lea addresses_WC_ht+0x15b45, %rdi
xor $57237, %rax
mov $29, %rcx
rep movsq
nop
nop
add %rsi, %rsi
lea addresses_WC_ht+0x7845, %r15
nop
nop
nop
add %rdx, %rdx
m... |
// Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... |
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <tf/tf.h>
#include <tf/transform_listener.h>
#include <iostream>
#include <string>
#include <geometry_msgs/PointStamped.h>
#include <geometry_msgs/PoseStamped.h>
#include <sensor_msgs/LaserScan.h>
#include <stdio.h>
#include <math.h>
#include <vector>
#i... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="name, length"/>
<%docstring>
Invokes the syscall sethostname. See 'man 2 sethostname' for more information.
Arguments:
name(char): name
len(size_t): len
</%docstring>
${syscall('SYS_sethostname', name, length)}
|
; A181287: Numbers of the form i*5^j-1 (i=1..4, j >= 0).
; 0,1,2,3,4,9,14,19,24,49,74,99,124,249,374,499,624,1249,1874,2499,3124,6249,9374,12499,15624,31249,46874,62499,78124,156249,234374,312499,390624,781249,1171874,1562499,1953124,3906249,5859374,7812499,9765624,19531249,29296874,39062499,48828124,97656249,146484374... |
; A176360: a(n) = quadrant of unit circle corresponding to n radians.
; 1,2,2,3,4,4,1,2,2,3,4,4,1,1,2,3,3,4,1,1,2,3,3,4,4,1,2,2,3,4,4,1,2,2,3,3,4,1,1,2,3,3,4,1,1,2,2,3,4,4,1,2,2,3,4,4,1,1,2,3,3,4,1,1,2,3,3,4,4,1,2,2,3,4,4,1,2,2,3,3,4,1,1,2,3,3,4,1,1,2,2,3,4,4,1,2,2,3,4,4,1,1,2,3,3
add $0,1
mul $0,7
div $0,11
lpb $0
... |
; A319258: a(n) = 1 + 2*3 + 4 + 5*6 + 7 + 8*9 + 10 + 11*12 + ... + (up to n).
; 1,3,7,11,16,41,48,56,120,130,141,262,275,289,485,501,518,807,826,846,1246,1268,1291,1820,1845,1871,2547,2575,2604,3445,3476,3508,4532,4566,4601,5826,5863,5901,7345,7385,7426,9107,9150,9194,11130,11176,11223,13432,13481,13531,16031,16083,161... |
;-------------------------------------------------------------------------------
; File: main.asm (CPE 325 Lab 6)
; Function: References to the SW1_ISR and SW2_ISR to use interrupts to perform a specific task as each switch is pushed
; Input: Users choice of switch combination
; Output: If SW1 is hit, LED1 (RED) Bl... |
FadeOutAudio::
ld a, [wAudioFadeOutControl]
and a ; currently fading out audio?
jr nz, .fadingOut
ld a, [wd72c]
bit 1, a
ret nz
ld a, $77
ldh [rNR50], a
ret
.fadingOut
ld a, [wAudioFadeOutCounter]
and a
jr z, .counterReachedZero
dec a
ld [wAudioFadeOutCounter], a
ret
.counterReachedZero
ld a, [wAudioFad... |
//=================================================================================================
/*!
// \file src/classic/DMatDMatMult.cpp
// \brief Source file for the classic dense matrix/dense matrix multiplication kernel
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This file is p... |
#pragma once
#pragma warning
#include "Vector.hpp"
#include "..\SDK\Definitions.hpp"
#include "Color.hpp"
namespace SDK
{
class IDebugOverlay
{
public:
virtual void AddEntityTextOverlay(int ent_index, int line_offset, float duration, int r, int g, int b, int a, const char *format, ...) = 0;
virtual void AddBoxO... |
MAX: DC INTEGER(100)
TAB: DC 100*INTEGER(1)
CZTERY: DC INTEGER(4)
SEPARATOR: DC CHAR('\n')
MAIN:
XOR 5, 5 ;REJESTR 5 = stała 0
XOR 0, 0 ;REJESTR 0 = i
XOR 1, 1 ;REJESTR 1 = j
... |
;CodeVisionAVR C Compiler V3.46a Evaluation
;(C) Copyright 1998-2021 Pavel Haiduc, HP InfoTech S.R.L.
;http://www.hpinfotech.ro
;Build configuration : Debug
;Chip type : ATmega8535
;Program type : Application
;Clock frequency : 1.000000 MHz
;Memory model : Small
;O... |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-20, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
CinnabarIsland_Object:
db $43 ; border block
def_warps
warp 6, 3, 1, POKEMON_MANSION_1F
warp 18, 3, 0, CINNABAR_GYM
warp 6, 9, 0, CINNABAR_LAB
warp 11, 11, 0, CINNABAR_POKECENTER
warp 15, 11, 0, CINNABAR_MART
def_signs
sign 9, 5, 3 ; CinnabarIslandText3
sign 16, 11, 4 ; MartSignText
sign 12, 11, 5 ;... |
; A017256: a(n) = (9*n + 7)^12.
; 13841287201,281474976710656,59604644775390625,2386420683693101056,39959630797262576401,390877006486250192896,2654348974297586158321,13841287201000000000000,59091511031674153381441,215671155821681003462656,693842360995438000295041,2012196471835550329409536,5350250105473711181640625,1321... |
;******************************************************************************
;
; (c) 2006 by BECK IPC GmbH
; http://www.beck-ipc.com
;
;******************************************************************************
;
; Module: usb14.asm
; Function: Dynamic linking of USB-API-Function usbDeviceGetEps()
;
;
;***... |
SECTION .data
msg: db "Hi World",10
len: equ $-msg
SECTION .text
global main
main:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80
|
#include "../CPU.asm"
#bank rom
top:
load a, #0xAA
assert a, #0xAA
jmp next
assert a, #0x00
halt
next:
load a, #0xBB
assert a, #0xBB;
halt |
; A061818: Multiples of 2 containing only digits 0,1,2.
; 0,2,10,12,20,22,100,102,110,112,120,122,200,202,210,212,220,222,1000,1002,1010,1012,1020,1022,1100,1102,1110,1112,1120,1122,1200,1202,1210,1212,1220,1222,2000,2002,2010,2012,2020,2022,2100,2102,2110,2112,2120
mov $1,$0
mul $0,2
add $0,3
sub $1,1
add $1,$0
sub $... |
// picoChip ASM file
//
// Support for 16-bit unsigned division/modulus.
//
// Copyright (C) 2003, 2004, 2005, 2008, 2009 Free Software Foundation, Inc.
// Contributed by picoChip Designs Ltd.
// Maintained by Daniel Towner (daniel.towner@picochip.com)
//
// This file is free software; you can redistribute i... |
db "JELLYFISH@" ; species name
dw 211, 1000 ; height, weight
db "As it floats along"
next "on the waves, it"
next "uses its toxic"
page "feelers to stab"
next "anything it"
next "touches.@"
|
; ---------------------------------------------------------------------------
; Sprite mappings - Roller enemy (SYZ)
; ---------------------------------------------------------------------------
dc.w byte_E1AC-Map_obj43, byte_E1B7-Map_obj43
dc.w byte_E1C2-Map_obj43, byte_E1C8-Map_obj43
dc.w byte_E1CE-Map_obj... |
; A016802: a(n) = (4*n)^2.
; 0,16,64,144,256,400,576,784,1024,1296,1600,1936,2304,2704,3136,3600,4096,4624,5184,5776,6400,7056,7744,8464,9216,10000,10816,11664,12544,13456,14400,15376,16384,17424,18496,19600,20736,21904,23104,24336,25600,26896,28224,29584,30976,32400,33856,35344,36864,38416,40000,41616,43264,44944,4665... |
;
; Comment
;
; === STACK SEGMENT ===
MyStack segment stack
DB 64 dup('12345678')
MyStack endS
; === DATA SEGMENT ===
MyData segment
; --- Declare your variables here ---
SCRMODES DB "Screen modes: ",13,10,"1. 640x200, 256 colors:",13,10,"2. 320x200 16 colors",13,10,"3. monochrome text",13,10,">$"
MyData endS
... |
; A099867: a(n) = 5*a(n-1) - a(n-2) for n>1, a(0)=1, a(1)=9.
; 1,9,44,211,1011,4844,23209,111201,532796,2552779,12231099,58602716,280782481,1345309689,6445765964,30883520131,147971834691,708975653324,3396906431929,16275556506321,77980876099676,373628823992059,1790163243860619,8577187395311036
lpb $0,1
sub $0,1
add... |
// Copyright 2011 University of Central Florida, New BSD License
#include <stdio.h>
#include <tchar.h>
#include "mex.h"
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
const int MAX_CORNERS = 10000;
#define DATA_TYPE double
#define MAT_ELEM(v,d,i,j) (*(v+((d)*(j))+(i)))
void runSURF(IplImage*, ... |
; A004596: Expansion of e in base 5.
; 2,3,2,4,3,4,3,0,3,4,0,4,4,2,3,0,3,4,0,4,1,0,3,1,0,3,3,1,0,1,3,2,4,0,1,3,3,2,3,4,4,1,1,2,3,2,3,0,1,0,1,2,1,0,3,3,3,0,2,1,4,4,3,3,4,2,0,0,3,4,3,3,4,2,0,0,4,4,3,4,0,4,1,4,2,0,3,2,0,0,3,2,2,1,3,2,1,0,1,0
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $2,$3
add $1,$2
cmp $4,0
... |
SECTION .ramdisk
incbin "ramdisk_total" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.