text stringlengths 1 1.05M |
|---|
; float __fsadd_callee (float left, float right)
SECTION code_clib
SECTION code_fp_math32
PUBLIC cm32_sccz80_fsadd_callee
EXTERN m32_fsadd_callee
; add two sccz80 floats
;
; enter : stack = sccz80_float left, ret
; DEHL = sccz80_float right
;
; exit : DEHL = sccz80_float(left+rig... |
; namespace DebugStub
; var DebugWaitMsg = 'Waiting for debugger connection...'
DebugStub_DebugWaitMsg:
db 87, 97, 105, 116, 105, 110, 103, 32, 102, 111, 114, 32, 100, 101, 98, 117, 103, 103, 101, 114, 32, 99, 111, 110, 110, 101, 99, 116, 105, 111, 110, 46, 46, 46
; //! %ifndef Exclude_Memory_Based_Console
%ifndef ... |
#ifndef STAN_MATH_PRIM_FUN_FFT_HPP
#define STAN_MATH_PRIM_FUN_FFT_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <unsupported/Eigen/FFT>
#include <Eigen/Dense>
#include <complex>
#include <type_traits>
#include <vector>
namespace stan {
namespace math {
/**
* Return the disc... |
; A278814: a(n) = ceiling(sqrt(3n+1)).
; 1,2,3,4,4,4,5,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,11,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18
mu... |
#include <iostream>
#include <vector>
#include <thread>
#include <list>
#include <mutex>
#include <condition_variable>
#include <future>
//demo to show how object-oriented new async thread
int mythread(int temp)
{
std::cout<<"mythread started: "<<std::this_thread::get_id()<<std::endl;
std::this_thread::sleep_f... |
; double fmax(double x, double y)
SECTION code_fp_math48
PUBLIC cm48_sccz80_fmax
EXTERN am48_fmax, cm48_sccz80p_dparam2
cm48_sccz80_fmax:
call cm48_sccz80p_dparam2
; AC'= y
; AC = x
jp am48_fmax
|
; A158773: a(n) = 1600*n^2 - 40.
; 1560,6360,14360,25560,39960,57560,78360,102360,129560,159960,193560,230360,270360,313560,359960,409560,462360,518360,577560,639960,705560,774360,846360,921560,999960,1081560,1166360,1254360,1345560,1439960,1537560,1638360,1742360,1849560,1959960,2073560,2190360,2310360,2433560,2559960... |
;Add two memory location-8 bit each and store the two byte result
MVI C, 00H
LDA 2000H
MOV B, A
LDA 2001H
ADD B
JNC down
INR C
down: STA 2002H
MOV A,C
STA 2003H
HLT
|
icl '../os/symbols.asm'
org BOOTADDR
lda #0
sta ROS8
lda #$0B
ldx #OS_SET_VIDEO_MODE
jsr OS_CALL
mwa VRAM_FREE VTILESET_BIG
mwa VRAM_FREE VRAM_TO_RAM
jsr lib_vram_to_ram
adw RAM_TO_VRAM #128
ldy #0
copy_tile:
lda tile, y
sta (RAM_TO_VRAM), y
iny
cpy #128
bne copy_ti... |
/*
* Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xc15a, %rsi
lea addresses_UC_ht+0x915a, %rdi
nop
inc %rax
mov $33, %rcx
rep movsw
nop
nop
nop
nop
nop
xor %r15, %r15
lea addresses_D_ht+0x17aba, %rcx
nop
add %r12, %r12
mov (%rcx), %edi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x19ac0, %rsi
lea addresses_A_ht+0x9900, %rdi
nop
nop
nop
nop
nop
xor $33124, %r13
mov $91, %rcx
rep movsw
nop
sub $51904, %rcx
lea addresses_A_ht+0x9080, %rsi
lea addresses_D... |
; DV3 Medium Change Utility V3.00 1992 Tony Tebby
section dv3
xdef dv3_change
xref dv3_sbclr
include 'dev8_dv3_keys'
include 'dev8_keys_err'
include 'dev8_mac_assert'
;+++
; DV3 Medium Change
;
; a4 c p drive definition
;
; status... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019 Baldur Karlsson
*
* 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 ... |
; A001311: Final 2 digits of 6^n.
; 1,6,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,76,56,36,16,96,7... |
MODULE get_sprite_prop
PUBLIC get_sprite_prop
PUBLIC _get_sprite_prop
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; uint8_t __LIB__ get_sprite_prop(uint8_t nb) NONBANKED;
get_sprite_prop:
_get_sprite_prop:
PUSH BC
LD HL,sp+4 ... |
// SPDX-License-Identifier: BSD-2-Clause
//
// This code has been produced by the European Spallation Source
// and its partner institutes under the BSD 2 Clause License.
//
// See LICENSE.md at the top level for license information.
//
// Screaming Udder! https://esss.se
#include "Master.... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="name"/>
<%docstring>
Invokes the syscall unlink. See 'man 2 unlink' for more information.
Arguments:
name(char): name
</%docstring>
${syscall('SYS_unlink', name)}
|
proc DoMan
fastcall ConsolePrint, _gr_message_mandata
ret
endp |
Ani_2647E: dc.w byte_26480-Ani_2647E
byte_26480: dc.b 3, 1, 2, 3, 4, 5, 3, 4, 6, 7, 8, $FC
|
[org 0x1000]
dw 0x55aa; 魔数,用于判断错误
; 打印字符串
mov si, loading
call print
; xchg bx, bx; 断点
detect_memory:
; 将 ebx 置为 0
xor ebx, ebx
; es:di 结构体的缓存位置
mov ax, 0
mov es, ax
mov edi, ards_buffer
mov edx, 0x534d4150; 固定签名
.next:
; 子功能号
mov eax, 0xe820
; ards 结构的大小 (字节)
mov ecx,... |
; A008732: Molien series for 3-dimensional group [2,n] = *22n.
; 1,2,3,4,5,7,9,11,13,15,18,21,24,27,30,34,38,42,46,50,55,60,65,70,75,81,87,93,99,105,112,119,126,133,140,148,156,164,172,180,189,198,207,216,225,235,245,255,265,275,286,297,308,319,330,342,354,366,378,390,403,416,429,442,455,469,483,497,511,525,540,555,570... |
SECTION code_clib
SECTION code_l_sdcc
PUBLIC ____sdcc_4_copy_src_mhl_dst_bcix
EXTERN ____sdcc_4_copy_src_mhl_dst_deix
____sdcc_4_copy_src_mhl_dst_bcix:
push de
ld e,c
ld d,b
call ____sdcc_4_copy_src_mhl_dst_deix
pop de
ret
|
/**
* @file src/bin2llvmir/optimizations/x86_addr_spaces/x86_addr_spaces.cpp
* @brief Optimize a single x86 address spaces instruction.
* @copyright (c) 2018 Avast Software, licensed under the MIT license
*/
#include <llvm/IR/Instructions.h>
#include <llvm/IR/Constants.h>
#include "retdec/bin2llvmir/optimizations... |
ldy {m1}
sty $fe
ldy {m1}+1
sty $ff
ldy #0
ora ($fe),y
sta ($fe),y |
; A282848: a(n) = 2*n + 1 + n mod 4.
; 4,7,10,9,12,15,18,17,20,23,26,25,28,31,34,33,36,39,42,41,44,47,50,49,52,55,58,57,60,63,66,65,68,71,74,73,76,79,82,81,84,87,90,89,92,95,98,97,100,103,106,105,108,111,114,113,116,119,122,121,124,127,130,129,132,135,138,137,140,143,146,145,148,151,154,153,156,159,162,161,164,167,170,... |
object_const_def ; object_event constants
const CELADONMANSIONROOF_FISHER
CeladonMansionRoof_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
CeladonMansionRoofFisherScript:
jumptextfaceplayer CeladonMansionRoofFisherText
CeladonMansionRoofGraffiti:
jumptext CeladonMansionRoofGraffitiText
CeladonMansionRoof... |
; A290564: Number of primes between n^2 and 2*n^2.
; Submitted by Christian Krause
; 1,2,3,5,6,9,10,13,15,21,23,27,29,33,39,43,45,52,56,61,67,71,78,85,90,95,102,110,117,124,131,137,145,153,163,167,180,190,196,201,211,218,233,241,252,261,271,281,290,302,314,320,329,344,355,371,385,393,407,416,423,443
mov $2,2
add $2,$0... |
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#pragma once
#include "src/gen-cpp2/module_types.h"
#include <thrift/lib/cpp2/GeneratedSerializationCodeHelper.h>
#include <thrift/lib/cpp2/protocol/BinaryProtocol.h>
#include <thrift/lib/cpp2/pro... |
; A160011: Numerator of Hermite(n, 7/25).
; Submitted by Christian Krause
; 1,14,-1054,-49756,3255916,294362824,-16228395464,-2434918716496,107909598279056,25859921540866784,-851944079067245024,-335176236367776230336,7021763778025751855296,5125948238409003981014144,-42340386055192411914361984,-9029685957693026343454858... |
cpu 8008new
|
; Modify King of Red Lions's code so he doesn't stop you when you veer off the path he wants you to go on.
.open "files/rels/d_a_ship.rel"
; We need to change some of the conditions in his checkOutRange function so he still prevents you from leaving the bounds of the map, but doesn't railroad you based on your st... |
%ifdef CONFIG
{
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
; Just to ensure execution
fldcw [rdx]
hlt
|
initFilesystem:
; Set all file handles to unused
ld hl, fileHandleTable
ld (hl), 0xFF
ld de, fileHandleTable + 1
ld bc, 8 * maxFileStreams
ldir
ret
; If findNode turned up a symlink, this will follow it and
; give the findNode return value for the final destination.
followSymLink:
#define n... |
/*
* Copyright (c) 2021, Krisna Pranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// includes
#include <base/Format.h>
#include <base/StringView.h>
#include <kernel/acpi/Parser.h>
#include <kernel/arch/PC/BIOS.h>
#include <kernel/arch/x86/InterruptDisabler.h>
#include <kernel/bus/PCI/Access.h>
#include <kernel/De... |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... |
.file "deflate.c"
.section .text.unlikely,"ax",@progbits
.LCOLDB1:
.section .rodata
.align 64
.local configuration_table
.type configuration_table, @object
configuration_table:
.value 0
.value 0
.value 0
.value 0
.quad deflate_stored
.long 262148
.long 262152
.quad deflate_fast
.long 327684
.long ... |
#include <Arduino.h>
#include "LSAnalogTrigger.h"
#define N_TRIGGERS 5
#define ID_0 0
#define ID_1 1
#define ID_2 2
#define ID_3 3
#define ID_4 4
#define ANALOG_PIN_0 0
#define ANALOG_PIN_1 1
#define ANALOG_PIN_2 2
#define ANALOG_PIN_3 3
#define ANALOG_PIN_4 4
const int thresholdValues[N_TRIGGERS] {1000,1000,1000,... |
\ MATHS & Numbers -- funcs_math.asm --------------------------------------------
\ NOT CURRENTLY USING THIS
.subtract16u
; subtracts a 16-bit number stored in INT16uB from another 16-bit value
; in INT16uA.
pha
sec
lda INT16uA
sbc INT16uB
sta FUNC_RES_L
lda INT16uA + 1
sbc INT16uB + 1
sta FUNC_RES... |
; A127988: Sequence determining the parity of A025748.
; 0,8,32,40,128,136,160,168,512,520,544,552,640,648,672,680,2048,2056,2080,2088,2176,2184,2208,2216,2560,2568,2592,2600,2688,2696,2720,2728,8192,8200,8224,8232,8320,8328,8352,8360,8704,8712,8736
mov $7,$0
mov $9,$0
lpb $7
mov $0,$9
sub $7,1
sub $0,$7
mov $... |
; A101496: Expansion of (1-x^2)/(1-x-x^2+x^3+x^4).
; Submitted by Christian Krause
; 1,1,1,1,0,-1,-3,-5,-7,-8,-7,-3,5,17,32,47,57,55,33,-16,-95,-199,-311,-399,-416,-305,-11,499,1209,2024,2745,3061,2573,865,-2368,-7137,-12943,-18577,-22015,-20512,-11007,9073,40593,81185,123712,155231,157165,107499,-14279,-219176,-498119... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x68c7, %rax
clflush (%rax)
cmp $61635, %rbp
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
and $0xffffffffffffffc0, %rax
vmovntdq %ymm3, (%rax)
nop
nop
and $59049, %rsi
lea addr... |
; A337821: For n >= 0, a(4n+1) = 0, a(4n+3) = a(2n+1) + 1, a(2n+2) = a(n+1).
; Submitted by Jamie Morken(s2)
; 0,0,1,0,0,1,2,0,0,0,1,1,0,2,3,0,0,0,1,0,0,1,2,1,0,0,1,2,0,3,4,0,0,0,1,0,0,1,2,0,0,0,1,1,0,2,3,1,0,0,1,0,0,1,2,2,0,0,1,3,0,4,5,0,0,0,1,0,0,1,2,0,0,0,1,1,0,2,3,0,0,0,1,0,0,1,2,1,0,0,1,2,0,3,4,1
add $0,1
lpb $0
... |
db 0 ; species ID placeholder
db 35, 55, 35, 35, 30, 30
; hp atk def spd sat sdf
db DARK, DARK ; type
db 255 ; catch rate
db 55 ; base exp
db NO_ITEM, PSNCUREBERRY ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/poochye... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <complex>
#include <cstddef>
#include "DataStructures/ComplexModalVector.hpp"
#include "DataStructures/DataVector.hpp"
#include "DataStructures/ModalVector.hpp"
#include "NumericalAlgorithms/Interpolation/SpanInterpolator.hpp... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Flash.inc"
#include "Lcd.inc"
#include "States.inc"
#include "WaitButtonPressState.inc"
radix decimal
defineUiState UI_STATE_SETTINGS_OPENCLOSEOFFSETS
fcall isLcdIdle
xorlw 0
btfsc STATUS, Z
returnFromUiState
loadFlashAddressOf screen
fcal... |
#include <stan/math/rev/mat.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/mat/fun/jacobian.hpp>
#include <test/unit/math/rev/mat/util.hpp>
TEST(prob_transform,ordered_jacobian_ad) {
using stan::math::var;
using stan::math::ordered_constrain;
using stan::math::determinant;
using Eigen::Matrix;
us... |
Music_LookHiker:
musicheader 4, 1, Music_LookHiker_Ch1
musicheader 1, 2, Music_LookHiker_Ch2
musicheader 1, 3, Music_LookHiker_Ch3
musicheader 1, 4, Music_LookHiker_Ch4
Music_LookHiker_Ch1:
tempo 132
volume $77
tone $0001
vibrato $12, $24
dutycycle $2
stereopanning $f
notetype $c, $68
octave 3
note F#, 2
... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; Lea32R1
mov eax, 0x21
mov edi, 0x8
;TEST_BEGIN_RECORDING
lea eax, [eax+edi+0x1]
;TEST_END_RECORDING
|
#include <iostream>
#include <cctype>
using namespace std;
int main() {
struct cadastro {
char pal[21];
} palavra[2];
int x, y;
for (x = 0; x < 2; x++) {
cout << "\nPalavra: ";
cin.getline(palavra[x].pal, 21);
}
palavra[0].pal[0] = toupper(palavra[0].pal[0]);
system("clear");
for (x = 0; x < 2; x++)... |
; A231677: a(n) = Sum_{i=0..n} digsum_7(i)^2, where digsum_7(i) = A053828(i).
; 0,1,5,14,30,55,91,92,96,105,121,146,182,231,235,244,260,285,321,370,434,443,459,484,520,569,633,714,730,755,791,840,904,985,1085,1110,1146,1195,1259,1340,1440,1561,1597,1646,1710,1791,1891,2012,2156,2157,2161,2170,2186,2211,2247,2296,2300,2... |
; A245180: A160239(n)/8.
; Submitted by Christian Krause
; 1,1,3,1,8,3,14,1,8,8,24,3,24,14,52,1,8,8,24,8,64,24,112,3,24,24,72,14,112,52,216,1,8,8,24,8,64,24,112,8,64,64,192,24,192,112,416,3,24,24,72,24,192,72,336,14,112,112,336,52,416,216,848,1,8,8,24,8,64,24,112,8,64,64,192,24,192,112,416,8,64,64,192,64,512,192,896,24... |
; asm_isdigit
PUBLIC asm_isdigit
; determine whether ascii char is a decimal digit
; enter : a = char
; exit : carry = not a digit
; uses : f
.asm_isdigit
cp '0'
ret c
cp '9'+1
ccf
ret
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT:
MODULE:
FILE: irlapPrefControl.asm
AUTHOR: Steve Jang, Dec 8, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Desc... |
db 0 ; species ID placeholder
db 50, 25, 28, 15, 45, 55
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 150 ; catch rate
db 37 ; base exp
db MYSTERYBERRY, MOON_STONE ; items
db GENDER_F75 ; gender ratio
db 100 ; unknown 1
db 10 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/... |
#include <cstdio>
#include <string>
#include <vector>
#include "caffe/solver.hpp"
#include "caffe/util/format.hpp"
#include "caffe/util/hdf5.hpp"
#include "caffe/util/io.hpp"
#include "caffe/util/upgrade_proto.hpp"
namespace caffe {
template<typename Dtype>
void Solver<Dtype>::SetActionFunction(ActionCallback func)... |
; void *tshc_aaddr2saddr(void *aaddr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_aaddr2saddr_fastcall
EXTERN asm_tshc_aaddr2saddr
defc _tshc_aaddr2saddr_fastcall = asm_tshc_aaddr2saddr
|
Name: test.asm
Type: file
Size: 29
Last-Modified: '1992-02-13T07:48:36Z'
SHA-1: 66D543C1459ACB0BBA55EBC46F1751923E3D48A8
Description: null
|
Name: ys_demo_1.asm
Type: file
Size: 30120
Last-Modified: '2016-05-13T04:51:15Z'
SHA-1: 30FF1DA425E5B980C3D354118A98E5CDA91A7883
Description: null
|
BITS 32
start:
mov eax, 41
jmp short start
|
; GLOBALS ===========================================================
SIZE .INT 7
cnt .INT 7
tenth .INT 0
c .BYT 0
.BYT 0
.BYT 0
.BYT 0
.BYT 0
.BYT 0
.BYT 0
data .INT 0
flag ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x39a9, %rax
nop
inc %rbp
vmovups (%rax), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %r13
nop
cmp $10423, %rbx
lea addresses_A_ht+0x57a9, %r8
nop
nop
and %rsi, %rsi... |
;
; Copyright (c) 2020 Phillip Stevens
;
; 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/.
;
; feilipu, August 2020
;
;-----------------------------------------------... |
#include <iostream>
#include <vector>
#include <fstream>
using namespace std;
#include <boost/timer.hpp>
// for sophus
#include <sophus/se3.h>
using Sophus::SE3;
// for eigen
#include <Eigen/Core>
#include <Eigen/Geometry>
using namespace Eigen;
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.h... |
dnl PowerPC-64 mpn_rsh1add_n -- rp[] = (up[] + vp[]) >> 1
dnl Copyright 2003, 2005 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 publish... |
; A120503: Generalized meta-Fibonacci sequence a(n) with parameters s=0 and k=3.
; 1,2,3,3,4,5,6,6,7,8,9,9,9,10,11,12,12,13,14,15,15,16,17,18,18,18,19,20,21,21,22,23,24,24,25,26,27,27,27,27,28,29,30,30,31,32,33,33,34,35,36,36,36,37,38,39,39,40,41,42,42,43,44,45,45,45,46,47,48,48,49,50,51,51
mov $3,$0
add $3,1
mov $6,$... |
;
; file: max.asm
; This example demostrates how to avoid conditional branches
%include "asm_io.inc"
segment _DATA public align=4 class=DATA use32
message1 db "Enter a number: ",0
message2 db "Enter another number: ", 0
message3 db "The larger number is: ", 0
segment _BSS public align=4 class=BSS use32
input1 re... |
; A138691: Numbers of the form 68+p^2 (where p is a prime).
; Submitted by Jamie Morken(s3)
; 72,77,93,117,189,237,357,429,597,909,1029,1437,1749,1917,2277,2877,3549,3789,4557,5109,5397,6309,6957,7989,9477,10269,10677,11517,11949,12837,16197,17229,18837,19389,22269,22869,24717,26637,27957,29997,32109,32829,36549,37317,... |
SECTION code_fcntl
PUBLIC zx_01_output_char_32_tty_z88dk_27_escape
EXTERN error_zc
zx_01_output_char_32_tty_z88dk_27_escape:
; output escaped char uninterpretted
; de = parameters *
ld a,(de)
ld c,a ; c = escaped char
; pop one return address from stack
; so that ... |
// Copyright (c) 2020-2021 The UFO Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bloom.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <ui... |
/* 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... |
; A097017: a(n) = sigma(5*n) modulo 6.
; 0,0,0,0,1,0,0,0,0,3,0,0,0,0,4,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,3,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,3,0,0,0,0,2,0,0,0,0,0
seq $0,283118 ; a(n) = sigma(5*n).
mod $0,6
|
copyright zengfr site:http://github.com/zengfr/romhack
0039F6 movem.l D0-D3, -(A6)
0039FA movem.l D0-D3, -(A6)
006222 move.b ($b,A3), ($62,A4) [boss+36, container+36, enemy+36]
006228 move.b ($c,A3), ($60,A4)
009ACA dbra D5, $9ac8
copyright zengfr site:http://github.com/zengfr/romhack
|
_start:
sub sp, sp, #0x20
stp x29, x30, [sp, #0x10]
add x29, sp, #0x10
mov x0, #16
loop:
subs x0, x0, #1
b.ne loop
ldp x29, x30, [sp, #0x10]
add sp, sp, #0x20
ret
|
; A320431: The number of tiles inside a regular n-gon created by lines that run from each of the vertices of the n edges orthogonal to these edges.
; 1,1,31,13,71,25,127,41,199,61,287,85,391,113,511,145,647,181,799,221,967,265,1151,313,1351,365,1567,421,1799,481,2047,545,2311,613,2591,685,2887,761,3199,841,3527,925,387... |
; Master thesis
; by Alf-Andre Walla 2016-2017
ORG 0x8000
%define code32_segment 0x08
%define data32_segment 0x10
%define SOFT_RESET_MAGIC 0xFEE1DEAD
[BITS 64]
ALIGN 16
;; first six pointer arguments are passed in
;; RDI, RSI, RDX, RCX, R8, and R9
;; hotswap64(
;; RDI: char* dest,
;; RSI: const cha... |
//===--- Selection.cpp ----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
; A142124: Primes congruent to 15 mod 37.
; Submitted by Jon Maiga
; 89,163,311,607,829,977,1051,2087,2161,2309,2383,2531,2753,3049,3271,3863,4159,4603,4751,4973,5417,5639,5861,6379,6823,6971,7193,7489,7933,8081,8377,8599,8747,8821,8969,9043,9413,9857,9931,10079,10301,10597,11411,11633,12373,12743,13187,14149,14519,145... |
; A103391: 'Even' fractal sequence for the natural numbers: Deleting every even-index term results in the same sequence.
; 1,2,2,3,2,4,3,5,2,6,4,7,3,8,5,9,2,10,6,11,4,12,7,13,3,14,8,15,5,16,9,17,2,18,10,19,6,20,11,21,4,22,12,23,7,24,13,25,3,26,14,27,8,28,15,29,5,30,16,31,9,32,17,33,2,34,18,35,10,36,19,37,6,38,20,39,11,... |
;;
;; Copyright (c) 2012-2018, 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... |
#include "indexmanager.h"
|
; A048488: a(n) = 6*2^n - 5.
; 1,7,19,43,91,187,379,763,1531,3067,6139,12283,24571,49147,98299,196603,393211,786427,1572859,3145723,6291451,12582907,25165819,50331643,100663291,201326587,402653179,805306363,1610612731,3221225467,6442450939,12884901883,25769803771,51539607547,103079215099,206158430203,412316860411,82463... |
#include "color.h"
#include <assert.h>
#include <ncurses.h>
namespace color {
void initialize() {
assert(has_colors());
start_color();
init_pair(INACTIVE, COLOR_WHITE, COLOR_BLACK);
init_pair(ACTIVE, COLOR_RED, COLOR_BLACK);
}
} // end namespace color
|
; A033374: a(n) = floor(54/n).
; 54,27,18,13,10,9,7,6,6,5,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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
add $0,1
mov $1,54
div $1,$0
mov $0,$1
|
/*
* Copyright (c) 2017-2020, [Ribose Inc](https://www.ribose.com).
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is originally derived from software contributed to
* The NetBSD Foundation by Alistair Crooks (agc@netbsd.org), and
* carried further by Ribose Inc (https://ww... |
; A135098: First differences of A135094.
; 1,2,5,10,22,44,92,184,376,752,1520,3040,6112,12224,24512,49024,98176,196352,392960,785920,1572352,3144704,6290432,12580864,25163776,50327552,100659200,201318400,402644992,805289984,1610596352,3221192704,6442418176,12884836352,25769738240,51539476480,103079084032,206158168064,4... |
copyright zengfr site:http://github.com/zengfr/romhack
001AD8 abcd -(A3), -(A1) [1p+86]
001ADA abcd -(A3), -(A1) [1p+85]
copyright zengfr site:http://github.com/zengfr/romhack
|
0 PUSH 3
1 PUSH 8
2 PUSH 0
3 POP 2
4 PUSH 4
5 GT
6 MUL
7 PUSH 86
8 WRITE |
; A001994: Expansion of 1/((1-x^2)*(1-x^4)^2*(1-x^6)*(1-x^8)*(1-x^10)) (even powers only).
; 1,1,3,4,8,11,18,24,36,47,66,84,113,141,183,225,284,344,425,508,617,729,872,1020,1205,1397,1632,1877,2172,2480,2846,3228,3677,4146,4691,5261,5917,6603,7386,8205,9133,10103,11195,12336,13613,14947,16431,17981,19697,21488,23462,25... |
;
; Project: Real Time Tone Generation - Chapter 3
;
; File name: cos.asm
;
; Description: 16-bit cos(x) approximation function
;
; For the book "Real Time Digital Signal Processing:
; Fundamentals, Implementation and Application, 3rd Ed"
; ... |
#include<iostream>
using namespace std;
template <typename T>
T sum(T a,T b)
{
return a+b;
}
int main()
{
int x,y; float c,d;
cout<<"Enter two no. for sum ";
cin>>x>>y;
cin>>c>>d;
cout<<sum<int>(x,y);
cout<<sum<float>(c,d);
}
|
; A110185: Coefficients of x in the partial quotients of the continued fraction expansion exp(1/x) = [1, x - 1/2, 12*x, 5*x, 28*x, 9*x, 44*x, 13*x, ...]. The partial quotients all have the form a(n)*x except the constant term of 1 and the initial partial quotient which equals (x - 1/2).
; 0,1,12,5,28,9,44,13,60,17,76,2... |
PUBLIC _fgetattr
; Fastcall
._fgetattr call 0xB8C9
jr c, _fgetok
ld hl, 0xffff
ret
_fgetok: ld l, a
ld h, 0
ret
|
; A171577: 0, 1 and primes > 3.
; 0,1,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277
seq $0,40 ; The prime numbers.
lpb $0
sub $0,2
pow $0,2
lpe
|
Monitor: DB $04
DW $3600
DW MonitorEdges
DB MonitorEdgesSize
DB $00, $2A
DB MonitorVertSize /6
DB MonitorVertSize
DB MonitorEdgesCnt
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x16b28, %rbx
nop
nop
nop
nop
nop
cmp $22305, %r14
mov (%rbx), %r10
nop
inc %rax
lea addresses_WC_ht+0x1e6a8, %r12
dec %rbx
movb $0x61, (%r12)
nop
nop
n... |
//
// Created by root on 11/13/16.
//
#ifndef AUGMENTEDSTUFF_AUGMENTER_HPP
#define AUGMENTEDSTUFF_AUGMENTER_HPP
#include <jni.h>
#include <errno.h>
#include <string>
#include <android/sensor.h>
#include <android/log.h>
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#includ... |
;******************************************************************************************************
; MAIN TRACK MUSIC DRIVER : this still has a LOT of debug stuff in it.
;------------------------------------------------------------------------------------------------------
psgMainDrive
;..................... |
; char *strcpy(char * restrict s1, const char * restrict s2)
SECTION code_clib
SECTION code_string
PUBLIC strcpy
EXTERN asm_strcpy
strcpy:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_strcpy
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _strcpy
defc _strcpy = strcpy
ENDIF
|
/**
* @file vfs_file_handle.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2019 TileDB, Inc.
*
* 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 with... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.