text stringlengths 1 1.05M |
|---|
Name: zel_main1.asm
Type: file
Size: 45599
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: 2AED73D9EC75C76F5BF7A75D9F01E045827F944A
Description: null
|
INCLUDE "pre.asm"
INCLUDE "defs.asm"
; addresses
ifdef MAPPERMAGES
INCLUDE "mappermages.asm"
endif
; ------------------------------------------------------------------------------
BANK 0
BASE $8000
FROM $8BE5
; calculates screen y position of object X.
calc_screen_y:
FROM $8B4D
create_actor_at_actor:
FROM $8... |
bits 64
pinsrw mm0,eax,0
pinsrw mm1,si,0
pinsrw mm2,[rcx],0
pinsrw mm3,word [rcx],0
pinsrb xmm0,eax,0
pinsrb xmm1,sil,0
; pinsrb xmm1,bh,0
pinsrb xmm2,[rcx],0
pinsrb xmm3,byte [rcx],0
pinsrw xmm0,eax,0
pinsrw xmm1,si,0
pinsrw xmm2,[rcx],0
pinsrw xmm3,word [rcx],0
pinsrd xmm0,eax,0
pinsrd xmm1,esi,0
... |
; A194516: First coordinate of (3,5)-Lagrange pair for n.
; 2,-1,1,3,0,2,-1,1,3,0,2,4,1,3,0,2,4,1,3,5,2,4,1,3,5,2,4,6,3,5,2,4,6,3,5,7,4,6,3,5,7,4,6,8,5,7,4,6,8,5,7,9,6,8,5,7,9,6,8,10,7,9,6,8,10,7,9,11,8,10,7,9,11,8,10,12,9,11,8,10,12,9,11,13,10,12,9,11,13,10,12,14,11,13,10
mul $0,2
mov $1,$0
add $1,2
mov $2,2
mov $3,$... |
#include <pthread.h>
#include <unistd.h>
#include <cerrno>
#include <cstdio>
#include <cstring>
struct args_t {
bool flag = false;
int fd[2];
unsigned nbytes = 0;
};
static void* proc1(void* arg) {
printf("Thread 1 started\n");
auto* args = reinterpret_cast<args_t*>(arg);
char buf[256];
... |
; A280304: a(n) = 3*n*(n^2 + 3*n + 4).
; 0,24,84,198,384,660,1044,1554,2208,3024,4020,5214,6624,8268,10164,12330,14784,17544,20628,24054,27840,32004,36564,41538,46944,52800,59124,65934,73248,81084,89460,98394,107904,118008,128724,140070,152064,164724,178068,192114,206880,222384,238644,255678,273504,292140,311604,331914... |
/*
Hork Engine Source Code
MIT License
Copyright (C) 2017-2022 Alexander Samusev.
This file is part of the Hork Engine Source Code.
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 rest... |
#include <iostream>
#include <vector>
#include <atomic>
#include <gtest/gtest.h>
#include "parallel.h"
#include "task.h"
class ConsumerProducerTest : testing::Test { };
#if 1
TEST(ConsumerProducerTest, Test1)
{
const size_t N = 100;
std::atomic<size_t> f;
f = 0;
auto task = asyncply::aparallel(
[&]()
{
fo... |
db 0 ; species ID placeholder
db 60, 79, 105, 36, 59, 85
; hp atk def spd sat sdf
db BUG, GROUND ; type
db 45 ; catch rate
db 148 ; base exp
db NO_ITEM, SILVERPOWDER ; items
db GENDER_F100 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/worma... |
_init: file format elf32-i386
Disassembly of section .text:
00001000 <main>:
char *argv[] = { "sh", 0 };
int
main(void)
{
1000: f3 0f 1e fb endbr32
1004: 8d 4c 24 04 lea 0x4(%esp),%ecx
1008: 83 e4 f0 and $0xfffffff0,%esp
100b: ff 71 fc pushl... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi
5: 53 ... |
SECTION code_fp_math32
PUBLIC ___slong2fs
EXTERN cm32_sdcc___slong2fs
defc ___slong2fs = cm32_sdcc___slong2fs
|
;****************************************************************
;iNES header
;****************************************************************
.byte "NES",$1a
.byte $01 ; 1 PRG-ROM block
.byte $00 ; 0 CHR-ROM block
; ROM control bytes: Horizontal mirroring, no SRAM
; or trainer, Mapper #0
.byte $21 ;V... |
// Copyright (c) 2019-2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bech32.h>
#include <test/fuzz/fuzz.h>
#include <test/util/str.h>
#include <util/strencodings.h>
#include <cassert>... |
; A055653: Sum of phi(d) [A000010] over all unitary divisors d of n (that is, gcd(d,n/d) = 1).
; Submitted by Jon Maiga
; 1,2,3,3,5,6,7,5,7,10,11,9,13,14,15,9,17,14,19,15,21,22,23,15,21,26,19,21,29,30,31,17,33,34,35,21,37,38,39,25,41,42,43,33,35,46,47,27,43,42,51,39,53,38,55,35,57,58,59,45,61,62,49,33,65,66,67,51,69,70... |
; A080455: a(1)=1; for n>1, a(n) = a(n-1) if n is already in the sequence, a(n) = a(n-1) + 4 otherwise.
; 1,5,9,13,13,17,21,25,25,29,33,37,37,41,45,49,49,53,57,61,61,65,69,73,73,77,81,85,85,89,93,97,97,101,105,109,109,113,117,121,121,125,129,133,133,137,141,145,145,149,153,157,157,161,165,169,169,173
mov $1,$0
div $1,... |
; ==================== ZagrOS ====================
; Zagros Open Source Operating System
; Saeid Bostandoust (ssbostan@linuxmail.org)
; Bostandoust.IR
; ==================== ZagrOS ====================
; ================= int 90h code =================
int90:
cmp ah, 00h
jz int90_00 ; 00=G... |
dnl Intel Pentium mpn_and_n,...,mpn_xnor_n -- bitwise logical operations.
dnl Copyright 2001, 2002 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Pub... |
INCLUDE "defines.asm"
SECTION "Rst $00", ROM0[$00]
NULL::
; This traps jumps to $0000, which is a common "default" pointer
; $FFFF is another one, but reads rIE as the instruction byte
; Thus, we put two `nop`s that may serve as operands, before soft-crashing
; The operand will always be 0, so even jumps will wo... |
//adds up two numbers
// RAM[2]=RAM[0]+RAM[1]
//usage:put the values that you wish to add
// in RAM[0] and RAM[1]
@0
D=M
@1
D=D+M
@2
M=D
//inifnite loop to terminate
@6
0;JMP
|
#Demonstrates comparing double precision floating point numbers
.text
l.d $f0, double1 #Loads double1 into $f0
l.d $f2, double2 #Loads double2 into $f2
c.le.d $f0, $f2 #Compares $f0 (double1) <= $f2 (double2)
bc1t lessthanorequal #Branch to lessthanorequal if condition code is true (1)
bc1f greaterth... |
.model flat, stdcall
INCLUDE Irvine32.inc
.data
myArr DWORD 1,5,6,8
.code
main PROC
mov esi,OFFSET myArr
mov ecx,LENGTHOF myArr
mov ebx,TYPE myArr
call DumpMem
; print first array | pre reversal
mov esi,OFFSET myArr
mov edi,OFFSET myArr + SIZEOF myArr - TYPE myArr
mov ecx,LENGTHOF myArr
... |
; A140479: n^2 - number of digits of n^2.
; 0,0,3,8,14,23,34,47,62,79,97,118,141,166,193,222,253,286,321,358,397,438,481,526,573,622,673,726,781,838,897,958,1020,1085,1152,1221,1292,1365,1440,1517,1596,1677,1760,1845,1932,2021,2112,2205,2300,2397,2496,2597
pow $0,2
mov $1,$0
lpb $0
div $0,10
sub $1,1
lpe
|
; A313729: Coordination sequence Gal.6.134.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,25,29,33,38,43,48,53,58,63,68,73,78,83,87,91,96,101,106,111,116,121,126,131,136,141,145,149,154,159,164,169,174,179,184,189,194... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1d051, %rsi
lea addresses_WC_ht+0x1139b, %rdi
nop
nop
xor $24029, %r14
mov $103, %rcx
rep movsl
nop
nop
and %rbp, %rbp
lea addresses_WT_ht+0xe29b, %r8
nop
nop
nop
nop
sub %r10, %r10
mo... |
; A212769: p*q modulo (p+q) with p, q consecutive primes.
; 1,7,11,5,23,11,35,17,43,59,59,35,83,41,91,103,119,119,65,143,143,77,163,77,95,203,101,215,107,191,125,259,275,263,299,299,311,161,331,343,359,347,383,191,395,169,181,221,455,227,463,479,467,499,511,523,539,539,275,563,551,551,305,623,311,599,659,659,695,347,70... |
; A203927: Number of (n+1)X2 0..5 arrays with every 2X2 subblock having equal diagonal elements or equal antidiagonal elements
; 396,4356,47916,527076,5797836,63776196,701538156,7716919716,84886116876,933747285636,10271220141996,112983421561956,1242817637181516,13670994008996676,150380934098963436,1654190275088597796,1... |
; MS-DOS v1.25 SYS.COM
; SHA-256: eaf5e7dbd3edbef716765ffb0a7554351061a6e80af5ae4cec5707d76cb7d7e1
; Binary is part of MS-DOS v1.25 code as released by MS under MIT License
; Use the Netwide Assembler (nasm) to reproduce the original program
; This program updates the system files ibmbio.com and ibmdos.com on a
; targ... |
;CodeVisionAVR C Compiler V3.45 Evaluation
;(C) Copyright 1998-2021 Pavel Haiduc, HP InfoTech S.R.L.
;http://www.hpinfotech.ro
;Build configuration : Debug
;Chip type : ATmega8535
;Program type : Application
;Clock frequency : 1.000000 MHz
;Memory model : Small
;Op... |
; CALLER linkage for function pointers
XLIB im2_RegHookFirst
LIB im2_RegHookFirst_callee
XREF ASMDISP_IM2_REGHOOKFIRST_CALLEE
.im2_RegHookFirst
pop bc
pop de
pop hl
push hl
push de
push bc
jp im2_RegHookFirst_callee + ASMDISP_IM2_REGHOOKFIRST_CALLEE
|
; A267848: Triangle read by rows giving successive states of cellular automaton generated by "Rule 229" initiated with a single ON (black) cell.
; Submitted by Simon Strandgaard
; 1,0,1,0,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,... |
/*******************************************************************************
* Copyright (c) 2013, Esoteric Software
* 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. Redistribut... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2004
*
* Last modified:
* $Date: 2016-10-25 12:52:26 +0200 (Tue, 25 Oct 2016) $ by $Author: schulte $
* $Revision: 15233 $
*
* ... |
; Flowchart Example (Flowchart.asm)
; Implements the flowchart in Figure 6-2,
; Calculates the sum of all array elements larger than
; a given value (sample).
INCLUDE Irvine32.inc
.data
sum DWORD 0
sample DWORD 50
array DWORD 10,60,20,33,72,89,45,65,72,18
ArraySize = ($ - Array) / TYPE array
.code
mai... |
; A016084: a(n+1) = a(n) + its digital root.
; 5,10,11,13,17,25,32,37,38,40,44,52,59,64,65,67,71,79,86,91,92,94,98,106,113,118,119,121,125,133,140,145,146,148,152,160,167,172,173,175,179,187,194,199,200,202,206,214,221,226,227,229,233,241,248,253,254,256,260,268,275,280,281,283,287,295,302,307,308,310,314,322,329,334,3... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/pi/model/DimensionKeyDetail.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespa... |
; int __CALLEE__ strnicmp_callee(char *s1, char *s2, uint n)
; caseless compare
; 12.2006 aralbrec
XLIB strnicmp_callee
XDEF ASMDISP_STRNICMP_CALLEE
.strnicmp_callee
pop hl
pop bc
pop de
ex (sp),hl
; enter : bc = uint n
; de = char *s2
; hl = char *s1
; exit : if s1==s2 :... |
#include <Ticker.h>
#include "dht.h"
#include "DHTesp.h"
#include "mqtt.h"
Ticker dhtTicker;
Ticker dhtPublish;
DHTesp dht;
uint16_t readCount = 0;
bool isInitialized = false;
bool isStaleValue = true;
char lastTemp[10];
char lastHumidity[10];
void readDHTSensor() {
TempAndHumidity newValues = dht.getTempAndHumidi... |
; A182531: Extremal graph numbers for a triangle with an edge off it.
; 0,1,3,4,6,9,12,16,20,25,30,36,42,49,56,64,72,81,90,100,110,121,132,144,156,169,182,196,210,225,240,256,272
mov $1,$0
cmp $0,2
add $1,1
add $0,$1
mul $1,$0
mov $0,$1
div $0,4
|
/* Copyright 2017 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... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : fpdivide.asm
; Purpose : Divide B into A (floating point)
; Date : 18th August 2019
; Review : 4th September 2019... |
; signed int __fs2sint_callee(float f)
SECTION code_fp_math48
PUBLIC cm48_sdccixp_ds2sint_callee
EXTERN cm48_sdccixp_dcallee1, am48_dfix16
cm48_sdccixp_ds2sint_callee:
; double to signed int
;
; enter : stack = sdcc_float x, ret
;
; exit : hl = (int)(x)
;
; uses : af, bc, de, hl, bc', de', ... |
; A080378: Residues mod 4 of the n-th difference between consecutive primes.
; 1,2,2,0,2,0,2,0,2,2,2,0,2,0,2,2,2,2,0,2,2,0,2,0,0,2,0,2,0,2,0,2,2,2,2,2,2,0,2,2,2,2,2,0,2,0,0,0,2,0,2,2,2,2,2,2,2,2,0,2,2,2,0,2,0,2,2,2,2,0,2,0,2,2,0,2,0,0,0,2,2,2,2,2,0,2,0,0,2,0,0,0,0,0,0,2,0,2,2,2
add $0,1
seq $0,40 ; The prime numbers.
... |
; A253487: Number of lattice paths of 2*n+2 steps in the first quadrant from (0,0) to (n,n).
; 2,16,90,448,2100,9504,42042,183040,787644,3359200,14226212,59907456,251100200,1048380480,4362680250,18103127040,74934688620,309509877600,1275964023180,5251296336000,21579247511640,88555121603520,362957071241700,14859695777172... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x4cbf, %rdx
nop
nop
nop
inc %r13
mov $0x6162636465666768, %rsi
movq %rsi, (%rdx)
and $44842, %r11
lea addresses_D_ht+0x9329, %rsi
lea addresses_WT_ht+0xd05d, %rdi
nop
nop
add %r14, %r14... |
;===============================================================================
; Copyright 2014-2020 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 License at
;
; http://www.apa... |
; A071245: a(n) = n*(n-1)*(2*n^2+1)/6.
; 0,0,3,19,66,170,365,693,1204,1956,3015,4455,6358,8814,11921,15785,20520,26248,33099,41211,50730,61810,74613,89309,106076,125100,146575,170703,197694,227766,261145,298065,338768,383504,432531,486115,544530,608058,676989,751621,832260,919220,1012823,1113399,1221286,1336830,1460385... |
org 100h
.DATA
M1 DB 'x=', '$'
M2 DB ' y=', '$'
M3 DB 'x+y=', '$'
M4 DB ' x-y=', '$'
.CODE
PRINT MACRO CHAR
PUSH AX
PUSH DX ;store register values that will be changed
MOV DL,CHAR
MOV AH,2
INT 21H
POP DX
POP AX
ENDM
PRINT_STR MACRO STRING
PUSH AX
PUSH DX
... |
; A047425: Numbers that are congruent to {3, 4, 5, 6} mod 8.
; 3,4,5,6,11,12,13,14,19,20,21,22,27,28,29,30,35,36,37,38,43,44,45,46,51,52,53,54,59,60,61,62,67,68,69,70,75,76,77,78,83,84,85,86,91,92,93,94,99,100,101,102,107,108,109,110,115,116,117,118,123,124
mov $1,$0
div $1,4
mul $1,4
add $0,$1
add $0,3
|
/*
* FreeRTOS Kernel V10.2.1
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, includ... |
PUBLIC UDec
PUBLIC SDec
DSEG SEGMENT PARA PUBLIC 'DATA'
NEWLINE DB 10, 13, '$'
DSEG ENDS
CSEG SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:CSEG
UDec PROC NEAR
PUSH BP
MOV BP, SP
MOV AX, [BP + 6] ; AX = X
UD_1:
XOR CX, CX ; clean CX
MOV BX, 10 ; BASIS OF THE SYSTEM OF CALCULATION
UD_2:
X... |
; A001449: Binomial coefficients binomial(5n,n).
; 1,5,45,455,4845,53130,593775,6724520,76904685,886163135,10272278170,119653565850,1399358844975,16421073515280,193253756909160,2280012686716080,26958221130508525,319357027877093325,3789648142708598775,45038039715653129145,535983370403809682970,6386415635496918121100,761... |
#include "farm_ng/calibration/apriltag.h"
#include "gtest/gtest.h"
TEST(apriltag, smoke) {}
|
; A024633: n written in fractional base 5/3.
; Submitted by Jamie Morken(s4)
; 0,1,2,3,4,30,31,32,33,34,310,311,312,313,314,340,341,342,343,344,3120,3121,3122,3123,3124,3400,3401,3402,3403,3404,3430,3431,3432,3433,3434,31210,31211,31212,31213,31214,31240,31241,31242,31243,31244,34020,34021
mov $3,1
lpb $0
mov $2,$0
... |
; A252669: a(n) is the smallest integer k such that n*k mod (n+k) = 1, or -1 if no such k exists.
; Submitted by Christian Krause
; 1,3,2,13,8,31,3,5,32,91,50,17,4,183,98,241,12,7,162,381,5,75,30,553,288,651,46,129,392,23,6,9,76,55,578,1261,100,47,722,1561,17,311,7,105,968,27,18,413,1152,11,1250,489,228,2863,34,3081,8,... |
// Copyright 2013 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 "chrome/browser/media_galleries/fileapi/itunes_file_util.h"
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "bas... |
#pragma once
/*
Author: ywx217@gmail.com
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means... |
extern w8 ppu_control_0 = $2000
extern w8 ppu_control_1 = $2001
extern w8 ppu_status = $2002
extern w8 vram_addr_0 = $2005
extern w8 vram_addr_1 = $2006
extern w8 vram_io = $2007
const w16 vram_palette = $3f00
const w16 vram_name_0 = $2000
const w16 vram_name_0_s = $2080
const w16 vram_attr_0 = $23c0
sub reset = $c00... |
; A228406: Sequences from the quartic oscillator.
; 0,24,384,2064,7104,18984,43008,86688,160128,276408,451968,706992,1065792,1557192,2214912,3077952,4190976,5604696,7376256,9569616,12255936,15513960,19430400,24100320,29627520,36124920,43714944,52529904,62712384,74415624,87803904
mul $0,2
add $0,2
mov $2,6
lpb $0
add... |
SECTION code_clib
PUBLIC col1
PUBLIC _col1
.col1
._col1
jp 0xb818
|
/*
Copyright (c) 2019, Arvid Norberg
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 source code must retain the above copyright
notice, this list of conditions and the f... |
CheckPartyFullAfterContest:
ld a, [wContestMon]
and a
jp z, .DidntCatchAnything
ld [wCurPartySpecies], a
ld [wCurSpecies], a
call GetBaseData
ld hl, wPartyCount
ld a, [hl]
cp PARTY_LENGTH
jp nc, .TryAddToBox
inc a
ld [hl], a
ld c, a
ld b, 0
add hl, bc
ld a, [wContestMon]
ld [hli], a
ld [wCurSpecies], ... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/ResponseDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
... |
.target "appleii"
printc = $FDF0
.org $801
; Prints all characters
LDA #0
main_loop:
; X = A; X++; A = X
TAX
INX
TXA
; Wait for a lil bit
LDY #0
inner_loop:
INY
BNE -3
JSR printc
JMP main_loop
|
; A329503: G.f. = (1+x)*(1+2*x+2*x^2)/(1-x).
; 1,4,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10
mul $0,4
trn $0,1
lpb $0
mov $0,9
lpe
add $0,1
|
SECTION code_clib
SECTION code_fp_math48
PUBLIC _asinh_fastcall
EXTERN cm48_sdcciy_asinh_fastcall
defc _asinh_fastcall = cm48_sdcciy_asinh_fastcall
|
; A015210: Sum of Gaussian binomial coefficients for q=19.
; Submitted by Stefano Spezia
; 1,2,22,764,152404,99869288,377566978168,4699193672889776,337505849373783995536,79809726992391397235470112,108909145140488785290568540059232,489318942025571053898957586140666992064,12686855492437023425546597742222336158113232704,1... |
#include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... |
; Win95.Radix by Radix16[MIONS]
; Made in Czech republic
;
;Hi,
;
;It's my first Ring3 virus for Win9x.Virus not testing WinNT system.
;
;Target : PE filez
;Virus size : 405(402)
;Resident : NO
;Polymorhic : NO
;
;Virus not dangerous, but .....
;
;Decription AVP:
;
;http://www.avp.ch/avpve/newexe/win95/radi... |
###############################################################################
# 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... |
page ,132
;*****************************************************************************;
; ;
; FILE NAME: remove.asm ;
; ;
; DESCRIPTION: MS-DOS delete file function 41H ;
; ;
; NOTES: ;
; ;
; HISTORY: ... |
/**
* @since 2019-12-27 11:08:42
* 三数之和
*/
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
namespace leetcode_0015 {
string key = "0015";
class Solution {
public:
vector<vector<int>> threeSum(vector<int> &nums) {
vector<vector<int>> result;
int len = nums.size();
sort(n... |
.include "defaults_mod.asm"
table_file_jp equ "exe4-utf8.tbl"
table_file_en equ "bn4-utf8.tbl"
game_code_len equ 3
game_code equ 0x4234574A // B4WJ
game_code_2 equ 0x42345745 // B4WE
game_code_3 equ 0x42345750 // B4WP
card_type equ 1
card_id equ 65
card_no equ "065"
card_sub equ "Mod Card 065"
card_sub_x ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x19faf, %rax
clflush (%rax)
nop
nop
nop
nop
add %rbx, %rbx
mov (%rax), %edi
add $12960, %rcx
lea addresses_normal_ht+0xc7fb, %rax
nop
nop
nop
nop
xor $14159, %r15
vmovups (%r... |
;;
;; Copyright (c) 2018-2020, 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... |
; A077864: Expansion of (1-x)^(-1)/(1-x-2*x^2-x^3).
; 1,2,5,11,24,52,112,241,518,1113,2391,5136,11032,23696,50897,109322,234813,504355,1083304,2326828,4997792,10734753,23057166,49524465,106373551,228479648,490751216,1054084064,2264066145,4862985490,10445201845,22435238971,48188628152,103504307940,222316803216,477514047... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: File -- Path manipulation
FILE: filePath.asm
AUTHOR: Adam de Boor, Mar 19, 1990
ROUTINES:
Name Description
---- -----------
GLB FileGe... |
.model flat, C
.data
__imp__EncodePointer@4 dd dummy
__imp__DecodePointer@4 dd dummy
EXTERNDEF __imp__EncodePointer@4 : DWORD
EXTERNDEF __imp__DecodePointer@4 : DWORD
.code
dummy proc
mov eax, [esp+4]
ret 4
dummy endp
end
|
; A083040: Number of divisors of n that are <= 4
; 1,2,2,3,1,3,1,3,2,2,1,4,1,2,2,3,1,3,1,3,2,2,1,4,1,2,2,3,1,3,1,3,2,2,1,4,1,2,2,3,1,3,1,3,2,2,1,4,1,2,2,3,1,3,1,3,2,2,1,4,1,2,2,3,1,3,1,3,2,2,1,4
add $0,1
gcd $0,12
log $0,2
mov $1,$0
add $1,1
|
#d8 ; error: expected expression |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1cc65, %r14
nop
add $49216, %rax
movb (%r14), %r10b
and %r15, %r15
lea addresses_A_ht+0x1dea9, %rsi
lea addresses_WT_ht+0x1d32d, %rdi
nop
nop
cmp %r13, %r13
mov $72, %rc... |
/* Copyright (c) 2010-2018, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1aa8a, %r9
clflush (%r9)
nop
nop
nop
nop
nop
cmp %r15, %r15
mov (%r9), %r8
nop
sub $44773, %r15
lea addresses_D_ht+0x5802, %r10
nop
nop
sub $318, %rdx
movb $0x61, (%r... |
Name: ys_w12.asm
Type: file
Size: 14461
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: 993C63AE999C843BC55651BBCE2C96A454860496
Description: null
|
; A132593: Nonnegative integer solutions X to the equation: X(X + 1) - 10*Y^2 = 0.
; 0,9,360,13689,519840,19740249,749609640,28465426089,1080936581760,41047124680809,1558709801289000,59189925324301209,2247658452522156960,85351831270517663289,3241121929827149048040,123077281502161146162249,4673695575152296405117440,1774... |
// Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/platform.h"
#include "T3D/fx/particleEmitter.h"
#include "scene/sceneManager.h"
#include "scene/sceneRenderState.h"
#include "console/consoleTypes.h"
#include "console/typeValidato... |
/*! \file */
/* ************************************************************************
* Copyright (c) 2018-2020 Advanced Micro Devices, 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 S... |
; set the angle for the solution to the puzzle to 0x5555 (first try)
truth_spinner_fix:
addiu t5, r0, 0x5555 ;facing angle for first try
jr ra
nop |
; A007877: Period 4 zigzag sequence: repeat [0,1,2,1].
; 0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0,1,2,1,0
gcd $0,4
mov $1,$0
mod $1,4
|
%define THIS_VERY_LONG_MACRO_NAME_IS_DEFINED_TO \
THIS_VALUE
%define ctrl 0x1F &
%define param(a,b) ((a)+(a)*(b))
mov byte [param(2,ebx)], ctrl 'D'
%xidefine isTrue 1
%xdefine isFalse isTrue
%xidefine isTrue 0
val1: db isFalse
%xidefine isTrue 1
val2: db isFalse
%define BDA... |
; A115243: G.f.: (4*x^2 + 2*x)/(4*x^3 - x^2 - 4*x + 1).
; 0,2,12,50,204,818,3276,13106,52428,209714,838860,3355442,13421772,53687090,214748364,858993458,3435973836,13743895346,54975581388,219902325554,879609302220,3518437208882,14073748835532,56294995342130,225179981368524,900719925474098,3602879701896396,1441151880758... |
#include <nano/core_test/testutil.hpp>
#include <nano/lib/timer.hpp>
#include <gtest/gtest.h>
#include <chrono>
#include <thread>
/* Tests for the timer utility. Note that we use sleep_for in the tests, which
sleeps for *at least* the given amount. We thus allow for some leeway in the
upper bound checks (also beca... |
#include <map>
#include <string>
#include <boost/test/unit_test.hpp>
#include "json/json_spirit_writer_template.h"
#include "main.h"
#include "wallet.h"
using namespace std;
using namespace json_spirit;
// In script_tests.cpp
extern Array read_json(const std::string& filename);
extern CScript ParseScript(string s);
... |
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; kernel.asm
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Forrest Yu, 2005
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++... |
SECTION code_clib
SECTION code_fp_math32
PUBLIC cm32_sdcc_fsreadr
PUBLIC cm32_sdcc_fsread1
EXTERN cm32_sdcc_fsload
.cm32_sdcc_fsreadr
; sdcc float primitive
; Read right sdcc float from the stack
;
; Convert from sdcc_float calling to d32_float.
;
; enter : stack = sdcc_float right, sdcc_fl... |
; A027805: 21*(n+1)*C(n+4,9).
; 126,1470,9240,41580,150150,462462,1261260,3123120,7147140,15315300,31039008,59961720,111105540,198470580,343219800,576609264,943854450,1509157650,2362159800,3626122500,5468192730,8112154050,11854124100,17081719200,24297273000,34145767656,47448213120,65241293040,88824184680,119813555400,1... |
db "DARK@" ; species name
db "Around dawn, its"
next "ominous howl"
next "echoes through the"
page "area to announce"
next "that this is its"
next "territory.@"
|
UART_transmit.hex: file format ihex
Disassembly of section .sec1:
00000000 <.sec1>:
0: 07 e6 ldi r16, 0x67 ; 103
2: 10 e0 ldi r17, 0x00 ; 0
4: 0e 94 15 00 call 0x2a ; 0x2a
8: e4 e6 ldi r30, 0x64 ; 100
a: f0 e0 ldi r31, 0x00 ; 0
c: 0e 94 27 00 call 0x4e ; 0x4e
... |
include 'charmap.asm'
; Align 8 bytes
nop 0,8
LoadTextTiles:
; Setup the VDP to write to VRAM address 0x0000 (the address of the first graphics tile, index 0)
SetVRAMWrite vram_addr_tiles
; Write the font glyph tiles to VRAM
lea PixelFont, a0
move.w #(text_tile_count*size_tile_l)-1, d0 ; Loop counter = 8 ... |
; /////////////////////////////////////////////////////////////////////////////
; Znake (ZX Spectrum 48K)
; -----------------------------------------------------------------------------
; 1_menu.asm
; -----------------------------------------------------------------------------
; Copyright (C) 2016, Chris Wyatt
; A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.