text stringlengths 1 1.05M |
|---|
; ===============================================================
; Dec 2013
; ===============================================================
;
; void p_queue_push(p_queue_t *q, void *item)
;
; Push item into queue.
;
; ===============================================================
SECTION code_clib
SECTION code_a... |
; A231505: a(n) = Sum_{i=0..n} digsum_3(i)^4, where digsum_3(i) = A053735(i).
; 0,1,17,18,34,115,131,212,468,469,485,566,582,663,919,1000,1256,1881,1897,1978,2234,2315,2571,3196,3452,4077,5373,5374,5390,5471,5487,5568,5824,5905,6161,6786,6802,6883,7139,7220,7476,8101,8357,8982,10278,10359,10615,11240,11496,12121,13417,... |
; @@@ void mikeos_sint_to_string(char *buf, int value);
%include "os_vector.inc"
section .text
use16
global _mikeos_sint_to_string
_mikeos_sint_to_string:
push bp
mov bp, sp
push si
push di
mov ax, [bp + 6]
mov bx, os_sint_to_string
call bx
mov di, [bp + 4]
mov si, ax
mov bx, os_string_copy
call bx
... |
; A098452: One of three ordered sets of positive integers that solves the minimal magic die puzzle.
; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,21,22,43
mov $1,3
mov $4,$0
mov $5,4
lpb $0
sub $0,$5
trn $0,2
add $2,$0
trn $0,1
trn $3,1
add $5,$1
add $1,$3
sub $1,1
add $2,3
trn $1,$2
mov $2,0
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xafa1, %r10
add $5706, %r9
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
vmovups %ymm1, (%r10)
nop
nop
nop
nop
xor %r11, %r11
lea addresses_D_ht+0x18d2f, %rbx
nop
no... |
/**
* @file AsciiRasterInterface.cpp
* @author Karsten Rink
* @date 2014-09-10
* @brief Implementation of the AsciiRasterInterface class.
*
* @copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompan... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
cls ;Clear frame
spr #1008 ;16x16 px sprites
:start
ldi r0,20 ;Reset X coordinate
ldi r3,8 ;Reset counter
ldi r4,sprite_up ;Sprite pointer
ldi r5,1 ;Pressed button value
vblnk ;Wait for vetical blank
ldm ra,fff0h ;Read Pad 1 status
ldm rb,fff2h ;Read Pad 2 status
cls ;clear frame
:draw_... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t bv_priority_queue_capacity(bv_priority_queue_t *q)
;
; Return the amount of space allocated for the queue in bytes.
;
; ============================================... |
DrainHPEffect_:
ld hl, wDamage
ld a, [hl]
srl a ; divide damage by 2
ld [hli], a
ld a, [hl]
rr a
ld [hld], a
or [hl] ; is damage 0?
jr nz, .getAttackerHP
; if damage is 0, increase to 1 so that the attacker gains at least 1 HP
inc hl
inc [hl]
.getAttackerHP
ld hl, wBattleMonHP
ld de, wBattleMonMaxHP
ldh a... |
; A145129: 1 + (9960 + (6804 + (2464 + (735 + (175 + (21 + n)*n)*n)*n)*n)*n)*n/5040.
; 1,5,18,56,155,386,876,1836,3597,6655,11726,19812,32279,50948,78200,117096,171513,246297,347434,482240,659571,890054,1186340,1563380,2038725,2632851,3369510,4276108,5384111,6729480,8353136,10301456,12626801,15388077,18651330,22490376,... |
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
;; Copyright (c) 2020, Florian Büstgens
;; 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 list of ... |
#ifndef OPENPOSE_TRACKING_PERSON_ID_EXTRACTOR_HPP
#define OPENPOSE_TRACKING_PERSON_ID_EXTRACTOR_HPP
#include <atomic>
#include <unordered_map>
#include <openpose/core/common.hpp>
namespace op
{
struct PersonEntry
{
long long counterLastDetection;
std::vector<cv::Point2f> keypoints;
std... |
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2016 Return Infinity -- see LICENSE.TXT
;
; INIT HDD
; =============================================================================
; ----------------... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
... |
// Copyright (c) 2011 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 "native_client/src/shared/platform/nacl_check.h"
#include "ppapi/native_client/tests/ppapi_browser/ppb_file_io/common.h"
#include "ppapi/nati... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS - Bitmap edit object
MODULE: VisBitmap edit object
FILE: bitmapUndo.asm
AUTHOR: Jon Witort
REVISION HISTORY:
Name Date Description
---- ---- -----------... |
<%page args="uid = 'euid'"/>
<%docstring>
Args: [uid (imm/reg) = euid]
Sets the real and effective user id.
</%docstring>
% if uid == 'euid':
;; geteuid
push SYS_geteuid
pop eax
int 0x80
% else:
push ${uid}
pop eax
% endif
;; setreuid(eax, eax)
mov ebx, eax
mov ecx, eax
pus... |
; A208428: Number of n X 2 0..2 arrays with new values 0..2 introduced in row major order and no element equal to any knight-move neighbor (colorings ignoring permutations of colors).
; 2,14,54,216,864,3456,13824,55296,221184,884736,3538944,14155776,56623104,226492416,905969664,3623878656,14495514624,57982058496,231928... |
; This table translates key presses into ascii codes.
; Also used by 'GetKey' and 'LookupKey'. An effort has been made for
; this key translation table to emulate a PC keyboard with the 'CTRL' key
SECTION rodata_clib
PUBLIC in_keytranstbl
.in_keytranstbl
; 48 bytes per table
defb '.', ';', 13, ':', 12, '=' ; .,... |
/* IBK Math Kernel Library
Copyright (c) 2001-today, Institut fuer Bauklimatik, TU Dresden, Germany
Written by A. Nicolai, A. Paepcke, H. Fechner, St. Vogelsang
All rights reserved.
This file is part of the IBKMK Library.
Redistribution and use in source and binary forms, with or without modification,
are perm... |
; A019669: Decimal expansion of Pi/2.
; Submitted by Jon Maiga
; 1,5,7,0,7,9,6,3,2,6,7,9,4,8,9,6,6,1,9,2,3,1,3,2,1,6,9,1,6,3,9,7,5,1,4,4,2,0,9,8,5,8,4,6,9,9,6,8,7,5,5,2,9,1,0,4,8,7,4,7,2,2,9,6,1,5,3,9,0,8,2,0,3,1,4,3,1,0,4,4,9,9,3,1,4,0,1,7,4,1,2,6,7,1,0,5,8,5,3,3
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
mov $4,$0
cmp $4,... |
BluesHouseObject:
db $0A ; border block
db $2 ; warps
db $7, $2, $1, $FF
db $7, $3, $1, $FF
db $0 ; signs
db $3 ; objects
object SPRITE_DAISY, $2, $3, STAY, RIGHT, $81, $0 ; Daisy, sitting by map
object SPRITE_DAISY, $6, $4, WALK, $1, $82, $0 ; Daisy, walking around
object SPRITE_BOOK_MAP_DEX, $3, $3, STAY,... |
#include "Renderer.hpp"
#include "RenderCommand.hpp"
namespace Murat {
Renderer::SceneData *Renderer::s_SceneData = new Renderer::SceneData;
void Renderer::beginScene(Camera &camera) {
s_SceneData->ViewProjectionMatrix = camera.getProjectionViewMatrix();
}
void Renderer::endScene() {
}... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1b931, %r8
nop
nop
nop
xor $7069, %r12
movl $0x61626364, (%r8)
nop
and $14488, %r14
lea addresses_WT_ht+0x1a5bf, %r8
nop
cmp $48745, %rdx
movb (%r8), %r10b
dec %... |
; A098461: Expansion of E.g.f.: 1/sqrt(1-2*x-3*x^2).
; Submitted by Simon Strandgaard
; 1,1,6,42,456,6120,101520,1980720,44634240,1139080320,32488646400,1023985670400,35345049062400,1325988036172800,53721616851302400,2337607853957376000,108727934847307776000,5383304681800421376000,282682783375630589952000,1569183513560... |
; A026383: a(n) = 5*a(n-2), starting 1,2.
; 1,2,5,10,25,50,125,250,625,1250,3125,6250,15625,31250,78125,156250,390625,781250,1953125,3906250,9765625,19531250,48828125,97656250,244140625,488281250,1220703125,2441406250,6103515625,12207031250
mov $1,4
lpb $0
sub $0,2
mul $1,5
lpe
add $0,1
lpb $0
sub $0,1
mul $1,... |
<% from pwnlib.shellcraft import arm %>
<%docstring>
Execute a different process.
>>> p = run_assembly(shellcraft.arm.linux.sh())
>>> p.sendline(b'echo Hello')
>>> p.recv()
b'Hello\n'
</%docstring>
${arm.linux.execve('/bin///sh', ['sh', '-p'], 0)}
|
; A132950: Generalization of an a(n)=3*2^n*a(n-1) as 3=(m+1) and 2=m To give general term: t(n,m)=a(n)=(m+1)^n*m^(n*(n-1)/2) ( here n taken first).
; Submitted by Christian Krause
; 1,1,2,1,3,18,1,4,48,1728,1,5,100,8000,2560000,1,6,180,27000,20250000,75937500000,1,7,294,74088,112021056,1016255020032,55316793250381824,1... |
.code
screen01_init:
stw #000, <_txt_y_start
stw #248, <_txt_x_start
stb #8, <_v
lda #1
tam #2
ldx <_txt
lda strings_lo, X
sta <_start
lda strings_hi, X
sta <_start+1
inx
cpx #txt_count
bne .store
clx
.sto... |
// Copyright (c) 2014-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "random.h"
#include "uint256.h"
#include "test/test_remix.h"
#include "main.h"
#include "consensu... |
; A107443: G.f. (3*x^2+1)/((1-x)*(2*x^2+x+1)*(2*x^2-x+1)).
; 1,1,1,1,-3,-3,9,9,-11,-11,1,1,45,45,-135,-135,229,229,-143,-143,-483,-483,2025,2025,-4139,-4139,4321,4321,3597,3597,-28071,-28071,69829,69829,-97199,-97199,12285,12285,351945,351945,-1104971,-1104971,1907137,1907137,-1301523,-1301523,-3723975,-3723975
div $0... |
; A052666: E.g.f. 1/(1-x-3x^2).
; Submitted by Jamie Morken(s1)
; 1,1,8,42,456,4800,69840,1093680,20482560,420577920,9736070400,245887488000,6806133734400,203555082931200,6565920180019200,226728504946944000,8355118608764928000,327047476385710080000
mov $3,1
lpb $0
mov $2,$3
add $3,$1
mov $1,$0
sub $0,1
mul $... |
; A002276: a(n) = 2*(10^n - 1)/9.
; Submitted by Jon Maiga
; 0,2,22,222,2222,22222,222222,2222222,22222222,222222222,2222222222,22222222222,222222222222,2222222222222,22222222222222,222222222222222,2222222222222222,22222222222222222,222222222222222222,2222222222222222222,22222222222222222222,222222222222222222222,22222... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x324a, %rsi
lea addresses_D_ht+0x804a, %rdi
nop
nop
inc %rbp
mov $121, %rcx
rep movsb
nop
cmp $36494, %r8
lea addresses_WC_ht+0x524a, %rsi
nop
nop
sub $64730, %r13
movups (%rsi), %xmm6
vpextrq $0,... |
// 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 <map>
#include <openssl/ecdsa.h>
#include <openssl/obj_mac.h>
#include "key.h"
// Generate a private key from just... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x5d58, %rbx
xor %r12, %r12
movw $0x6162, (%rbx)
nop
lfence
lea addresses_WC_ht+0x8e4, %rsi
lea addresses_normal_ht+0x210, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
dec %r14
mov... |
; segment name in DW
IDEAL
ASSUME CS: SEG1
SEGMENT SEG1
start:
int 20h
ENDS SEG1
SEGMENT SEG2
DW SEG1, SEG2
ENDS SEG2
SEGMENT SEG1
DW SEG1, SEG2
ENDS SEG1
GROUP GROUP1 SEG1, SEG2
END start
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1b38b, %rsi
lea addresses_A_ht+0x1bb4b, %rdi
nop
nop
nop
nop
nop
add %r13, %r13
mov $10, %rcx
rep movsb
nop
nop
nop
nop
sub %r14, %r14
lea addresses_D_ht+0xad5b, %r13
and %r1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %rdi
push %rsi
lea addresses_A_ht+0xa781, %r11
nop
nop
nop
add $63066, %rdi
mov (%r11), %rsi
nop
cmp $44638, %r13
pop %rsi
pop %rdi
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r8
push %rax
push ... |
; A224903: a(n) = sigma(2*n^4) - sigma(n^4).
; Submitted by Christian Krause
; 2,32,242,512,1562,3872,5602,8192,19682,24992,32210,61952,61882,89632,189002,131072,177482,314912,275122,399872,677842,515360,585122,991232,976562,990112,1594322,1434112,1465082,3024032,1908610,2097152,3897410,2839712,4375162,5038592,3852442
... |
; gdt.asm - Defines assembly methods for the gdt to use.
bits 32
global install_gdt
; install_gdt - installs our global descriptor table.
; stack: [esp + 4]
; [esp ] the return code
;
install_gdt:
lgdt [esp + 4] ; loads the interrupt descriptor table with our idt
ret |
;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... |
; A087690: Denominators of successive partial sums of sum(1/(2^n-1)).
; Submitted by Christian Krause
; 1,3,21,35,1085,9765,1240155,21082635,1539032355,16929355905,34654391537535,150169029995985,1230034524697113135,17630494853991954935,2662204722952785195185,410511968279319477097527,53806214194338683182649961417,131440... |
; A213857: Least m such that n! <= 3^m.
; Submitted by Jon Maiga
; 1,1,2,3,5,6,8,10,12,14,16,19,21,23,26,28,31,34,36,39,42,45,47,50,53,56,59,62,65,68,72,75,78,81,84,88,91,94,98,101,104,108,111,115,118,122,125,129,132,136,139,143,146,150,154,157,161,165,168,172,176,180,183,187,191,195,199,203,206,210,214,218,222,226,230... |
; Ellipse Workstation 1100 (fictitious computer)
; ROM code (fixed-width text code)
;
; Copyright (c) 2020 Sampo Hippeläinen (hisahi)
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Softwar... |
Route12WildMons:
def_grass_wildmons 15 ; encounter rate
db 33, FEAROW
db 34, POLIWHIRL
db 32, POLIWHIRL
db 35, MANKEY
db 34, GLOOM
db 33, GOLBAT
db 36, VENOMOTH
db 37, PIDGEOTTO
db 38, DUGTRIO
db 41, CHARIZARD
end_grass_wildmons
def_water_wildmons 0 ; encounter rate
end_water_wildmons
|
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
;
; Basic video handling for the MC-1000
;
; (HL)=char to display
;
;----------------------------------------------------------------
;
; $Id: fputc_cons.asm,v 1.5 2016-05-15 20:15:45 dom Exp $
;
;----------------------------------------------------------------
;
SECTION code_clib
PUBLIC fputc_cons_native
.fputc_co... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x95e3, %rsi
lea addresses_UC_ht+0x1539f, %rdi
clflush (%rdi)
nop
nop
nop
and $60476, %r11
mov $12, %rcx
rep movsq
nop
nop
nop
cmp %rax, %rax
lea addresses_WC_ht+0x19b0f, %rsi
nop
nop
nop
sub $35... |
dnl Intel P6 mpn_sqr_basecase -- square an mpn number.
dnl Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
dnl
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
dnl modify it under the terms of the GNU Lesser General Public License a... |
%define VIDEOBIOS 0x10
%define SETVIDEOMODE 0
%define CGA4COLOR 0x04
%define WIDTHPX 320d
%define PXB 4 ; Pixeles por byte
%assign PYTERPERSCAN (WIDTHPX * PXB)
%define MEMCGAEVEN 0xB800
%define MEMCGAODD 0xBA00
org 100h
section .text
start:
; program code
mov ah, SETVIDEOMODE ; Estab... |
// Created on: 1992-03-04
// Created by: Laurent BUCHARD
// Copyright (c) 1992-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GN... |
#include <iostream>
#include <cassert>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/push_relabel_max_flow.hpp>
#include <boost/graph/dijkstra_shortest_paths.hpp>
const int debug_level = 0;
#define DEBUG(min_level, x) \
if (debug_level >= min_level) \
{ \
s... |
; size_t b_array_append(b_array_t *a, int c)
SECTION code_adt_b_array
PUBLIC b_array_append
EXTERN asm_b_array_append
b_array_append:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_b_array_append
|
; A131898: a(n) = 2^(n+1) + 2*n - 1.
; 1,5,11,21,39,73,139,269,527,1041,2067,4117,8215,16409,32795,65565,131103,262177,524323,1048613,2097191,4194345,8388651,16777261,33554479,67108913,134217779,268435509,536870967,1073741881,2147483707,4294967357,8589934655,17179869249,34359738435,68719476805,137438953543,274877907017... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xeac4, %rsi
lea addresses_WC_ht+0x9bc4, %rdi
clflush (%rsi)
nop
nop
nop
nop
and %r13, %r13
mov $36, %rcx
rep movsq
nop
cmp $34084, %r13
lea addresses_D_ht+0x16774, %rsi
lea addresses_D... |
;;
;; Copyright (c) 2020-2021, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1cb95, %rsi
lea addresses_normal_ht+0x3155, %rdi
nop
nop
nop
nop
nop
cmp %r10, %r10
mov $40, %rcx
rep movsl
nop
nop
nop
and $46765, %rax
lea addresses_A_ht+0xc205, %rsi
lea addresses_... |
###############################################################################
# Copyright 2019 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... |
; ---------------------------------------------------------------
; ------- Copyright 2016 Daniel Valencia, All Rights Reserved. --
; ------- --
; ------- Paging.asm --
; ------- ... |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
// A
LDR0 0 // y
SDR0 AY
LDR0 128 // x
SDR0 AX
// B
LDR0 255 // y
SDR0 BY
LDR0 0 // x
SDR0 BX
// C
LDR0 255 // y
SDR0 CY
LDR0 255 // x
SDR0 CX
// PT
42 // Undocumented instruction: R0 = random value
SDR0 PTY// y
42
SDR0 PTX // x
START:
42 // Which of A, B, or C?
LDR1 3
MOD
JZ DO_A //... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x19d21, %rsi
lea addresses_A_ht+0x3621, %rdi
nop
and %r9, %r9
mov $44, %rcx
rep movsw
nop
nop
nop
nop
inc %r10
lea addresses_WT_ht+0x105c7, %rbp
nop
nop
and $31518, %rax
mov $0x616263646... |
; A127546: a(n) = F(n)^2 + F(n+1)^2 + F(n+2)^2, where F(n) denotes the n-th Fibonacci number.
; 2,6,14,38,98,258,674,1766,4622,12102,31682,82946,217154,568518,1488398,3896678,10201634,26708226,69923042,183060902,479259662,1254718086,3284894594,8599965698,22515002498,58945041798,154320122894,404015326886,1057725857762,2... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="path, mode, dev"/>
<%docstring>
Invokes the syscall mknod. See 'man 2 mknod' for more information.
Arguments:
path(char): path
mode(mode_t): mode
dev(dev_t): dev
</%docstring>
${syscall('SYS_mknod', path, mode, dev)}
|
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <string.h>
#include <chrono>
#define SIZE 5
using namespace std;
int numero[SIZE];
double contadorBubble, contadorQuick, contadorMerge = 0;
// Cronômetro
clock_t t0, tf;
double tempo_gasto;
int quickSortExec();
void quickSort(int... |
;
; ZX 81 specific routines
; by Stefano Bodrato, 29/07/2008
;
; Copy a variable from basic
;
; int __CALLEE__ zx_setint_callee(char *variable, int value);
;
; $Id: zx_setint_callee.asm,v 1.6 2016/06/26 20:32:09 dom Exp $
;
SECTION code_clib
PUBLIC zx_setint_callee
PUBLIC _zx_setint_callee
PUBLIC ASMDISP_Z... |
; A141934: Primes congruent to 9 mod 25.
; 59,109,359,409,509,659,709,809,859,1009,1109,1259,1409,1459,1559,1609,1709,1759,2309,2459,2609,2659,2909,3109,3209,3259,3359,3559,3659,3709,4159,4259,4409,4759,4909,5009,5059,5209,5309,5659,6359,6659,6709,6959,7109,7159,7309,7459,7559,7759,8009,8059,8209,8609,9059,9109,9209,98... |
; Draw a rectangular block mode 33 with alpha blending v1.00 2016 WL/MK
;
; The block size and origin are assumed to have been adjusted for
; correct position within the area to be set.
;
; Registers:
; Entry Exit
; D0 smashed
; D1 block size smashed
; D2 block origin smashed
; D3-D4 smashed
; D5 alph... |
%ifdef SU_USE_INTROSPECTION
; Various compile time definitions exported
SECT_DATA(introscn)
%ifdef SU_USE_16BIT_OUTPUT
EXPORT MANGLE_DATA(su_use_16bit_output) dd 1
%else
EXPORT MANGLE_DATA(su_use_16bit_output) dd 0
%endif
%ifdef MAX_SAMPLES
EXPORT MANGLE_DATA(su_max_samples) dd MAX_SAMPLES
%endif
%endi... |
; A003075: Minimal number of comparisons needed for n-element sorting network.
; Submitted by Jon Maiga
; 0,1,3,5,9,12,16,19,25,29,35,39
mov $5,$0
mov $7,$0
lpb $5
mov $0,$7
sub $5,1
sub $0,$5
mov $2,2
mov $8,0
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mod $4,$2
sub $2,1
cmp $4,0
... |
#note: r40 (the exception handler) and r46 (the start of usermode code) must
#be specified in hex (0xwhatever)
#I just don't see any reason not to, and it makes programming the script
#much nicer to deal with...
#load exception handler
lc r40, 0x80000074
leh r40
#enable exceptions
cle
#load TLB ent... |
; -----------------------------------------------------------------------------
; Copyright (c) 1988-2018 Robert A. Stoerrle
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted, provided that the above
; copyright notice and this permission notice... |
; void dzx7_standard(void *src, void *dst)
SECTION code_compress_zx7
PUBLIC dzx7_standard
EXTERN asm_dzx7_standard
dzx7_standard:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_dzx7_standard
|
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.31101.0
TITLE C:\Users\DAVE\Documents\Programming\Visual_Studio_6\EXE\Console\SoundOff\SoundOff\SoundOff.C
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
EXTRN __imp__PlaySoundW@12:PROC
EXTRN __imp__AnnounceMeToCRTPNW_WW@12:... |
VDP_PORT_0: equ 98H
VDP_PORT_1: equ 99H
VDP_PORT_2: equ 9AH
VDP_PORT_3: equ 9BH
VDP_READ: equ 00000000B
VDP_WRITE: equ 01000000B
VDP_REGISTER: equ 10000000B
VDP_MIRROR_0: equ 0F3DFH
VDP_MIRROR_8: equ 0FFE7H - 8
VDP_MIRROR_25: equ 0FFFAH - 25
VDP_MODE_GRAPHIC1: equ 00000B
VDP_MODE_TEXT1: equ 00001B
VDP_MODE_TEXT2: eq... |
TITLE Integer Summation Program (Sum_main.asm)
; Multimodule example: (main module)
; This program inputs multiple integers from the user,
; stores them in an array, calculates the sum of the
; array, and displays the sum.
; Last update: 8/29/01
INCLUDE sum.inc
; modify Count to change the size of the array:
Cou... |
; Basic little bitty program for people learning about the different modes
; you can stick on your monitor. This program will put you into 80*50 on a
; VGA monitor, and should be 80*43 on an EGA monitor (I dunno, haven't tested
; it.) Anyways, I tried to comment it so someone not knowing asm would be
; able to under... |
; ===============================================================
; 2015
; ===============================================================
;
; unsigned long cpm_get_offset(void *p)
;
; Return the three-byte little endian value at address p.
;
; ===============================================================
SECTION ... |
#include "RHI_PCH.h"
#include "Vector2.h"
Vector2 Vector2::Zero = Vector2(0.0f, 0.0f); |
# Paul McKenney's Statistical Counter (PerfBook 5.2)
#
# Counter thread: increment global variable heap[0] 3 times.
#
# steps:
# * formula = loop * (3 - 1) + total
# * loop = 9
# * total = 11
#
# template parameter:
# * 10 = local counter address
#
# initial:
# * heap[0] = 0
# * heap[10] = 3
#
# input:
# * heap[10] = l... |
extern m7_ippsHashMethod_MD5:function
extern n8_ippsHashMethod_MD5:function
extern y8_ippsHashMethod_MD5:function
extern e9_ippsHashMethod_MD5:function
extern l9_ippsHashMethod_MD5:function
extern n0_ippsHashMethod_MD5:function
extern k0_ippsHashMethod_MD5:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeIni... |
/* -------------------------------------------------------------------------
*
* hashscan.cpp
* manage scans on hash tables
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the Universi... |
; ===== Makefile Headers =====
; MBC 0x00
; RAM 0x00
INCLUDE "hardware.inc"
INCLUDE "font.inc"
INCLUDE "common.inc"
SECTION "Header", ROM0[0]
ds $38 - @
ConflictHandler::
; Reset SP, reset zero flag and jump back to test
ld sp, $DFFE
xor a
rla
jp Main.crashReset
ds $100 - @
SECTION "Tes... |
======= contracts\counter.sol:Counter =======
EVM assembly:
/* "contracts\counter.sol":63:399 contract Counter {
... */
mstore(0x40, 0x60)
/* "contracts\counter.sol":109:165 function Counter() public {
... */
jumpi(tag_1, iszero(callvalue))
0x0
dup1
revert
tag_1:
tag_2:
/* "contract... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.21.27702.2
include listing.inc
INCLUDELIB OLDNAMES
PUBLIC ??_C@_0BC@OOMENCHE@SSE?5test?5failed?4?6@ ; `string'
PUBLIC ??_C@_03GCDGINBO@ref@ ; `string'
PUBLIC ??_C@_03OEPHKLAG@SSE@ ; `string'
PUBLIC ??_C@_0DA@KNEDKHD@?$CF12s?3?5?$CF?42f?5avera... |
... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>shmget(key, size, shmflg) -> str
Invokes the syscall shmget.
See 'man 2 shmget' for more information.
Arguments:
key(key_t): key
size(size_t): size
shmflg(int): shmflg
Returns:
int
</%docstring>
<%... |
page ,132
; SCCSID = @(#)tenv.asm 4.2 85/08/16
; SCCSID = @(#)tenv.asm 4.2 85/08/16
TITLE Part6 COMMAND Transient routines.
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; Environment u... |
.data
EXTERN g_get_camera_data: qword
EXTERN g_camera_active: byte
EXTERN g_camera_struct: qword
EXTERN dummy_xinput: qword
EXTERN g_xinput_override: qword
.code
asm_get_camera_data PROC
pushf
; Steal the camera pointer
push rbx
lea rbx, [r13 + rdx + 654h]
sub rbx, 24h
mov [g_... |
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x2925- f:00024 d: 293 | OR[293] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x292C- f:00024 d: 300 | OR[300] = A
... |
; A133143: Maximal number of mutually nonattacking Super Queens on an n X n board. (a Super Queen is a queen with both queen and knight powers).
; 1,1,1,2,4,4,5,6,8,10,11,12,13,14,15,16,17,18,19,20
mov $1,$0
sub $0,1
mov $3,$1
mov $1,$0
mov $0,2
sub $1,2
mov $2,3
add $2,$3
lpb $1
sub $1,1
mul $1,2
add $2,1
lpe
t... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
006FD4 cmpi.w #$0, ($32,A5)
006FDA beq $702e [base+ 32]
007600 tst.w ($32,A5)
007604 bne $7624 [base+ 32]
00A736 move.w #$2, ($32,A5)
00A73C jsr $a804.l [base+ 32]
00B45C tst.w ($32,A5... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld b, 91
call lwaitly_b
ld a, b1
ldff(40), a
ld a, a6
ldff(4b), a
ld a, 04
ld(8000), a
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
x... |
.psx
.open "../build/ARC/MOJIPAT_VANILLA.ARC", "../build/ARC/MOJIPAT.ARC", 0
; Read 0 characters for Mission Completed "SAVE" option
@save_chars:
replace 0xB8
db 0x00
endreplace @save_chars
; Read 8 characters for Mission Completed "CONTINUE WITHOUT SAVING" option
@continue_chars:
replace 0xBC
db 0x08
endrep... |
; A014145: Partial sums of A007489.
; 0,1,4,13,46,199,1072,6985,53218,462331,4500244,48454957,571411270,7321388383,101249656696,1502852293009,23827244817322,401839065437635,7182224591785948,135607710526966261,2696935204638786574,56349204870460046887,1234002202313888987200,28263671938642294567513,67574174340821013950782... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rbp
push %rbx
push %rdi
push %rsi
lea addresses_UC_ht+0xfa9e, %rbx
nop
sub %rdi, %rdi
mov $0x6162636465666768, %r11
movq %r11, %xmm4
vmovups %ymm4, (%rbx)
nop
and %rbp, %rbp
lea addresses_UC_ht+0x1986a, %r10
nop
nop
add %r11, %r11
mov $0x6... |
;*****************************************************************************
;* predict-a.asm: x86 intra prediction
;*****************************************************************************
;* Copyright (C) 2005-2018 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Holger Lubitz <h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.