text stringlengths 1 1.05M |
|---|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %r9
push %rax
push %rcx
lea addresses_WT_ht+0x12a8b, %r13
nop
nop
xor $46921, %r8
movb (%r13), %cl
nop
nop
nop
xor %rcx, %rcx
lea addresses_D_ht+0x8543, %r12
nop
nop
nop
nop
dec %rax
mov (%r12), %r11
nop
nop
nop
dec %r8
lea address... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x787c, %rsi
lea addresses_WC_ht+0x183bc, %rdi
nop
nop
sub %r13, %r13
mov $64, %rcx
rep movsq
nop
cmp %r15, %r15
lea addresses_WT_ht+0x383c, %rbx
nop
add %rdx, %rdx
mov $0x6162636465666... |
; A291092: 1 followed by infinitely many 9's.
; 1,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9
pow $1,$0
gcd $1,9
mov $0,$1
|
org $15B2FA ; Routine to hack
skip 3 ; Skip to $15B2FD
db $01 ; Apply second palette to character in Tellah position
db $01 ; Apply second palette to character in Edward position
db $00 ; Apply second palette to character in Rosa position
db $02 ; Apply third palette to... |
; A046667: a(n) = A046666(n)/2.
; 0,0,1,0,2,0,3,3,4,0,5,0,6,6,7,0,8,0,9,9,10,0,11,10,12,12,13,0,14,0,15,15,16,15,17,0,18,18,19,0,20,0,21,21,22,0,23,21,24,24,25,0,26,25,27,27,28,0,29,0,30,30,31,30,32,0,33,33,34,0,35,0,36,36,37,35,38,0,39,39,40,0,41,40,42,42,43,0,44,42,45,45,46,45,47,0,48,48,49,0
lpb $0
sub $1,2
dif... |
The wooden bridge rattles from the rush of water just below.
|
varL2_BANK_SELECTED DB 0
varL2_BUFFER_MODE DB 0
asm_l2_double_buffer_on: ld a,8
ld (varL2_BUFFER_MODE),a
ret
asm_l2_double_buffer_off: xor a
ld (varL2_BUFFER_MODE),a
... |
; A132078: Multiply previous term by 6 and reverse.
; 1,6,63,873,8325,5994,46953,817182,2903094,46581471,628884972,2389033773,83620243341,640064127105,362674830483,8982898406712,27204409379835,10972654622361,66143772953856,631327736268693,8512167146697873,83278108820037015,90222029256866994,469102145571233145,788937243... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 push %ebp
b:... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: f3 0f 1e fb endbr32
4: 8d 4c 24 04 lea 0x4(%esp),%ecx
8: 83 e4 f0 and $0xfffffff0,%esp
b: ff 71 fc ... |
// File name: projects/04/ModularLoops.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program does something.
@color //Initialize color to be black -1
M=0
@8191 //What ever number is here, for example, 8192 is equal to (256*32)
D=A //Get the addres... |
; A111097: Maximum likelihood estimate of the number of distinguishable marbles in an urn if repeated random sampling of one marble with replacement yields n different marbles before the first repeated marble.
; 1,2,5,8,13,19,25,33,42,51,62,74,86,100,115,130,147,165,183,203,224,245,268,292,316,342,369,396,425
mov $1,$... |
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/source/program/kernel_info.h"
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include... |
; A054612: a(n) = Sum_{d|n} phi(d)*5^(n/d).
; Submitted by Christian Krause
; 0,5,30,135,660,3145,15810,78155,391320,1953405,9768870,48828175,244157820,1220703185,6103593930,30517584915,152588282640,762939453205,3814699250430,19073486328215,95367441415140,476837158360185,2384185839844050,11920928955078235,5960464502034... |
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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
//
// ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x17450, %rdx
nop
nop
nop
nop
nop
xor %rdi, %rdi
movb $0x61, (%rdx)
inc %rbp
lea addresses_WC_ht+0x1dcd0, %rsi
lea addresses_normal_ht+0x19330, %rdi
clflush (%rsi)
nop
nop
nop
n... |
#include "typewise-alert.h"
#include "map_alertTarget.h"
#include <stdio.h>
BreachType inferBreach(double value, double lowerLimit, double upperLimit)
{
if (value < lowerLimit)
{
return TOO_LOW;
}
if (value > upperLimit)
{
return TOO_HIGH;
}
return NORMAL;
}
BreachType classifyTemperatureBreach(... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x12880, %rsi
lea addresses_WT_ht+0x8e5a, %rdi
nop
nop
nop
sub $56657, %r13
mov $119, %rcx
rep movsb
inc %r15
lea addresses_WT_ht+0xf0ba, %rax
nop
nop
cmp %r9, %r9
movb (%rax),... |
; A063957: Numbers not of the form round(m*sqrt(2)) for any integer m, i.e., complement of A022846.
; Submitted by Jamie Morken(s4)
; 2,5,9,12,15,19,22,26,29,32,36,39,43,46,50,53,56,60,63,67,70,73,77,80,84,87,90,94,97,101,104,108,111,114,118,121,125,128,131,135,138,142,145,149,152,155,159,162,166,169,172,176,179,183,18... |
.text
lui $t0,0xffff
lui $t1,1
lui $t2,0x7f7f
lui $t3,0xa01a |
/* $Id: CoinPresolveMatrix.cpp 2083 2019-01-06 19:38:09Z unxusr $ */
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include <stdio.h>
#include <cassert>
#include <iostream>
#include... |
g(): # @g()
push rax
call qword ptr [rip + _ZN3foo3bazE+8]
xor eax, eax
pop rcx
ret |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
; A249310: Expansion of x*(1+7*x-6*x^3)/(1-8*x^2+6*x^4).
; Submitted by Jamie Morken(s3)
; 1,7,8,50,58,358,416,2564,2980,18364,21344,131528,152872,942040,1094912,6747152,7842064,48324976,56167040,346116896,402283936,2478985312,2881269248,17755181120,20636450368,127167537088,147803987456,910809209984,1058613197440,65234... |
// 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 "ash/system/power/peripheral_battery_listener.h"
#include <memory>
#include <ostream>
#include <string>
#include "ash/shell.h"
#include "ash/sy... |
; A077949: Expansion of 1/(1-x-2*x^3).
; Submitted by Jamie Morken(s2)
; 1,1,1,3,5,7,13,23,37,63,109,183,309,527,893,1511,2565,4351,7373,12503,21205,35951,60957,103367,175269,297183,503917,854455,1448821,2456655,4165565,7063207,11976517,20307647,34434061,58387095,99002389,167870511,284644701,482649479,818390501,1387679... |
; ==============================================================================
; MINI LAUSCH BOX
; ==============================================================================
; Hardware: https://github.com/butyi/sci2can/
; Software: janos.bencsik@knorr-bremse.com, 2020.05.23.
; ===========... |
;
; feilipu, 2019 May
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
;------------------------------------------------------------------------------
;
; multipl... |
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <memory>
#include <string>
#include <GL/glew.h>
#include <GL/wgl.h>
#include <GL/wglext.h>
#include <GL/gl.h>
#include <GLFW/glfw3.h>
#include "common/CommonResources.h"
#include "common/GUI.h"
#include "menu/GUISelectStage.h"
GUISelectStage::... |
;
; PROJECTO DE ARQUITECTURA DE COMPUTADORES
; IST 23/05/2014
;
; NOMES: GUILHERME ANDRADE 77955, GABRIEL FREIRE 78081
; CURSO: LETI
; Turno Lab: Terça-Feira, 12h30
; Grupo: 18
;
; **************************************************************************************************************
; *... |
; DCL_DF23.asm - Direct Form 2 implementation in third order
; version 1.0, August 2015
; define C callable labels
.def _DCL_runDF23 ; full DF2 controller
.def _DCL_runDF23i ; immediate result
.def _DCL_runDF23p ; pre-computed partial result
;
; C type definition:
; typedef volatile struct {
; float... |
SFX_Cry1D_3_Ch5:
duty_cycle_pattern 3, 3, 1, 0
square_note 15, 15, 0, 1797
square_note 10, 14, 0, 1792
square_note 6, 11, 4, 1808
square_note 4, 13, 3, 1792
square_note 6, 11, 2, 1568
square_note 8, 10, 1, 1572
sound_ret
SFX_Cry1D_3_Ch6:
duty_cycle_pattern 0, 2, 0, 2
square_note 15, 11, 0, 1731
square_note... |
;------------------------------------------------------------------------------
;
; 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 accompanies this distribution. Th... |
; A081343: a(n) = (10^n + 4^n)/2.
; 1,7,58,532,5128,50512,502048,5008192,50032768,500131072,5000524288,50002097152,500008388608,5000033554432,50000134217728,500000536870912,5000002147483648,50000008589934592,500000034359738368,5000000137438953472,50000000549755813888,500000002199023255552,5000000008796093022208,5000000... |
; A047081: Sum{T(n,i): i=0,1,...,n}, array T as in A047080.
; 1,2,3,6,11,20,35,62,107,188,323,566,971,1700,2915,5102,8747,15308,26243,45926,78731,137780,236195,413342,708587,1240028,2125763,3720086,6377291,11160260,19131875,33480782,57395627
seq $0,90993 ; Number of meaningful differential operations of the n-th order... |
;
; Startup for Nichibutsu My Vision
;
; 2k of memory
module myvision_crt0
defc crt0 = 1
INCLUDE "zcc_opt.def"
EXTERN _main ;main() is always external to crt0 code
PUBLIC cleanup ;jp'd to by exit()
PUBLIC l_dcal ;jp(hl)
PUBLIC msxbios
EXTERN msx... |
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "coherence/net/cache/ContinuousQueryCache.hpp"
#include "coherence/internal/net/NamedCacheDeactivationListener.hpp"
#include "cohere... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t w_array_erase(w_array_t *a, size_t idx)
;
; Remove word at array.data[idx] and return index of word
; that follows the one removed.
;
; ============================... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xb19d, %rbp
nop
nop
nop
inc %r12
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
movups %xmm2, (%rbp)
dec %rbx
lea addresses_normal_ht+0x80e1, %rsi
lea addresses_UC_ht+0x6b9d, %rdi
nop
n... |
_MainMenu:
ld de, MUSIC_NONE
call PlayMusic
call DelayFrame
ld de, MUSIC_MAIN_MENU
ld a, e
ld [wMapMusic], a
call PlayMusic
farcall MainMenu
jp StartTitleScreen
; unused
ret
PrintDayOfWeek:
push de
ld hl, .Days
ld a, b
call GetNthString
ld d, h
ld e, l
pop hl
call PlaceString
ld h, b
ld l, c
ld d... |
; void in_wait_nokey(void)
SECTION code_clib
SECTION code_input
PUBLIC in_wait_nokey
EXTERN asm_in_wait_nokey
defc in_wait_nokey = asm_in_wait_nokey
|
; A122199: Permutation of natural numbers: a recursed variant of A122155.
; 0,1,2,3,4,7,6,5,8,13,14,15,12,11,10,9,16,25,26,27,28,31,30,29,24,21,22,23,20,19,18,17,32,49,50,51,52,55,54,53,56,61,62,63,60,59,58,57,48,41,42,43,44,47,46,45,40,37,38,39,36,35,34,33,64,97,98,99,100,103,102
mov $3,2
mov $5,$0
lpb $3
mov $0,$5... |
* Get information on a channel's owner
*
* Registers:
* Entry Exit
* D2 pointer to channel defn block preserved
* A0 pointer to row entry preserved
* A2 pointer to object pointer updated (+4)
*
section setup
... |
copyright zengfr site:http://github.com/zengfr/romhack
004114 clr.b ($17,A6) [1p+42, boss+42, enemy+42]
009CE4 clr.b ($42,A6)
009CE8 move.l #$a000000, ($2,A6)
00A2C6 dbra D0, $a2c0
00A314 clr.b ($42,A4)
00A318 clr.w ($44,A4)
00A720 clr.b ($42,A6)
00A724 move.b #$6, ($3,A6)
00BACA move.b ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC 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... |
TITLE Buffered Keyboard Input (Keybd.asm)
; Test function 3Fh, read from file or device
; with the keyboard. Flush the buffer.
; Last update: 11/4/01
INCLUDE Irvine16.inc
.data
firstName BYTE 15 DUP(?),0
lastName BYTE 30 DUP(?),0
.code
main PROC
mov ax,@data
mov ds,ax
; Input the first name:
mo... |
; A171069: G.f. -x*(x-1)*(1+x)/(1-x-12*x^2-x^3+x^4).
; Submitted by Christian Krause
; 0,1,1,12,25,169,480,2521,8425,38988,142129,615889,2352000,9845809,38543569,158429388,628446025,2558296441,10219534560,41389108489,165953373625,670283913612,2692893971041,10860865199521,43679923392000,176032915843681,708359967776161,2... |
func:
PUSH %14
MOV %15,%14
SUBS %15,$8,%15
SUBS %15,$16,%15
SUBS %15,$4,%15
@func_body:
MOV $0,-4(%14)
MOV $2,-8(%14)
MOV $2,-12(%14)
MOV -12(%14),%0
ADDS $1,-12(%14),-12(%14)
MOV %0,-16(%14)
MOV -8(%14),%1
ADDS $1,-8(%14),-8(%14)
MOV %1,-20(%14)
MOV $2,-24(%14)
MOV 8(%14),-28(%... |
#include <ucontext.h>
#include <cstdio>
#include <cstdlib>
#define handle_error(msg) \
do { \
perror(msg); \
exit(EXIT_FAILURE); \
} while (00)
namespace {
ucontext_t uctx_main, uctx_func1, uctx_func2;
void func1() {
if (::swapcontext(&uctx_func1, &uctx_func2) == -1)
... |
; A110332: Diagonal sums of number a triangle related to the Pell numbers.
; 1,-2,-1,-4,-5,-6,-11,-8,-19,-10,-29,-12,-41,-14,-55,-16,-71,-18,-89,-20,-109,-22,-131,-24,-155,-26,-181,-28,-209,-30,-239,-32,-271,-34,-305,-36,-341,-38,-379,-40,-419,-42,-461,-44,-505,-46,-551,-48,-599,-50,-649,-52,-701,-54,-755,-56,-811,-58,... |
MAC PRINT
jsr prns
dc.b {0},0
ENDM
MAC IPRINT
jsr iprns
dc.b {0},0
ENDM
MAC ERROR
jsr prns
dc.b 13,CG_RED,CG_RVS,{0},CG_NRM,CG_WHT,13,0
ENDM
MAC INPUT
ldx #>{0}
lda #<{0}
ldy {2}
jsr INPUT
ENDM
MAC ldxa
ldx {0}+1
lda {0}
ENDM
MAC ldax
ldx #>{0}
lda #<{0}
ENDM
MAC stax
stx {0}+1
st... |
;
; Basic video handling for the ZX81
;
; (HL)=char to display
;
;----------------------------------------------------------------
;
; $Id: fputc_cons.asm,v 1.21+ (now on GIT) $
;
;----------------------------------------------------------------
;
SECTION code_clib
PUBLIC fputc_cons_native
EXTERN ascto... |
/*
* Copyright 2015 David A. Boyuka II
*
* 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 ... |
; A108568: a(n) = prime(n) + prime(n+1) - 2n - 1.
; Submitted by Jamie Morken(s4)
; 2,3,5,9,13,17,21,25,33,39,45,53,57,61,69,79,85,91,99,103,109,117,125,137,147,151,155,159,163,179,195,203,209,219,229,235,245,253,261,271,277,287,297,301,305,317,339,353,357,361,369,375,385,399,409,419,425
mov $2,$0
seq $0,1043 ; Number... |
section .data
message db 'Factorial of the number 3 = '
messageLen equ $- message
section .bss
fact resb 1
section .text
global _start
_start:
mov bx, 3
call ProcessFactorial
add ax, 30h
mov [fact], ax
mov eax,4
mov ebx,1
mov ecx,message
mov edx,messageLen
int ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2016 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
;; (c) Copyright Kevin Thacker 2015-2016
;; This code is part of the Arnold emulator distribution.
;; This code is free to distribute without modification
;; this copyright header must be retained.
org &8000
km_wait_char equ &bb06
txt_output equ &bb5a
scr_set_mode equ &bc0e
;; set colour with bit 5 set
start:
ld a,2... |
// -*- C++ -*-
//
// Package: DQM/SiStripMonitorHardware
// Class: SiStripFEDCheckPlugin
//
/**\class SiStripFEDCheckPlugin SiStripFEDCheck.cc DQM/SiStripMonitorHardware/plugins/SiStripFEDCheck.cc
Description: DQM source application to produce data integrety histograms for SiStrip data for use in HLT and Prom... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2012, 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 accompanies this
; di... |
; A017830: Expansion of 1/(1-x^4-x^5-x^6-x^7-x^8).
; 1,0,0,0,1,1,1,1,2,2,3,4,6,7,9,12,17,22,29,38,51,67,89,118,157,207,274,363,482,638,845,1119,1483,1964,2602,3447,4567,6049,8013,10615,14063,18629,24678,32691,43307,57369,75998,100676,133368,176674,234043,310041,410718,544085,720759,954802,1264844,1675561,2219646,294040... |
#include <sstream>
#include <seqan3/io/record.hpp>
#include <seqan3/io/sequence_file/input.hpp>
#include <seqan3/io/sequence_file/output.hpp>
auto input = R"(> TEST1
ACGT
> Test2
AGGCTGA
> Test3
GGAGTATAATATATATATATATAT)";
int main()
{
using seqan3::get;
// specify custom field combination/order to file:
... |
; A213782: Principal diagonal of the convolution array A213781.
; 1,7,19,41,72,118,176,254,347,465,601,767,954,1176,1422,1708,2021,2379,2767,3205,3676,4202,4764,5386,6047,6773,7541,8379,9262,10220,11226,12312,13449,14671,15947,17313,18736,20254,21832,23510,25251,27097,29009,31031,33122,35328,37606,40004,42477,45075,477... |
;;; sub shifted register
;;; sf 1 0 0 | 1 0 1 1 | shift2 0
;;; where sf = 1
__0xc1_sub:
ret
|
; A016818: (4n+1)^6.
; 1,15625,531441,4826809,24137569,85766121,244140625,594823321,1291467969,2565726409,4750104241,8303765625,13841287201,22164361129,34296447249,51520374361,75418890625,107918163081
mul $0,4
add $0,1
pow $0,6
|
;***********************************************************
; Version 2.40.00
;***********************************************************
; Function: fir2
; Processor: C55xx
; Description: Implements finite impulse response filter using
; dual-MAC app... |
doRandom2: ; .DORND2 \ -> &3F85 \ Restricted for explosion dust.
doRND2:
and a ; fast clear carry leave bit0 of RAND+2 at 0.
doRandom: ;.DORND \ -> &3F86 \ do random, new A, X.
; "doRandom, Random Seed update, new value in A & B)"
doRND: ld a,(RandomSeed) ; Get Seed... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1e191, %rax
nop
dec %rcx
movb $0x61, (%rax)
nop
xor %rdi, %rdi
lea addresses_WT_ht+0xfd91, %r15
nop
nop
nop
nop
lfence
mov (%r15), %ecx
nop
nop
xor %rcx, %rcx
lea addresses_n... |
processor 6502
org $1000
loop:
ldy #$00
sty $d020
iny
iny
iny
iny
iny
iny
iny
iny
sty $d021
jmp loop |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x9e34, %rdi
nop
nop
nop
sub %rbx, %rbx
mov $0x6162636465666768, %r14
movq %r14, (%rdi)
nop
nop
nop
nop
nop
xor %r15, %r15
lea addresses_normal_ht+0xea34, %rsi
lea addresses_A_ht+0x17a24... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x12802, %rsi
lea addresses_normal_ht+0x11cb4, %rdi
add %r13, %r13
mov $70, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp $5154, %r15
lea addresses_WT_ht+0x1705c, %r11
nop
nop
cmp %r1... |
; A061228: a(1) = 2, a(n) = smallest number greater than n which is not coprime to n.
; 2,4,6,6,10,8,14,10,12,12,22,14,26,16,18,18,34,20,38,22,24,24,46,26,30,28,30,30,58,32,62,34,36,36,40,38,74,40,42,42,82,44,86,46,48,48,94,50,56,52,54,54,106,56,60,58,60,60,118,62,122,64,66,66,70,68,134,70,72,72,142,74,146,76,78,78,84,... |
; ==================================================================
; PC SPEAKER SOUND ROUTINES
; ==================================================================
; ------------------------------------------------------------------
; os_speaker_tone -- Generate PC speaker tone (call os_speaker_off to turn off)
; IN... |
// KRATOS___
// // ) )
// // ___ ___
// // ____ //___) ) // ) )
// // / / // // / /
// ((____/ / ((____ ((___/ / MECHANICS
//
// License: geo_mechanics_application/license.txt
//
//
// Main authors: Vahid Galavi
//
// System includes
#include <iostream>
// Exter... |
; A144613: a(n) = sigma(3*n) = A000203(3*n).
; 4,12,13,28,24,39,32,60,40,72,48,91,56,96,78,124,72,120,80,168,104,144,96,195,124,168,121,224,120,234,128,252,156,216,192,280,152,240,182,360,168,312,176,336,240,288,192,403,228,372,234,392,216,363,288,480,260,360,240,546,248,384,320,508,336,468,272,504,312,576,288,600,296,... |
; A174574: Partial sums of A065363.
; 0,1,1,2,4,3,3,4,4,5,7,8,10,13,11,10,10,9,9,10,10,11,13,12,12,13,13,14,16,17,19,22,22,23,25,26,28,31,33,36,40,37,35,34,32,31,31,30,30,31,29,28,28,27,27,28,28,29,31,30,30,31,31,32,34,35,37,40,38,37,37,36,36,37,37,38,40,39,39,40,40,41,43,44,46,49,49,50,52,53,55,58,60,63,67,66,66,67,67... |
; Thanks to Kazuto for developing the original QS code that inspired this one
QuickSwap:
; We perform all other checks only if we are pushing L or R in order to have minimal
; perf impact, since this runs every frame
LDA.b $F6 : AND #$30 : BEQ .done
XBA ; stash away the value for after the checks.
LDA.l QuickS... |
; Procedure do HOTKEY action V2.00 1988 Tony Tebby QJUMP
section hotkey
xdef hot_thar
xdef hot_thact
xref hot_scpy
xref hot_thus
xref hot_thfr
include 'dev8_ee_hk_data'
;+++
; Do hotkey action: parameters d0,d1,d2 are passed to routine and
; returned; string at (a6,a1.l) is copied to hkd_buf2 and a1 ... |
comment / Good luck! Vladimir Botchev, CICT-BAS, december 1988 /
data_area struc ;Define a pattern for working data
;area
DS_save dw ?
ES_save dw ?
IP_save dw ?
CS_save dw ?
SS_save dw ?
filematch db ... |
###############################################################################
# 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... |
# $Id: 05_mul_2.asm,v 1.3 2001/03/22 00:38:59 ellard Exp $
#
# Copyright 1999-2001 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ tests mul, with overflow.
# OK
lc r2, 100
mul r3, r2, r2
add r4, r1, r0
mul r5, r3, r3
add r6, r1, r0
mul r7, r5, r5
add r8, r1, r... |
; ===============================================================
; Feb 2014
; ===============================================================
;
; void *p_queue_front(p_queue_t *q)
;
; Return item at front of queue without removing it.
;
; ===============================================================
SECTION code_... |
section "SIO Code", rom0
include "hardware.inc"
; ------------------------------
; Set buffer and initiate transfer as slave
;
; Inputs:
; - a: Data to put in the buffer
; ------------------------------
sio_slave_transfer::
ld [rSB], a
ld a, SCF_START
ld [rSC], a
ret
; ------------------------------
; Set buf... |
; convpng v7.3
; 8 bpp image
_ico_text_size equ 258
_ico_text:
db 16,16
db 0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh
db 0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh
db 0FFh,0FFh,080h,080h,080h,080h,080h,080h,080h,080h,080h,080h,080h,080h,0FFh... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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 Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... |
; A176413: a(n) = 19*3^n.
; 19,57,171,513,1539,4617,13851,41553,124659,373977,1121931,3365793,10097379,30292137,90876411,272629233,817887699,2453663097,7360989291,22082967873,66248903619,198746710857,596240132571,1788720397713
mov $1,3
pow $1,$0
mul $1,19
mov $0,$1
|
;//###########################################################################
;//
;// FILE: F2837xD_DBGIER.asm
;//
;// TITLE: Set the DBGIER register
;//
;// DESCRIPTION:
;//
;// Function to set the DBGIER register (for realtime emulation).
;// Function Prototype: void SetDBGIER(Uint16)
;// Usage: SetDBGIER(value)... |
.data
.text
# * CALL (LABEL main1)
jal main1
# * END
li $v0, 10
syscall
# ----------------------------
# | Original source |
# ----------------------------
# * int main() {
# ---------... |
;------------------------------------------------------------------------------
;
; 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 accompanies this distribution... |
header_VmAlloca
vm_alloca PROC
push ebp
mov ebp, esp
check_debugger_via_trap_flag
; pop the value to alloca
push [ebp+arg0]
call_vm_stack_pop_enc
push eax
; verify if not already allocated
mov eax, [ebp+arg0]
mov eax, [eax+vm_sp]
cmp dword ptr [eax+vm_local_vars], 0h
pop eax
jnz finish
; allocate the... |
; A282413: Decimal representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 467", based on the 5-celled von Neumann neighborhood.
; 1,1,7,0,31,0,127,0,511,0,2047,0,8191,0,32767,0,131071,0,524287,0,2097151,0,8388607,0,33554431,... |
; A253433: Number of (n+1) X (6+1) 0..1 arrays with every 2 X 2 subblock diagonal minus antidiagonal sum nondecreasing horizontally, vertically and ne-to-sw antidiagonally.
; 325,318,336,372,444,588,876,1452,2604,4908,9516,18732,37164,74028,147756,295212,590124,1179948,2359596,4718892,9437484,18874668,37749036,75497772... |
; A002108: 4th powers written backwards.
; Submitted by Jamie Morken(s1.)
; 1,61,18,652,526,6921,1042,6904,1656,1,14641,63702,16582,61483,52605,63556,12538,679401,123031,61,184491,652432,148972,677133,526093,679654,144135,656416,182707,18,125329,6758401,1295811,6336331,5260051,6169761,1614781,6315802,1443132,652,167528... |
/*
A C-program for MT19937, with initialization improved 2002/2/10.
Coded by Takuji Nishimura and Makoto Matsumoto.
This is a faster version by taking Shawn Cokus's optimization,
Matthe Bellew's simplification, Isaku Wada's real version.
Before using, initialize the state by using init_genrand(seed)
... |
#include <iostream>
using namespace std;
void darFormato(){
cout << "********* //// **********" << endl;
cout << "********* ++++ *********" << endl;
}
int devolverMayor(int nro1, int nro2){
if (nro1 > nro2){
return nro1;
}
return nro2;
}
int main() {
darFormato();
cout << "Hello,... |
; A349781: a(n) = n! * (hypergeom([1 - n], [2], -1]) - 1) for n >= 1 and a(0) = 0.
; Submitted by Jamie Morken(s4)
; 0,0,1,7,49,381,3331,32593,354033,4233673,55312291,784156341,11991160633,196749380413,3447839233203,64266128818921,1269511428781921,26490929023150353,582231094609675843,13442728593179726173,32526502587790... |
; A054878: Number of closed walks of length n along the edges of a tetrahedron based at a vertex.
; 1,0,3,6,21,60,183,546,1641,4920,14763,44286,132861,398580,1195743,3587226,10761681,32285040,96855123,290565366,871696101,2615088300,7845264903,23535794706,70607384121,211822152360,635466457083,1906399371246,5719198113741... |
; A131474: a(n) = ceiling(n/2)*ceiling(n^2/2).
; 0,1,2,10,16,39,54,100,128,205,250,366,432,595,686,904,1024,1305,1458,1810,2000,2431,2662,3180,3456,4069,4394,5110,5488,6315,6750,7696,8192,9265,9826,11034,11664,13015,13718,15220,16000,17661,18522,20350,21296,23299,24334,26520,27648,30025,31250,33826,35152,37935,39366,42... |
; row 1
.byte $1, $6a
.byte $12, $e3, $d, $1c, $9, $fa, $8, $b, $6, $ba, $5, $c7, $5, $11, $4, $82, $4, $10, $3, $b1, $3, $63, $3, $21, $2, $e7, $2, $b6, $2, $8b
.byte $2, $64, $2, $43, $2, $24, $2, $9, $1, $ef, $1, $d9, $1, $c4, $1, $b2, $1, $a0, $1, $90, $1, $82, $1, $74, $1, $67, $1, $5b, $1, $50, $1, $46
.byte... |
.data
numberOne: .word 20 #declare integer words
numberTwo: .word 8
.text #for the intructions
lw $s0, numberOne #s0 gets a value of 20
lw $s1, numberTwo #s1 gets a vlue of 8
sub $t0, $s0, $s1 #t0 = s0 - s1 = 20 - 8
#print result
li $v0, 1
move $a0, $t0
syscall |
[map symbols app_c.map]
[SECTION .s32]
BITS 32
call main
mov edx, 4 ;返回内核
int 02Dh
api_putchar:
mov edx, 1
mov al, [esp + 4]
int 02Dh
ret
%include "app.asm" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.