text stringlengths 1 1.05M |
|---|
; A297024: Sum of the smaller parts of the partitions of n into two parts such that the smaller part does not divide the larger.
; 0,0,0,0,2,0,5,3,6,7,14,5,20,18,19,21,35,24,44,33,44,52,65,42,72,75,78,77,104,78,119,105,121,133,140,116,170,168,173,160,209,177,230,213,220,250,275,224,292,282,304,305,350,312,361,342,383,4... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdx
push %rsi
lea addresses_normal_ht+0x4b26, %r13
nop
nop
nop
nop
nop
xor $43720, %r12
movl $0x61626364, (%r13)
nop
nop
nop
nop
nop
cmp %rax, %rax
lea addresses_normal_ht+0xf0e, %rcx
nop
nop
nop
xor $57764, %r13
mov $0x... |
* sdp send control sequence V2.00 1987 Tony Tebby QJUMP
*
section sdp
*
xdef sdp_ctrl
*
xref sdp_bytc
xref sdp_sbuf
*
include dev8_sys_sdp_data
*
* d0 cr sequence key / error code if return NZ
* d1-d3 scratch
* a1 scratch
* ... |
; A343114: a(n) = Sum_{i=1..n} gcd(n^i,i).
; Submitted by Christian Krause
; 1,3,5,8,9,17,13,20,21,35,21,50,25,49,51,48,33,91,37,88,77,89,45,126,65,107,81,124,57,255,61,112,141,163,137,242,73,177,167,232,81,365,85,220,227,209,93,328,133,315,213,264,105,393,229,342,257,267,117,680,121,281,351,256,265,673,133,392,303,703... |
; void SMS_setSpriteMode(unsigned char mode)
SECTION code_clib
SECTION code_SMSlib
PUBLIC SMS_setSpriteMode
EXTERN asm_SMSlib_setSpriteMode
defc SMS_setSpriteMode = asm_SMSlib_setSpriteMode
|
/*
* Interpolation kernel for luminance motion compensation
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_WT+0x135f4, %rax
nop
nop
nop
nop
nop
and %rcx, %rcx
movb $0x51, (%rax)
nop
nop
nop
nop
nop
sub $9667, %rdi
// REPMOV
lea addresses_PSE... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x11d5e, %r13
nop
nop
nop
xor $8593, %r8
mov (%r13), %r14d
nop
nop
dec %r15
lea addresses_UC_ht+0x11a4f, %rsi
lea addresses_D_ht+0x899e, %rdi
nop
nop
inc %rax
mov $102, %rc... |
.section .text
.global _start
_start:
;; MOV R7, #4 @ Syscall 4 = write to screen
;; MOV R0, #1 @ 1=stdout: move 1 to R0
;; MOV R2, #13 @ length of string to R2
;; LDR R1, =string
SWI 0
BX lr
string:
.asciz "hello world!\n"
|
/*
* 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... |
; A158306: 324n - 1.
; 323,647,971,1295,1619,1943,2267,2591,2915,3239,3563,3887,4211,4535,4859,5183,5507,5831,6155,6479,6803,7127,7451,7775,8099,8423,8747,9071,9395,9719,10043,10367,10691,11015,11339,11663,11987,12311,12635,12959,13283,13607,13931,14255,14579,14903,15227,15551,15875,16199,16523,16847,17171,17495,17819,... |
;-----------------------------------------------------------------------------
;
; Copyright (c) 2021, AMD. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;-----------------------------------------------------------------------------
%include "Nasm.inc"
SECTION .text
;------... |
; A092896: Related to random walks on the 4-cube.
; 1,1,5,17,65,257,1025,4097,16385,65537,262145,1048577,4194305,16777217,67108865,268435457,1073741825,4294967297,17179869185,68719476737,274877906945,1099511627777,4398046511105,17592186044417,70368744177665,281474976710657,1125899906842625,4503599627370497,180143985094... |
; A001096: a(n) = n + n*(n-1)*(n-2)*(n-3)*(n-4)*(n-5).
; 0,1,2,3,4,5,726,5047,20168,60489,151210,332651,665292,1235533,2162174,3603615,5765776,8910737,13366098,19535059,27907220,39070101,53721382,72681863,96909144,127512025,165765626,213127227,271252828,342014429,427518030,530122351,652458272,797448993,968330914,116867... |
;==================================================================================
; Contents of this file are copyright Grant Searle
; HEX routine from Joel Owens.
;
; You have permission to use this for NON COMMERCIAL USE ONLY
; If you wish to use it elsewhere, please include an acknowledgement to myself.
;
;... |
; 8080 assembler code
.hexfile PrintNumbersRev.hex
.binfile PrintNumbersRev.com
; try "hex" for downloading in hex format
.download bin
.objcopy gobjcopy
.postbuild echo "OK!"
;.nodump
; OS call list
PRINT_B equ 1
PRINT_MEM equ 2
READ_B equ 3
READ_ME... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x14d16, %rsi
lea addresses_A_ht+0x15982, %rdi
and $48434, %r13
mov $3, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %r12
lea addresses_normal_ht+0x14057, %r9
cmp $8463, %rsi
mov $0x6... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>sigprocmask(how, set, oset) -> str
Invokes the syscall sigprocmask.
See 'man 2 sigprocmask' for more information.
Arguments:
how(int): how
set(sigset_t*): set
oset(sigset_t*): oset
Returns:
... |
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Equates section - Names for variables.
; ---------------------------------------------------------------------------
; size variables - you'll get an informational error if you need to change these...
; they are all in units of bytes
Size_... |
; A019479: Define the sequence S(a_0,a_1) by a_{n+2} is the least integer such that a_{n+2}/a_{n+1}>a_{n+1}/a_n for n >= 0. This is S(4,8).
; 4,8,17,37,81,178,392,864,1905,4201,9265,20434,45068,99400,219233,483533,1066465,2352162,5187856,11442176,25236513,55660881,122763937,270764386,597189652,1317143240,2905050865,640... |
# $Id: e_ld_5.asm,v 1.1 2001/03/14 16:57:30 ellard Exp $
#@ tests for invalid args to ld.
ld r3, r2, 0 # OK
ld r3, 0 # Not OK
|
title Disk I/O Library Procedures
;(disks.asm)
; The source code for Get_Diskfreespace and Get_Disksize
; will not be on the student disk, because they are
; solutions to Chapter 11 exercises.
public Get_Diskfreespace, Get_Disksize, \
Get_Commandtail, Get_Deviceparms
.model small
.286
.code
; Get_Diskfreesp... |
.MODEL SMALL
.STACK 100
.DATA
byte1 DB 10, 20, 30
array1 DW 30 DUP(?), 0, 0
array2 DW 5 DUP(3 DUP(?))
array3 DW 1,2,3,4
digitStr DB 12345678$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV DX, LENGTHOF byte1
MOV AX,4C00H
INT 21H
MAIN ENDP
END MAIN |
; ===============================================================
; Dec 2013
; ===============================================================
;
; void _ldiv(ldiv_t *ld, long numer, long denom)
;
; Fill the ldiv_t struct with the results of long divide
; numer / denom.
;
; struct ldiv_t
; {
; long quot;
; long ... |
#include "stdafx.h"
#include "ReplaceYamlProperties.h"
TEST_F(ReplaceYamlPropertiesTests, When_Process_Enabled_Correctly_Replace)
{
value_map values = {
{L"PROCESS_ENABLED", L"true"},
};
std::wstring result = replace_yaml_properties(LR"(
# process_config:
# process_collection:
# enabled: fal... |
; A016050: Inverse of 2041st cyclotomic polynomial.
; Submitted by Jon Maiga
; 1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mov $2,$0
div $0,2
sub $0,6
pow $1,0
lpb... |
/*************************************************************************/
/* pck_packer.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
; A090453: Third column (m=4) of array A090452.
; 2,16,51,118,230,402,651,996,1458,2060,2827,3786,4966,6398,8115,10152,12546,15336,18563,22270,26502,31306,36731,42828,49650,57252,65691,75026,85318,96630,109027,122576,137346,153408,170835,189702,210086,232066,255723,281140,308402,337596,368811,402138,437670,475502,51573... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rax
push %rbp
push %rsi
lea addresses_D_ht+0x137a8, %rax
nop
nop
nop
xor %rsi, %rsi
movb (%rax), %r12b
xor $40199, %r12
lea addresses_WC_ht+0x1dcc8, %rbp
dec %r15
vmovups (%rbp), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rsi
... |
/* Listed requirements are under requirement Trick-163 (3.7.5.2) */
/* Real-time control shall be able to use a system clock source */
#define protected public
#define TOL 2e3
#include <iostream>
#include <sys/types.h>
#include <map>
//#include <signal.h>
#include <unistd.h>
#include "gtest/gtest.h"
#include "trick... |
$s0=32;
top: cout <<"Input a value from 1 to 3";
cin >> $v0;
switch ($v0)
{case(1): {$s0=$s0 <<1; break;}
case(2): {$s0=$s0 <<2; break;}
case(3): {$so=$s0 <<3; break;}
default: goto top; }
cout << $s0; |
#include "ti83plus.inc"
#define bcall(xxxx) rst 28h \ .dw xxxx
; Errors:
; 3 = resList does not exist
; 4 = var does not exist
.org _UserMem
;----------- Main function -- DrawPage
; get address of result
bcall(_runIndicOff)
call checkResList
cp 0
jp Z, quit
; get valu... |
jd_main:
SP = main_st
.clear_memory
.rng_init
.t16_init
// random delay 0-1000us
call rng_next
mov isr0, a
random_delay:
call t16_sync
mov a, t16_4us
sub a, isr0
ifclear OV
goto random_delay
// restart our clock, so it's hopefully offset from other devices
clear t16_low$0
stt16 t16_low... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/* Copyright 2014 Peter Goodman, all rights reserved. */
#include "arch/x86-64/asm/include.asm.inc"
START_FILE_INTEL
#ifdef GRANARY_WHERE_kernel
// A REP MOVS that can fault.
#define MAKE_REP_MOVS(size_bytes, size_name, offs) \
DEFINE_INST_FUNC(granary_extable_rep_movs_ ## size_bytes) @N@\
... |
; Hooks for engine/battle/animations.asm
_LoadAnimationTilesetPalettes:
ld b, BANK(LoadAnimationTilesetPalettes)
ld hl, LoadAnimationTilesetPalettes
rst $18
ret
; Actually this doesn't do everything needed to spriteify
; It copies the tiles and the palette of the player pokemon.
SpriteifyPlayerPokemon:
ld de,vBa... |
org 0x0000
start:
lds 0x5000
ldx 0x4001
ldl $x
jsr print_hex
ldx string
jsr print_str
inf_loop:
jmp inf_loop
print_hex:
ldx 0x4002
ldh 0x00
mad
ana 0x000F
ldb 0x000A
jls low_dec
ada 0x0007
low_dec:
ada 0x0030
tad
sla
sla
sla
sla
ana 0x0F00
ldb 0x0A00
jls high_dec
ada 0x... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
SFX_Heal_Ailment_2_Ch1:
duty 2
unknownsfx0x10 20
unknownsfx0x20 4, 242, 0, 6
unknownsfx0x20 4, 242, 0, 6
unknownsfx0x10 23
unknownsfx0x20 15, 242, 0, 6
unknownsfx0x10 8
endchannel
|
; A026038: a(n) = (d(n)-r(n))/2, where d = A026037 and r is the periodic sequence with fundamental period (1,0,0,1).
; 5,11,20,33,52,78,111,152,203,265,338,423,522,636,765,910,1073,1255,1456,1677,1920,2186,2475,2788,3127,3493,3886,4307,4758,5240,5753,6298,6877,7491,8140,8825,9548,10310,11111,11952,12835,13761,14730,157... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %rax
push %rsi
lea addresses_A_ht+0x1d448, %rax
nop
nop
nop
nop
nop
and %r14, %r14
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
vmovups %ymm3, (%rax)
nop
nop
nop
inc %rsi
pop %rsi
pop %rax
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push... |
Route3Mons:
db $14
db 8,SPEAROW;day
db 9,RATTATA
db 9,MANKEY
db 10,SPEAROW ;day
db 8,SANDSHREW
db 10,RATTATA
db 10,SPEAROW;day
db 12,SANDSHREW
db 11,JIGGLYPUFF
db 12,MANKEY
db $00
|
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
#include "multi_food_herbivore_widget.h"
#include "ui_multi_food_herbivore_widget.h"
#include "herbivore_neat.h"
const int multi_food_herbivore_widget::epoch_event::event_type = QEvent::registerEventType();
multi_food_herbivore_widget::multi_food_herbivore_widget(evsim::multi_food::herbivore_neat *herbivore, size_t ... |
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... |
// Copyright (c) 2017-2019 The Raven Core developers
// Copyright (c) 2020-2021 The Hive Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <assets/assets.h>
#include <test/test_hive.h>
#include <boost/tes... |
// MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_CORE_TESTS
#include "cpul/cpulTestHarness.h"
#include "mx/core/Elements.h"
#include <sstream>
using namespace mx::core;
TEST( Test01, GroupTime )
{
... |
/**
* @file PiLedMatrixTests.cpp
* @author Daniel Peppicelli (daniel.peppicelli@gmail.com)
* @brief Main wrapper tests
* @version 0.1
* @date 2019-05-30
*
* @copyright Copyright 2019 Daniel Peppicelli (daniel.peppicelli@gmail.com).
* All rights reserved. Licensed under the Apache License, Version 2.0 (the
* "L... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x10a4e, %rsi
lea addresses_UC_ht+0xe106, %rdi
nop
nop
nop
nop
nop
dec %r13
mov $123, %rcx
rep movsl
nop
nop
add $40733, %rbp
lea addresses_UC_ht+0x1714e, %rdx
nop
nop
nop
nop... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x9b36, %rdx
sub $42784, %r10
mov $0x6162636465666768, %r14
movq %r14, (%rdx)
add $20487, %rdi
lea addresses_A_ht+0x144be, %rsi
lea addresses_normal_ht+0x18ee, %rdi
nop
nop
nop
... |
; A080857: (25*n^2 - 15*n + 2)/2.
; 1,6,36,91,171,276,406,561,741,946,1176,1431,1711,2016,2346,2701,3081,3486,3916,4371,4851,5356,5886,6441,7021,7626,8256,8911,9591,10296,11026,11781,12561,13366,14196,15051,15931,16836,17766,18721,19701
mov $1,5
mul $1,$0
sub $1,1
bin $1,2
|
Sound2D_InhalingBubble_Header:
smpsHeaderStartSong 2, 1
smpsHeaderVoice Sound2D_InhalingBubble_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, Sound2D_InhalingBubble_FM5, $0E, $00
; FM5 Data
Sound2D_InhalingBubble_FM5:
smpsSetvoice $00
smpsModSet $01, $01, ... |
db 0 ; species ID placeholder
db 35, 35, 40, 50, 35, 55
; hp atk def spd sat sdf
db GRASS, FLYING ; type
db 255 ; catch rate
db 74 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/hoppip/front.dimensions"
db GROWTH_MEDIUM_SLOW... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xeebc, %rsi
lea addresses_A_ht+0x5bf9, %rdi
nop
nop
nop
dec %r10
mov $34, %rcx
rep movsw
nop
nop
nop
xor %r12, %r12
lea addresses_UC_ht+0x1794c, %rdx
nop
nop
xor %r9, %r9
vmov... |
#include "VmJitX86.h"
#include <Lethe/Script/Program/CompiledProgram.h>
#include <Lethe/Script/Program/ConstPool.h>
#include "../Builtin.h"
#if LETHE_CPU_X86 && (LETHE_OS_WINDOWS || LETHE_64BIT)
namespace lethe
{
#if !LETHE_32BIT
# if LETHE_COMPILER_MSC_ONLY
extern "C" void VmJitX64_Stub(void *param);
# endif
#endi... |
/**
* Copyright 2020-2022 Huawei Technologies Co., Ltd
*
* 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 applicabl... |
; A016850: a(n) = (5*n)^2.
; 0,25,100,225,400,625,900,1225,1600,2025,2500,3025,3600,4225,4900,5625,6400,7225,8100,9025,10000,11025,12100,13225,14400,15625,16900,18225,19600,21025,22500,24025,25600,27225,28900,30625,32400,34225,36100,38025,40000,42025,44100,46225,48400,50625,52900,55225,57600,60025,62500,65025,67600,702... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2007, 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... |
; testing memory access
JMP main
addr:
DB 0x2004
main:
MOV addr AX
MOV 0x0016 [AX]
JMP addr
|
;
;
; VideoRAM = b800 -> baff -> 768 locations geom: 32 x 24
; gfxram = bc00 -> bfff -> 8 bytes unused, 8 bytes r, 8 bytes g, 8 bytes b
SECTION code_clib
PUBLIC generic_console_cls
PUBLIC generic_console_vpeek
PUBLIC generic_console_scrollup
PUBLIC generic_console_printc
PUBLIC generic_console_io... |
/*=========================================================================
Program: ParaView
Module: vtkPolarAxesRepresentation.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT A... |
;Colors
[ORG 0x7c00] ;add to offsets
;Init the environment
; init data segment
; init E/video segment and allocate area of mem
; Set to 0x03/80x25 text mode
; Hide the cursor
xor ax, ax ;make it zero
mov ds, ax ;DS=0
mov ah, 0xb8 ;text video memory
mov es, ax ;ES=0xB800
mov al, 0x03... |
; A062302: Number of ways writing n-th prime as a sum of a prime and a nonprime.
; Submitted by Jon Maiga
; 0,1,0,1,4,3,6,5,8,9,8,11,12,11,14,15,16,15,18,19,18,21,22,23,24,25,24,27,26,29,30,31,32,31,34,33,36,37,38,39,40,39,42,41,44,43,46,47,48,47,50,51,50,53,54,55,56,55,58,59,58,61,62,63,62,65,66,67,68,67,70,71,72,73,7... |
; char *strncpy(char * restrict s1, const char * restrict s2, size_t n)
SECTION code_clib
SECTION code_string
PUBLIC strncpy
EXTERN asm_strncpy
strncpy:
pop af
pop bc
pop hl
pop de
push de
push hl
push bc
push af
jp asm_strncpy
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _str... |
; A159504: Numerator of Hermite(n, 10/13).
; Submitted by Christian Krause
; 1,20,62,-12280,-308468,10433200,729974920,-6559031200,-1858301284720,-19430405329600,5264344401526240,170961658044572800,-16153599323983104320,-1016492471508449363200,50649065999412773118080,5823023695166237849024000,-1403302907136980027281856... |
.data
_v: .word 29,28,27,26,25,24,23,22,21,-1
_n: .word 10
.text
.globl main
main:
la $a0,_v
lw $a1,_n
jal sort
li $v0,10 #Exit syscall
syscall
# procedure sort
sort:
# preservacao de registradores armazenando seus conteudos na pilha
addi $sp,$sp,-20
sw $s3,16($sp)
sw $s2,12($sp... |
; Add math operations to threaded inner interpreter.
;
; Output from `make token3.run`:
; ```
; 2 1 + .S
; T 00000003
; Drop 1 3 - .S
; T FFFFFFFE
; Drop 3 11 * .S
; T 00000021
; Drop 11 3 / .S
; T 00000003
; Drop 11 3 Mod .S
; T 00000002
; Drop 11 3 /Mod .S
; T 00000003
; 02 00000002
; Drop Drop -11 3 /Mod .S
; ... |
;----------------------------------------------------------;
; BOS kernel Christoffer Bubach, 2012-2015. ;
;----------------------------------------------------------;
; ;
; STDIO interface, handling all user input/output. ;
; ... |
; A002054: Binomial coefficient C(2n+1, n-1).
; 1,5,21,84,330,1287,5005,19448,75582,293930,1144066,4457400,17383860,67863915,265182525,1037158320,4059928950,15905368710,62359143990,244662670200,960566918220,3773655750150,14833897694226,58343356817424,229591913401900,903936161908052,3560597348629860,14031391033119152,55... |
; Tests instructions ADC & SBC with all addressing modes.
; Assumes that loads & stores work with all addressing modes.
;
; Expected Results: $30=0xAA
start:
LDA #$6A
STA $50
LDA #$6B
STA $51
LDA #$A1
STA $60
LDA #$A2
STA $61
LDA #$FF
ADC #$FF
ADC #$FF
SBC #$AE
; Illegal alias for SBC Immediate
DCB $EB
DCB $FE
STA... |
extern m7_ippsMul_BN:function
extern n8_ippsMul_BN:function
extern y8_ippsMul_BN:function
extern e9_ippsMul_BN:function
extern l9_ippsMul_BN:function
extern n0_ippsMul_BN:function
extern k0_ippsMul_BN:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsMul_BN
.... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
; A057147: a(n) = n times sum of digits of n.
; 0,1,4,9,16,25,36,49,64,81,10,22,36,52,70,90,112,136,162,190,40,63,88,115,144,175,208,243,280,319,90,124,160,198,238,280,324,370,418,468,160,205,252,301,352,405,460,517,576,637,250,306,364,424,486,550,616,684,754,826,360,427,496,567,640,715,792,871,952,1035,490,568,648,730... |
#pragma once
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include "../core/se.hpp"
namespace py = pybind11;
namespace pln::morpho
{
py::array erosion_wrapper(py::array array, const pln::se_t& se);
mln::ndbuffer_image erosion(mln::ndbuffer_image input, const pln::se_t& se);
}
|
/*
* Copyright 2012 The LibYuv 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing p... |
; A011918: a(n) = A011916(n) + A011922(n) - 1.
; 5,76,1065,14840,206701,2878980,40099025,558507376,7779004245,108347552060,1509086724601,21018866592360,292755045568445,4077551771365876,56792969753553825,791024024778387680,11017543377143873701,153454583255235844140,2137346622196157944265,29769398127490975375576,41463422... |
;******************************************************************************
;* LL_CMP16.ASM - 16 BIT STATE - *
;* *
;* Copyright (c) 2012 Texas Instruments Incorporated *
... |
/*
This is a SampVoice project file
Developer: CyberMor <cyber.mor.2020@gmail.ru>
See more here https://github.com/CyberMor/sampvoice
Copyright (c) Daniel (CyberMor) 2020 All rights reserved
*/
#include "Network.h"
#include <util/Logger.h>
#include <util/RakNet.h>
#include <util/GameUtil.h>
#pragma... |
{
let r := 0
for { let i := 0 } lt(i, 1048576) { i := add(i, 1) } {
1
2
1
L011: L012: L013: L014: L015: L016: L017: L018: L019: L0110: L0111: L0112: L0113: L0114: L0115: L0116:
L021: L022: L023: L024: L025: L026: L027: L028: L029: L0210: L0211: L0212: L0213: L0214: L0215: L0216:
pop
dup2
L031: L03... |
; A271832: Period 12 zigzag sequence: repeat [0,1,2,3,4,5,6,5,4,3,2,1].
; 0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1,2,3,4,5,6,5,4,3,2,1,0,1
lpb $0
mul $0,11
mod $0,12
lpe
mov $1,$0
|
;
; SPDX-License-Identifier: BSD-2-Clause
;
; Copyright 2007-2012 Novell, Inc.
; Copyright 2012-2020 SUSE LLC
;
; 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 c... |
;Write an 8051 assembly language program to create a square wave of 75% duty cycle on bit 3 of port 1.
ORG 0000H
MOV P1,#00H
BACK: SETB P1.3
ACALL DELAY
ACALL DELAY
ACALL DELAY
CLR P1.3
ACALL DELAY
SJMP BACK
DELAY: MOV R2,#04H
HERE3:MOV R1,#0FFH
HERE2:MOV R0,#0FFH
HERE1: DJNZ R0,HERE1
DJNZ R1,HERE2
DJN... |
; A033341: [ 21/n ].
; 21,10,7,5,4,3,3,2,2,2,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
add $0,1
mov $1,21
div $1,$0
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rbx
lea addresses_normal_ht+0x188f0, %r10
nop
nop
nop
nop
nop
and $2511, %r12
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
vmovups %ymm1, (%r10)
nop
nop
cmp %r8, %r8
pop %rbx
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faul... |
/* file: model_builder.cpp */
/*******************************************************************************
* Copyright 2014-2021 Intel Corporation
*
* 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 Lic... |
;dec to hex
mvi a,24
loop: sui 16
inr c
cpi 16
jnc loop
mov d,a
mov a,c
rlc
rlc
rlc
rlc
ora d
hlt |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/datapipeline/model/Query.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ... |
; replace SpritePrep_Eyegore if flag is on
SpritePrep_EyegoreNew:
{
LDA !ENABLE_MIMIC_OVERRIDE : BNE .new
; old
JSL SpritePrep_Eyegore
RTL
.new
LDA $0E20, X : CMP.b #$B8 : BEQ .mimic ;If sprite id == debugger sprite
JSL $1EC71A ; 0xF471A set eyegore to be only eyegore (.not_... |
Set R1, #4.0
Set R2, #2.0 --a
Fmul R1, R1, R2
Set R3, #2.0 --c
Fmul R1, R1, R3
Set R3, #5.0 --b
Pow R4, R3, #2
Fsub R1, R4, R1
Sqrt R1, R1
Fneg R3, R3
Fadd R0, R3, R1
Fsub R1, R3, R1
Set R3, #2
Fmul R2, R2, R3
Fdiv R0, R0, R2
Get R0
Fdiv R1, R1, R2
Get R1 |
;==================================================================================================
; Settings and tables which the front-end may write
;==================================================================================================
; This is used to determine if and how the cosmetics can be patched... |
; A078787: a(n) = 101*n + 1.
; 1,102,203,304,405,506,607,708,809,910,1011,1112,1213,1314,1415,1516,1617,1718,1819,1920,2021,2122,2223,2324,2425,2526,2627,2728,2829,2930,3031,3132,3233,3334,3435,3536,3637,3738,3839,3940,4041,4142,4243,4344,4445,4546,4647,4748,4849,4950,5051,5152,5253,5354,5455,5556,5657,5758,5859,5960,6... |
#pragma once
#ifndef NETUIT_MESH_MESHNODEINPUT_HPP_INCLUDE
#define NETUIT_MESH_MESHNODEINPUT_HPP_INCLUDE
#include <memory>
#include <sstream>
#include <stddef.h>
#include "../../uit/spouts/Outlet.hpp"
namespace netuit {
template<typename ImplSpec>
class MeshNodeInput final
: public ImplSpec::template outlet_wrapper... |
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#define L0_CACHE_LOCATION "l0_c_cache"
#include "level_zero/core/source/compiler_interface/default_l0_cache_config.h"
#include "shared/source/utilities/debug_settings_reader.h"
#include "level_zero/core/source/compiler_interface/l0... |
; vasmm68k_mot[_<HOST>] -Fbin -o icon_36_279/def_project.info def_project-icon_36_279.asm
;
; Default "ENV:def_project.info" data included in "icon 36.279 (20.4.90)".
;
include deficon.inc
ifne DEFICON_MEM
align 1
endif
defIconProject:
dc.w $E310 ; do_Magic = WB_DISKMAGIC
dc.w $0001 ... |
HALTMR EQU 0F0H
HALTMCR EQU 0F1H
;
PAD EQU 1CH
PAC EQU 1DH
PBD EQU 1EH
PBC EQU 1FH
;
ORG 8000H
;
LD SP,00H
CALL WDTINI
CALL PIOINI
;--------------------------------------
; Main routine
;--------------------------------------
LOOP: CALL LEFT
CALL WAIT
CALL WAIT
CALL STOP
;
CALL SLEEP
;
C... |
/*
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
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 co... |
extern _add
extern _sub
extern _and
extern _or
extern _xor
extern _cmp
;; f6/f7
extern _test
extern _not
extern _neg
extern _mul
extern _imul
extern _div
extern _idiv
;; fe/ff
extern _inc
extern _dec
extern _call
extern _jmp
extern _push
extern _rol
extern _ror
extern _shl
extern _shr
... |
INCLUDE "clib_cfg.asm"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_ERROR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; verbose mode
SECTION code_clib
SECTION code_error
PUBLIC error_enomem_mc
EXTERN __ENOMEM, errno_mc
pop hl
error_enomem_mc:
; set hl = -1
; set carry fl... |
; A166957: a(n) = 841*n^3 + 261*n^2 + 28*n + 1.
; 1,1131,7829,25141,58113,111791,191221,301449,447521,634483,867381,1151261,1491169,1892151,2359253,2897521,3512001,4207739,4989781,5863173,6832961,7904191,9081909,10371161,11776993,13304451,14958581,16744429,18667041,20731463,22942741,25305921,27826049,30508171,33357333,... |
SECTION code_clib
PUBLIC printc_MODE2
EXTERN generic_console_udg32
EXTERN generic_console_font32
EXTERN generic_console_flags
EXTERN __MODE2_attr
EXTERN __pc6001_attr
EXTERN __pc6001_mode
EXTERN generic_console_text_xypos
INCLUDE "target/pc6001/def/pc6001.def"
; c ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.