text stringlengths 1 1.05M |
|---|
; A085781: a(n) = 2*binomial(2*n+1,n+1) - 2^n.
; 1,4,16,62,236,892,3368,12742,48364,184244,704408,2702108,10396504,40108408,155101136,601047622,2333540684,9075004228,35345001656,137846004532,538256825864,2104096866568,8233426533296,32247595294492
mov $3,$0
add $0,1
mov $1,2
mul $1,$0
bin $1,$0
mov $2,2
pow $2,$3
lpb $... |
// @HEADER
// ***********************************************************************
//
// Teuchos: Common Tools Package
// Copyright (2004) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of... |
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <sstream>
#include <memory>
#include "reductions.h"
#include ... |
; Small C+ Math Library
; More polynomial evaluation
SECTION code_fp
PUBLIC poly
EXTERN pushfa
EXTERN ldbchl
EXTERN fadd
EXTERN fmul
EXTERN dload
;
.poly CALL pushfa
LD A,(HL)
INC HL
CAL... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x4139, %rbp
nop
nop
nop
and $2047, %r9
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
movups %xmm4, (%rbp)
nop
inc %rdx
lea addresses_WT_ht+0x119ae, %rsi
lea addresses_D_ht+0x19139, %rdi... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SetMem.nasm
;
; Abstract:
;
; SetMem function
;
; Notes:
;
;----------------------------------------... |
;*****************************************************************************
;* x86-optimized Float DSP functions
;*
;* Copyright 2006 Loren Merritt
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License... |
setrepeat 2
frame 0, 07
frame 5, 07
dorepeat 1
endanim
|
;
; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;
; Module Name:
;
; Thunk32To64To.nasm
;
; Abstract:
;
; This is the assembly code to transition from compatibility mode to long mode
; to execute 64-bit code and then transit back to compatibili... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
; ----- void __CALLEE__ draw(int x, int y, int x2, int y2)
;
; $Id: draw_callee.asm $
;
SECTION code_graphics
PUBLIC draw_callee
PUBLIC _draw_callee
... |
; A118148: Start with 1 and repeatedly reverse the digits and add 51 to get the next term.
; 1,52,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964,520,76,118,862,319,964
mov $2,$0
mov $0,1... |
;
; z88dk RS232 Function
;
; OSCA version
;
; unsigned char rs232_put(char)
;
; $Id: rs232_put.asm,v 1.4 2016-07-29 03:28:48 pauloscustodio Exp $
; __FASTCALL__
SECTION code_clib
PUBLIC rs232_put
PUBLIC _rs232_put
INCLUDE "osca.def"
rs232_put:
_rs232_put:
ld c,2
.s_wait
in... |
;;
;; Copyright (c) 2020-2022, 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... |
; A044779: Numbers n such that string 6,6 occurs in the base 10 representation of n but not of n+1.
; 66,166,266,366,466,566,669,766,866,966,1066,1166,1266,1366,1466,1566,1669,1766,1866,1966,2066,2166,2266,2366,2466,2566,2669,2766,2866,2966,3066,3166,3266,3366,3466,3566,3669,3766,3866
mov $6,$0
trn $0,1
mov $4,$0
mod ... |
dnl ******************************************************************************
dnl Copyright 2009 Paul Zimmermann and Alexander Kruppa.
dnl
dnl This file is part of the ECM Library.
dnl
dnl The ECM Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser Gen... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D94 move.l D1, (A1)+
004D96 dbra D0, $4d94
004DA0 move.w #$64, ($6e,A0) [123p+ 6C]
004DA6 move.w #$64, ($6a,A0) [123p+ 6E]
004DC8 move.w #$64, ($6e,A6) [123p+ 6C]
004DCE move.w #$64, ($6a,A6) ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x2774, %r9
lfence
movb (%r9), %cl
nop
dec %rax
lea addresses_A_ht+0x175d0, %rsi
lea addresses_UC_ht+0xa4d0, %rdi
sub %r12, %r12
mov $48, %rcx
rep movsb
add $48278, %rdi
le... |
include stdmacro.i
_TEXT segment
public pj_copy_words
;*****************************************************************************
;* void pj_copy_words(void *src, void *dst, unsigned count)
;*****************************************************************************
pj_copy_words proc near
Entr... |
.data
visited:.space 8
matrix:.space 64
.macro clearMemory(%begin,%size)
li $t0,0
clearMemory_loop:
sb $zero,%begin($t0)
addi $t0,$t0,1
bne $t0,%size,clearMemory_loop
.end_macro
.macro pushStack(%val)
addi $sp,$sp,-4
sw %val,4($sp)
.end_macro
.macro popStack(%reg)
addi $sp,$sp,4
lw %reg,0($sp)
.end_macro
... |
page ,132
title strncmp.asm - compare two strings
;***
;strcmp.asm - routine to compare two strings (for equal, less, or greater)
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; strncmp compares two strings and returns an integer
; to indicate whether t... |
#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
#include <cassert>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&... |
#include "CoreTimeout.h"
using namespace leka;
using namespace std::chrono;
void CoreTimeout::onTimeout(callback_t const &callback)
{
_callback = callback;
}
void CoreTimeout::start(microseconds countdown)
{
stop();
_timeout.attach({this, &CoreTimeout::timeout}, countdown);
}
void CoreTimeout::stop()
{
_timeout... |
; This file is part of the ZRDX 0.50 project
; (C) 1998, Sergey Belyakov
; Loader for XE packed modules
; This code is based on XELOADER stub,
; written by Kevin Tseng, the author of XLE packer
xeh_ID = 0
xeh_ver... |
.org $080D
.segment "STARTUP"
.segment "INIT"
.segment "ONCE"
.segment "CODE"
jmp start
valor1 = $123
valor2 = $456
total = $579
start:
clc
lda #<valor1
adc #<valor2
sta $1000
lda #>valor1
adc #>valor2
sta $1001
lda total
sta $1003
rts
|
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
016B72 move.l A6, (A4) [123p+ 6C, base+6BE4, base+6BF4, base+6C04, base+6C14, base+6C24, base+6C34, base+6C44, base+6C54, base+6C64, base+6C74, base+6C84, base+6C94, base+6CA4, base+6CC4, base+6CD4, enemy+6C]
... |
.data
length:.word 12
breath:.word 15
newline:.asciiz "\n"
area:.word 0
.text
.globl main
main:
lw $t0, length
lw $t1, breath
mul $t2,$t0,$t1
sw $t2, area
move $v0,$t2
li $v0,4
la $a0, newline
syscall
li $v0, 10
syscall |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_US+0x18d81, %r10
and %rcx, %rcx
mov $0x5152535455565758, %rdi
movq %rdi, %xmm0
movups %xmm0, (%r10)
nop
nop
nop
and $17288, %rbp
// Fau... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; XADD8rr
mov al, 0x45
mov bl, 0x56
;TEST_BEGIN_RECORDING
xadd al, bl
;TEST_END_RECORDING
|
; A279363: Sum of 4th powers of proper divisors of n.
; 0,1,1,17,1,98,1,273,82,642,1,1650,1,2418,707,4369,1,7955,1,10898,2483,14658,1,26482,626,28578,6643,41090,1,62644,1,69905,14723,83538,3027,133923,1,130338,28643,174994,1,236692,1,249170,57893,279858,1,423794,2402,401267,83603,485810,1,644372,15267,659842,130403,707... |
; A188218: Positions of 1 in A188192; complement of A188217.
; 1,2,5,6,7,9,10,11,13,14,15,17,18,19,22,23,24,26,27,28,30,31,32,34,35,36,39,40,41,43,44,45,47,48,49,51,52,53,56,57,58,60,61,62,64,65,66,68,69,70,73,74,75,77,78,79,81,82,83,85,86,87,89,90,91,94,95,96,98,99,100,102,103,104,106,107,108,111,112,113,115,116,117,1... |
;;
;; Copyright (c) 2018-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... |
; A313754: Coordination sequence Gal.4.142.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,15,20,26,32,38,44,49,54,59,64,69,74,79,84,90,96,102,108,113,118,123,128,133,138,143,148,154,160,166,172,177,182,187,192,197,202,207,2... |
; A268524: a(n) = r*a(ceiling(n/2))+s*a(floor(n/2)) with a(1)=1 and (r,s)=(3,1).
; 1,4,13,16,43,52,61,64,145,172,199,208,235,244,253,256,499,580,661,688,769,796,823,832,913,940,967,976,1003,1012,1021,1024,1753,1996,2239,2320,2563,2644,2725,2752,2995,3076,3157,3184,3265,3292,3319,3328,3571,3652,3733,3760,3841,3868,3895
... |
Museum1F_Object:
db $a ; border block
db 5 ; warps
warp 10, 7, 0, -1
warp 11, 7, 0, -1
warp 16, 7, 1, -1
warp 17, 7, 1, -1
warp 7, 7, 0, MUSEUM_2F
db 0 ; signs
db 5 ; objects
object SPRITE_OAK_AIDE, 12, 4, STAY, LEFT, 1 ; person
object SPRITE_GAMBLER, 1, 4, STAY, NONE, 2 ; person
object SPRITE_OAK_AIDE, ... |
dnl SPARC mpn_rshift -- Shift a number right.
dnl Copyright 1995, 1996, 2000 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl... |
; Partition struc definition
struc partition
.status resb 1
.start_chs resb 3
.type resb 1
.end_chs resb 3
.start_lba resd 1
.length_lba resd 1
endstruc
; MBR code
incbin 'mbr/mbr.bin',0,440
; Disk signature
dd 0x2c585cd1
; Padding
dw 0
; Partition 1 at sector 1, length 1
istruc partition
at partitio... |
; A199398: XOR of the first n odd numbers.
; Submitted by Jamie Morken(s1)
; 1,2,7,0,9,2,15,0,17,2,23,0,25,2,31,0,33,2,39,0,41,2,47,0,49,2,55,0,57,2,63,0,65,2,71,0,73,2,79,0,81,2,87,0,89,2,95,0,97,2,103,0,105,2,111,0,113,2,119,0,121,2,127,0,129,2,135,0,137,2,143,0,145,2,151,0,153,2,159,0,161,2,167,0,169,2,175,0,177,2,1... |
MVI A,0FFH
MOV B,A
ANI 0FH
MOV C,A
MOV A,B
ANI 0F0H
RRC
RRC
RRC
RRC
MVI D,09H
MOV L,A
LOOP: ADD L
DCR D
JNZ LOOP
ADD C
ADI 08H
STA 1004H
MOV B,A
ANI 07H
STA 1000H
MOV A,B
ANI 38H
RRC
RRC
RRC
STA 1001H
MOV A,B
ANI 0C0H
RRC
RRC
RRC
RRC
RRC
RRC
STA 1002H
hlt |
; Title: Windows Reverse Connect Stager (NX, IPv6)
; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003, Windows Vista
; Author: Rapid7, Inc
[BITS 32]
global _start
_start:
call LKernel32Base
LGetProcAddress:
push ebx
push ebp
push esi
push edi
mov ebp, [esp + 24]
mov eax, [... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: Perf (Performance Meter)
FILE: calc.asm (calculates new stats)
REVISION HISTORY:
Name Date Description
---- ---- ----... |
; void fcloseall(void)
; 07.2009 aralbrec
PUBLIC fcloseall
EXTERN fclose
EXTERN _stdio_filetbl, LIBDISP2_FCLOSE
INCLUDE "../stdio.def"
; close all open high level FILEs, including stdin / stdout / stderr
; does not necessarily close all open fds -- for that see closeall
; fcloseall should always be called before cl... |
;
; Sprinter C Library
;
; ANSI Video handling for Sprinter
;
; $Id: f_ansi_char.asm,v 1.1 2002/10/10 20:38:22 dom Exp $
;
XLIB ansi_CHAR
XREF ansi_ROW
XREF ansi_COLUMN
XDEF text_cols
XDEF text_rows
XREF text_attr
.text_rows defb 32
.text_cols defb 80
; a = character to print - need to handle ... |
; A033550: a(n) = A005248(n) - n.
; 2,2,5,15,43,118,316,836,2199,5769,15117,39592,103670,271430,710633,1860483,4870831,12752026,33385264,87403784,228826107,599074557,1568397585,4106118220,10749957098,28143753098,73681302221,192900153591
mov $1,2
lpb $0
sub $0,1
add $1,$3
add $2,1
add $3,$1
add $3,$2
lpe
mov ... |
; A228121: Numbers n such that 3n - 4 is prime.
; Submitted by Jon Maiga
; 2,3,5,7,9,11,15,17,19,21,25,29,31,35,37,39,45,47,51,57,59,61,65,67,77,79,81,85,87,89,91,95,99,105,107,117,119,121,129,131,135,141,145,149,151,155,157,161,165,169,171,175,187,189,191,197,199,201,207,215,217,219,221,227,229,235,241,249,255,259,267... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditio... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
/*
* Byte-oriented AES-256 implementation.
* All lookup tables replaced with 'on the fly' calculations.
*/
#include "aes.h"
#include <string.h>
#define F(x) (((x)<<1) ^ ((((x)>>7) & 1) * 0x1b))
#define FD(x) (((x) >> 1) ^ (((x) & 1) ? 0x8d : 0))
#define BACK_TO_TABLES
#ifdef BACK_TO_TABLES
#define BUF_SIZE_OF... |
// Copyright 2020 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 "include/cppgc/explicit-management.h"
#include "include/cppgc/garbage-collected.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppg... |
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... |
db 0 ; species ID placeholder
db 50, 105, 79, 76, 35, 110
; hp atk def spd sat sdf
db FIGHTING, FIGHTING ; type
db 45 ; catch rate
db 140 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F0 ; gender ratio
db 100 ; unknown 1
db 25 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hitmo... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; gfx functions
;
; put byte into the display at offset
;
; void ozdisplayputbyte(int offset, char byte);
;
;
; ------
; $Id: ozdisplayputbyte.asm,v 1.3 2016/06/28 14:48:17 dom Exp $
;
SEC... |
[bits 64]
[section .text]
[default rel]
%line 1+0 ./some_filename
; program tst_wyjatki
global _start
_start:
XOR EBP, EBP
CALL main
XOR RAX, RAX
MOV RDI, RAX
MOV RAX, 60
SYSCALL
HLT
main:
PUSH rbp
MOV rbp, rsp
SUB RSP, 0x20
%line 2+0 some_filename
SUB RSP, 64
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xd69, %rdx
and %rbp, %rbp
mov $0x6162636465666768, %r9
movq %r9, %xmm3
movups %xmm3, (%rdx)
nop
nop
nop
nop
dec %r12
lea addresses_A_ht+0xdaf9, %rdx
nop
nop
nop
xor ... |
// -*- c++ -*-
/********************************************************************
* AUTHORS: Vijay Ganesh, Trevor Hansen
*
* BEGIN DATE: November, 2005
*
* LICENSE: Please view LICENSE file in the home dir of this Program
********************************************************************/
#include <stdlib.h... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x11af4, %rdx
nop
nop
xor $38595, %rdi
movups (%rdx), %xmm1
vpextrq $0, %xmm1, %r8
nop
nop
nop
nop
nop
and %r8, %r8
lea addresses_WT_ht+0x4db4, %rdx
nop
sub $14083, %r12
mov $0x... |
//
// This is example code from Chapter 25.3.4 "Stack example" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
#include <stddef.h> // required for size_t
//------------------------------------------------------------------------------
template<int N>class Stack { // stack of N bytes... |
#include <iostream>
#include <random>
using namespace std;
int main()
{
// random_device 引擎不是基于软件的随机数生成器,这个一个
// 特殊引擎,要求计算机连接一个能真正生成不确定随机数的
// 硬件,例如通过物理原理生成。
// 随机数生成器的质量有随机数的熵(entropy)决定。如果
// random_device类使用的是基于软件的伪随机数生成器,那么
// 这个类的entropy()方法返回的值为0.0;如果连接了硬件设备
// 则返回非0,这个值是对连接设备的熵的估计
... |
; A144965: a(n) = 4*n*(4*n^2+1).
; 0,20,136,444,1040,2020,3480,5516,8224,11700,16040,21340,27696,35204,43960,54060,65600,78676,93384,109820,128080,148260,170456,194764,221280,250100,281320,315036,351344,390340,432120,476780,524416,575124,629000,686140,746640,810596,878104,949260,1024160,1102900,1185576,1272284,1363120,... |
SECTION .text
GLOBAL test
test:
lea rax, [rax+3]
lea rax, [rax+0x3]
lea rax, [rax+0x1]
lea rax, [rax + 1*rax]
lea rax, [rcx + rax+0x7f]
lea rax, [rcx + rax+0x80]
lea rax, [rcx + rax+0xffffff]
lea rax, [rcx + rax+0x1]
lea rax, [rbp + 1*rax+0xff]
lea rax, [rbp + r10*1+0xff]
lea eax, [ecx + eax+0x7f]
lea eax, [ecx + eax+0... |
; A017812: Binomial coefficients C(96,n).
; 1,96,4560,142880,3321960,61124064,927048304,11919192480,132601016340,1296543270880,11279926456656,88188515933856,624668654531480,4036320536972640,23929614612052080,130815226545884704,662252084388541314,3116480397122547360,13677886187371180080,56151322242892212960,216182590635... |
.intel_syntax noprefix
.text
#; Don't clear BoostBar RAM during Challenge races
.org 0x41E040
.org 0x41E04D, 0x90
.org 0x41E354
.org 0x41E36E, 0x90
#; No idea what this is, but it overwrites the CPU players model tint
.org 0x421100
ret
#; Don't animate jets. I don't feel like finding which polygon goes to what.
.or... |
// Copyright (c) 2016-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_EVENTS_DISCARD_HPP
#define TAO_JSON_EVENTS_DISCARD_HPP
#include <cstddef>
#include <cstdint>
#include <string_view>
#include "../binary_view.hpp"
namespace tao::jso... |
DEVICE ZXSPECTRUMNEXT
MMU 0 n, 0
ORG 0x1F00
; include 0x2200 bytes
; => should include up 0x100 bytes into page 0
; => then 0x2000 bytes into page 1
; => and final 0x100 bytes into page 2
INCBIN "mmu_incbin_bug_data.i.asm"
ASSERT 0x100 == $ && 2 == $$
; include another 0x2200 by... |
; A296894: Numbers n whose base-14 digits d(m), d(m-1), ..., d(0) have #(pits) = #(peaks); see Comments.
; Submitted by Jamie Morken(s3)
; 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,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,6... |
ORG 50000
LD A,2 ; upper screen
CALL 5633 ; open channel
LD IX,VAR2
LD B,255 ; Loop 256 A possible values
LD D,0 ; Start with "A" == 0
; DE will be loaded into AF
LOOP2: LD E,(HL) ;... |
TITLE ArraySum Optimization (ArrySum.asm)
INCLUDE Irvine32.inc
Optimized = 1
.data
Array DWORD 50 DUP(5)
.code
main PROC
push LENGTHOF Array
push OFFSET Array
call ArraySum
add sp,8
call WriteDec ; display the sum
call Crlf
exit
main ENDP
Comment !
IMPLEMENTING THE FOLLOWING C++ F... |
;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
;
; This is the default program for the (24+4 port) BCM56820 SDKs.
; To start it, use the following commands from BCM... |
;*****************************************************************************
;* MMX/SSE2/AVX-optimized 10-bit H.264 deblocking code
;*****************************************************************************
;* Copyright (C) 2005-2011 x264 project
;*
;* Authors: Oskar Arvidsson <oskar@irock.se>
;* Loren M... |
#include <rusql/rusql.hpp>
#include "test.hpp"
#include "database_test.hpp"
#include <cstdlib>
int main(int argc, char *argv[]) {
auto db = get_database(argc, argv);
test_init(4);
test_start_try(4);
try {
db->execute("CREATE TABLE rusqltest (`id` INTEGER(10) PRIMARY KEY AUTO_INCREMENT, `value` INT(2) NOT NULL)"... |
extwindow equ $4000
banks
dontuse
org *+$100
bankindex
dta 0
prepnextbank
ldx bankindex
lda banks,x
sne:jmp main ; cancel load and run if banks are full
sta PORTB
inx
stx bankindex
sta rdscr+38
rts
; destroys addresses 0, 4000, 8000, C000 on RAMBO 256K
; destroys first ... |
;------------------------------------------------------------------------------
; @file
; Main routine of the pre-SEC code up through the jump into SEC
;
; Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------... |
// Copyright (c) 2009 hp-FEM group at the University of Nevada, Reno (UNR).
// Distributed under the terms of the BSD license (see the LICENSE
// file for the exact terms).
// Email: hermes1d@googlegroups.com, home page: http://hpfem.org/
#include "lobatto.h"
int lobatto_order_1d[] = {
1, {% for f in functions[1:] %}... |
.DATA
.TEXT 0x1168
start: sh $a0,0xfc30($0)
sh $a1,0xfc32($0)
sh $a2,0xfc34($0)
eret |
; int wv_priority_queue_reserve(wv_priority_queue_t *q, size_t n)
SECTION code_clib
SECTION code_adt_wv_priority_queue
PUBLIC wv_priority_queue_reserve
EXTERN asm_wv_priority_queue_reserve
wv_priority_queue_reserve:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_wv_priority_queue... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1c21c, %r14
nop
nop
nop
sub $51245, %rsi
vmovups (%r14), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %rbx
nop
nop
nop
nop
inc %r12
lea addresses_WT_ht+0xba1c, %rsi... |
; ---------------------------------------------------------------------------
; Animation script - energy balls (FZ)
; ---------------------------------------------------------------------------
Ani_Plasma: dc.w @full-Ani_Plasma
dc.w @short-Ani_Plasma
@full: dc.b 1, 0, $A, 8, $A, 1, $A, 9, $A, 6, $A, 7, $A, 0, $A
... |
;==================================================================================================
; ECB USB-FIFO DRIVER FOR WILL SOWERBUTTS ADAFRUIT BASED FT232H ECB-FIFO BOARD
; REFER https://www.retrobrewcomputers.org/doku.php?id=boards:ecb:usb-fifo:start
; PHIL SUMMERS (b1ackmai1er)
;==========================... |
; A242215: a(n) = 18*n + 5.
; 5,23,41,59,77,95,113,131,149,167,185,203,221,239,257,275,293,311,329,347,365,383,401,419,437,455,473,491,509,527,545,563,581,599,617,635,653,671,689,707,725,743,761,779,797,815,833,851,869,887,905,923,941,959
mov $1,$0
mul $1,18
add $1,5
|
; A106832: 4*n-2 and 6*n alternatively.
; 2,6,6,12,10,18,14,24,18,30,22,36,26,42,30,48,34,54,38,60,42,66,46,72,50,78,54,84,58,90,62,96,66,102,70,108,74,114,78,120,82,126,86,132,90,138,94,144,98,150
mov $1,$0
mod $0,2
add $0,2
mul $1,$0
add $0,$1
|
;
; ANSI Video handling for the Sharp X1
; Karl Von Dyson (for X1s.org) - 24/10/2013
; Stefano Bodrato 10/2013
;
; set it up with:
; .text_cols = max columns
; .text_rows = max rows
;
; Display a char in location (ansi_ROW),(ansi_COLUMN)
; A=char to display
;
;
; $Id: f_ansi_char.asm,v 1.7 2016/07/20 05:45:02 stefano ... |
GLOBAL sysCallDispatcher
extern sysCallHandler
section .text
%include "./asm/macros.m"
sysCallDispatcher:
pushStateNoRax
call sysCallHandler
popStateNoRax
iretq
|
; A193259: G.f.: x = Sum_{n>=1} x^n * ((1+x)^n - x^n) / (1+x)^a(n).
; 1,4,5,9,10,12,13,18,19,21,22,25,26,28,29,35,36,38,39,42,43,45,46,50,51,53,54,57,58,60,61,68,69,71,72,75,76,78,79,83,84,86,87,90,91,93,94,99,100,102,103,106,107,109,110,114,115,117,118,121,122,124,125,133,134,136,137,140,141,143,144,148,149,151,152,15... |
ifndef INCLUDE_BARDEN_MUL16
INCLUDE_BARDEN_MUL16 equ 1
; _ _ _ __ ____
;| | | | | |/ | / ___|
;| |__ __ _ _ __ __| | ___ _ __ _ __ ___ _ _| |`| | / /___
;| '_ \ / _` | '__/ _` |/ _ \ '_ \ | '_ ` _ \| | | | | | | | ... |
#include "amici/symbolic_functions.h"
#include "amici/defines.h" //realtype definition
typedef amici::realtype realtype;
#include <cmath>
using namespace amici;
namespace amici {
namespace model_model_jakstat_adjoint_o2{
void dydx_model_jakstat_adjoint_o2(double *dydx, const realtype t, const realtype *x, const r... |
; void *memccpy(void * restrict s1, const void * restrict s2, int c, size_t n)
SECTION code_string
PUBLIC memccpy
EXTERN l0_memccpy_callee
memccpy:
pop af
pop bc
pop ix
pop hl
pop de
push de
push hl
push ix
push bc
push af
jp l0_memccpy_callee
|
52_Header:
sHeaderInit ; Z80 offset is $C548
sHeaderPatch 52_Patches
sHeaderTick $01
sHeaderCh $02
sHeaderSFX $80, $C0, 52_PSG3, $00, $00
sHeaderSFX $80, $05, 52_FM5, $00, $10
52_PSG3:
sNoisePSG $E7
dc.b nBb6, $06
52_Loop1:
dc.b nEb6, $03
saTranspose $FE
sLoop $00, $08, 52_Loop1
52_Loop2:
dc.b nEb6... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x94f2, %r9
nop
nop
nop
nop
and $37279, %rbx
vmovups (%r9), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r11
nop
and %rax, %rax
lea addresses_... |
; A154600: a(n) = 2*n^2 + 22*n + 9.
; 33,61,93,129,169,213,261,313,369,429,493,561,633,709,789,873,961,1053,1149,1249,1353,1461,1573,1689,1809,1933,2061,2193,2329,2469,2613,2761,2913,3069,3229,3393,3561,3733,3909,4089,4273,4461,4653,4849,5049,5253,5461,5673,5889,6109,6333,6561,6793,7029,7269,7513,7761,8013,8269,8529,87... |
/****************************************************************************
** Meta object code from reading C++ file 'pluginscenemanager.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.0)
**
** WARNING! All changes made in this file will be lost!
*************************************************... |
;保存系统的基本信息
BOOTINFO equ 0x7c00
;init.c可能会用
;初始化
mov ax,0
mov ss,ax
mov ds,ax
mov es,ax
mov sp,0x7c00
;这部分代码源于linux的0.11版setup.s
mov ah, 0x03
xor bh, bh
int 0x10
mov [BOOTINFO], dx ;光标信息
mov ah, 0x88
int 0x15
mov [BOOTINFO + 2], ax ;扩展内存大小KB,即... |
; Keyboard controls and right-click-to-close for the Save dialog.
[bits 16]
startPatch EXE_LENGTH, saveDialog
; SaveSlot_processInput
; Don't wait for mouse button to be released after a click on a save slot,
; because we are now using simulated clicks to activate slots.
startBlockAt addr_SaveSlot_processInput_l... |
; CALLER linkage for function pointers
XLIB memchr
LIB memchr_callee
XREF ASMDISP_MEMCHR_CALLEE
.memchr
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp memchar_callee + ASMDISP_MEMCHR_CALLEE - 1
|
%ifdef CONFIG
{
"RegData": {
"RAX": "0x400",
"MM7": ["0x8000000000000000", "0x3FFF"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov eax, 0x44800000 ; 1024.0
mov [rdx + 8 * 0], eax
mov eax, 0
mov [rdx + 8 * 1], eax
fld dword [rdx + 8 * 0]
fistp dword [rdx + 8 * 1]
... |
org 0x100
cpu 8086
cli
mov ax,cs
mov ds,ax
mov ss,ax
mov sp,stackHigh-2
sti
mov si,0x82
searchLoop
lodsb
cmp al,0x20
je foundEnd
cmp al,0x0d
jne searchLoop
foundEnd:
dec si
mov byte[si],0
cmp si,0x82
je error
; Load meta file
mov ax,0x3d00
mov dx,0x82
int 0x21 ;... |
/* nex_example.asm
This ZX Spectrum Next demo demonstrates creating .NEX files in Zeus, running NextBASIC commands from asm, calling
the esxDOS and NextZXOS APIs, printing using NextBASIC 51 column mode from asm, using Zeus to append private data to
a .NEX file, and reading that private data from asm. Plus several oth... |
; ---------------------------------------------------------------------------
; Animation script - Motobug enemy
; ---------------------------------------------------------------------------
dc.w byte_F788-Ani_obj40
dc.w byte_F78C-Ani_obj40
dc.w byte_F792-Ani_obj40
byte_F788: dc.b $F, 2, $FF, 0
byte_F78C: ... |
; **********************************************************************
; Character set for ascii codes 32-127
;
; This is formed of 8 bytes per character.
;
; Note these are correct for values &20-&7F.
;
; When bit 8 is set then currently we handle them the same but in Mode 7
; the following changes appear when in te... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: dos5Suspend.asm
AUTHOR: Adam de Boor, May 30, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date ... |
// DNSClient.cpp 2013/8/27
#include "mbed.h"
#include "mbed_debug.h"
#include "DNSClient.h"
#include "UDPSocket.h"
#include "dnsname.h"
#include "wiznet.h"
#define DBG_DNS 0
#if DBG_DNS
#define DBG2(...) do{debug("[DNS]%p %d %s ", this,__LINE__,__PRETTY_FUNCTION__); debug(__VA_ARGS__); } while(0);
#else
#define DBG2(... |
;代码清单7-1
;文件名:c07_mbr.asm
;文件说明:硬盘主引导扇区代码
;创建日期:2011-4-13 18:02
jmp near start
message db '1+2+3+...+100='
start:
mov ax,0x7c0 ;设置数据段的段基地址
mov ds,ax
mov ax,0xb800 ;设置附加段基址到显示缓冲区
mov es,ax
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.