text stringlengths 1 1.05M |
|---|
;;
;; Copyright (c) 2012-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... |
.MODEL SMALL
.STACK 100H
.DATA
ARRAY1 DB 'a','b','c','d','e','f','g','h','i','j'
ARRAY2 DB 0H,0H,0H,0H,0H,0H,0H,0H,0H,0H
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV CX,10
LEA si,array1+9
LEA di,ARRAY2
COPY:
MOV AH,[si]
MOV [di],AH
dec si
inc di
DEC CX
JNZ COPY
EXIT:... |
; A250337: Number of length 1+5 0..n arrays with every six consecutive terms having the maximum of some three terms equal to the minimum of the remaining three terms.
; 44,429,2056,6785,17796,39949,80144,147681,254620,416141,650904,981409,1434356,2041005,2837536,3865409,5171724,6809581,8838440,11324481,14340964,1796858... |
global _isMulOk
global _saturatedMul
segment .text align=16
_isMulOk:
test esi, esi
je .return1
test edi, edi
je .return1
mov eax, edi
mul esi
setno al
ret
align 16
.return1:
mov eax, 1
ret
align 16
_saturatedMul:
test esi, esi
je .doMul
test edi, edi
je .doMul
mov eax, edi
mul e... |
; A017772: Binomial coefficients C(56,n).
; 1,56,1540,27720,367290,3819816,32468436,231917400,1420494075,7575968400,35607051480,148902215280,558383307300,1889912732400,5804731963800,16253249498640,41648951840265,97997533741800,212327989773900,424655979547800,785613562163430,1346766106565880,2142582442263900,31672957842... |
; A192951: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments.
; 0,1,3,9,20,40,74,131,225,379,630,1038,1700,2773,4511,7325,11880,19252,31182,50487,81725,132271,214058,346394,560520,906985,1467579,2374641,3842300,6217024,10059410,16276523,26336025,42612643,68948766,111561510,180... |
// Copyright 2014 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 <algorithm>
#include "apps/test/apps_test_launcher_delegate.h"
#include "base/sys_info.h"
#include "testing/gtest/include/gtest/gtest.h"
int ma... |
; A113541: Numbers n such that 18n^2+1 is multiple of 19.
; 1,18,20,37,39,56,58,75,77,94,96,113,115,132,134,151,153,170,172,189,191,208,210,227,229,246,248,265,267,284,286,303,305,322,324,341,343,360,362,379,381,398,400,417,419,436,438,455,457,474,476,493,495,512,514,531,533,550,552,569,571,588,590,607,609,626,628,645,... |
// Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals,
// and return an array of the non-overlapping intervals that cover all the intervals in the input.
// Example 1:
// Input: intervals = [[1,3],[2,6],[8,10],[15,18]]
// Output: [[1,6],[8,10],[15,18]]
// Explana... |
include aasyslib.i
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
SYSLIB_JUMP strcpy sysl_strcpy
code ends
end
|
; int main(int argc, char** argv){
global _start
extern adler32file
extern printhex
extern print
%define STDOUT 1
%define STDERR 2
%macro exit 1
mov rdi,%1
jmp quit
%endmacro
segment .data
usage_message db 10,'Usage: adler32 <file>',10
open_error db 10,'Error opening input file',10
close_error db 1... |
/*
Copyright 2015 LE, Duc-Anh
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 agreed to in writing, softwar... |
; A242721: Decimal expansion of the positive real root of 3*x^4 - x^3 - x^2 - 2, a constant related to quasi-isometric mappings.
; Submitted by Christian Krause
; 1,1,1,4,3,0,5,5,5,0,8,4,8,6,9,0,0,0,2,3,0,1,6,9,3,5,8,4,9,4,4,8,2,1,1,3,4,8,2,7,3,7,8,2,5,6,3,1,9,1,7,7,4,2,5,5,7,0,0,9,1,8,1,3,7,4,3,5,0,7,0,2,7,9,3,3,4,4,4... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x11b98, %rsi
lea addresses_D_ht+0x8744, %rdi
nop
and $62284, %r12
mov $46, %rcx
rep movsl
nop
sub %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push... |
; A117865: Number of palindromes (in base 6) below 6^n.
; 5,10,40,70,250,430,1510,2590,9070,15550,54430,93310,326590,559870,1959550,3359230,11757310,20155390,70543870,120932350,423263230,725594110,2539579390,4353564670,15237476350,26121388030,91424858110,156728328190,548549148670,940369969150,3291294892030,564221981491... |
; A007519: Primes of form 8n+1, that is, primes congruent to 1 mod 8.
; 17,41,73,89,97,113,137,193,233,241,257,281,313,337,353,401,409,433,449,457,521,569,577,593,601,617,641,673,761,769,809,857,881,929,937,953,977,1009,1033,1049,1097,1129,1153,1193,1201,1217,1249,1289,1297,1321,1361,1409,1433,1481,1489,1553,1601,1609,... |
; A113126: A simple 4-diagonal matrix.
; Submitted by Jon Maiga
; 1,1,2,1,2,3,1,2,3,4,0,2,3,4,5,0,0,3,4,5,6,0,0,0,4,5,6,7,0,0,0,0,5,6,7,8,0,0,0,0,0,6,7,8,9,0,0,0,0,0,0,7,8,9,10,0,0,0,0,0,0,0,8,9,10,11,0,0,0,0,0,0,0,0,9,10,11,12,0,0,0,0,0,0,0,0,0,10,11,12,13,0,0,0,0,0,0,0,0,0
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0... |
/*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software a... |
; A157996: Primes which are sum of 1 and two nonconsecutive primes p1 and p2, p2 - p1 > 2.
; 11,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,281,283,293,307,311,313,317,331... |
;
;
; ZX Maths Routines
;
; 8/12/02 - Stefano Bodrato
;
; $Id: ftoa.asm,v 1.8 2016/06/22 19:59:18 dom Exp $
;
;
;void ftoa(x,prec,str) -> Convert double to string
;
;double x ; /* number to be converted */
;int prec ; /* # digits after decimal place */
;char *str ; ... |
.MODEL SMALL
.STACK 100H
.CODE
MAIN PROC
MOV AH, 1
INT 21H
MOV BL, AL
MOV AH, 2
MOV DL, 0DH
INT 21H
MOV DL, 0AH
INT 21H
MOV DL, BL
INT 21H
MAIN ENDP
END MAIN
|
#include "BaseLibInternals.h"
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2018, 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
; w... |
; A175826: Partial sums of ceiling(n^2/8).
; 0,1,2,4,6,10,15,22,30,41,54,70,88,110,135,164,196,233,274,320,370,426,487,554,626,705,790,882,980,1086,1199,1320,1448,1585,1730,1884,2046,2218,2399,2590,2790,3001,3222,3454,3696,3950,4215,4492,4780,5081,5394,5720,6058,6410,6775,7154,7546,7953,8374,8810,9260,9726,10207,10704,... |
; LZEee depacker for Z80 sjasm (lzee with f5 option) 97bytes
;
; license:zlib license
;
; Copyright (c) 2020 uniabis
;
; This software is provided 'as-is', without any express or implied
; warranty. In no event will the authors be held liable for any damages
; arising from the use of this software.
;
; Permission is g... |
; A286666: Positions of 0 in A286665; complement of A286667.
; 1,3,6,8,11,13,15,18,20,23,25,27,30,32,35,37,40,42,44,47,49,52,54,56,59,61,64,66,69,71,73,76,78,81,83,85,88,90,93,95,97,100,102,105,107,110,112,114,117,119,122,124,126,129,131,134,136,139,141,143,146,148,151,153,155,158,160,163,165,167,170,172,175,177,180,18... |
; Calculate primes using the Sieve of Eratosthenes
cpu 8086
bits 16
org 0x0100
table: equ 0x8000
table_size: equ 1000
jmp start
%include 'library.inc'
start:
mov bx,table
mov cx,table_size
mov al,0
; Initialize the memory in the table to zero
.zero_loop:
mov [bx],al ; ... |
**************************************************************
* Programmer: Tony Papadimitriou <tonyp@acm.org> *
* Program : SAMPLE *
* Includes : Nothing *
* Links : Nothing *
* Cre... |
; A204817: Final nonzero digit of n^n in base 7.
; 1,1,4,6,4,3,1,1,1,1,4,2,1,6,4,1,2,5,1,5,1,6,1,4,1,4,4,6,4,1,1,3,2,6,1,3,1,2,2,1,2,6,1,1,4,6,4,3,1,1,1,1,4,2,1,6,1,1,2,5,1,5,1,1,1,4,1,4,4,6,4,1,1,3,2,6,1,2,1,2,2,1,2,6,1
pow $0,$0
mov $3,$0
mul $3,5
lpb $3
mov $2,$0
mov $3,1
lpb $2
dif $2,7
lpe
mod $2,7
... |
ORG #639C
LD SP,#5FFF
INCLUDE "BORDER"
LD HL,#FF00
LD B,L
FAD_LP LD D,L
LD A,D
AND 1+2+4
OR A
JR Z,NODINK
DEC D
NODINK LD A,D
AND 8+16+32
OR A
JR Z,NODPAP
LD A,D
SUB 8
LD D,A
NODPAP LD (HL)... |
//*********************************************************
// Travel_Data.hpp - plan travel data classes
//*********************************************************
#ifndef TRAVEL_DATA_HPP
#define TRAVEL_DATA_HPP
#include "Class_Array.hpp"
#include "Link_Time.hpp"
//-------------------------------------------------... |
; A108958: Number of unordered pairs of distinct length-n binary words having the same number of 1's.
; 0,1,6,27,110,430,1652,6307,24054,91866,351692,1350030,5196204,20050108,77542376,300507427,1166737574,4537436578,17672369756,68922740122,269127888644,1052047384708,4116711169496,16123793452942,63205286441660,247959232... |
%ifdef CONFIG
{
"RegData": {
"MM6": ["0x8000000000000000", "0x4001"],
"MM7": ["0x8000000000000000", "0x4000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
lea rdx, [rel data]
fld tword [rdx + 8 * 0]
lea rdx, [rel data2]
fld tword [rdx + 8 * 0]
fdivrp st1, st0
lea rdx, [rel data3]
fld tw... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
#include <jni.h>
#include "com_wiyun_engine_chipmunk_Arbiter.h"
#include "chipmunk.h"
extern jfieldID g_fid_Arbiter_mPointer;
JNIEXPORT jfloat JNICALL Java_com_wiyun_engine_chipmunk_Arbiter_getContactPointX
(JNIEnv * env, jobject thiz, jint contactIndex) {
cpArbiter* arb = (cpArbiter*)env->GetIntField(thiz... |
cout << "Hello world!" << endl; // cout and endl live in the iostream library
cout << "It is very nice to meet you!" << endl; // these comments are easier to read
cout << "Yeah!" << endl; // especially when all lined up |
; A048655: Generalized Pellian with second term equal to 5.
; 1,5,11,27,65,157,379,915,2209,5333,12875,31083,75041,181165,437371,1055907,2549185,6154277,14857739,35869755,86597249,209064253,504725755,1218515763,2941757281,7102030325,17145817931,41393666187,99933150305,241259966797,582453083899,1406166134595,33947853530... |
Music_SSAnne_Ch1::
tempo 128
volume 7, 7
duty_cycle 1
vibrato 8, 3, 4
toggle_perfect_pitch
Music_SSAnne_branch_b3b2::
note_type 12, 10, 4
rest 12
octave 3
note E_, 2
note F#, 2
note E_, 4
note D_, 4
note C#, 2
note D_, 2
note E_, 2
rest 2
note E_, 4
note F#, 2
note D_, 2
note E_, 4
note F#, 4
not... |
; A096947: Tenth column of (1,5)-Pascal triangle A096940.
; 5,46,235,880,2695,7150,17017,37180,75790,145860,267410,470288,797810,1311380,2096270,3268760,4984859,7450850,10935925,15787200,22447425,31475730,43571775,59603700,80640300,107987880,143232276,188286560
mov $1,$0
add $0,36
mov $2,4
add $2,$1
add $2,4
bin $2,8
... |
// branchTest
//
// Test program for WISC-SP06 architecture
// for jump and branch instructions
// for the single-cycle implementation.
//
// CS/ECE 552, Spring 2006
// Andy Phelps 24 March 2006
//
lbi r0, U.Label3
slbi r0, L.Label3 // r0 contains address of ".Label3"
lbi r7, -1 // r7 = 0xffff
lbi r6, 0 ... |
section .text
global getCoords
;; RDI - value
;; RSI - divisor
;; RDX (modulo)
;; RAX (floor division)
;;
;; 32bit values for modulo and division are calculated
;; rax register (division) is shifted by 32bits to the left
;; and then is or'ed into the rdx register which holds the
;; modulo
;;
getCoords:
mov eax, e... |
; A332154: a(n) = 5*(10^(2*n+1)-1)/9 - 10^n.
; Submitted by Jamie Morken(s3.)
; 4,545,55455,5554555,555545555,55555455555,5555554555555,555555545555555,55555555455555555,5555555554555555555,555555555545555555555,55555555555455555555555,5555555555554555555555555,555555555555545555555555555,55555555555555455555555555555,... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 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... |
; void esx_m_geterr(uint16_t error,unsigned char *msg)
SECTION code_esxdos
PUBLIC esx_m_geterr
EXTERN asm_esx_m_geterr
esx_m_geterr:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_esx_m_geterr
|
#include "abstract_table_generator.hpp"
#include "benchmark_config.hpp"
#include "benchmark_table_encoder.hpp"
#include "operators/export_binary.hpp"
#include "storage/storage_manager.hpp"
#include "utils/format_duration.hpp"
#include "utils/timer.hpp"
namespace opossum {
AbstractTableGenerator::AbstractTableGenerat... |
; A037495: Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,1.
; 2,21,212,2121,21212,212121,2121212,21212121,212121212,2121212121,21212121212,212121212121,2121212121212,21212121212121,212121212121212,2121212121212121,21212121212121212,212121212121212121,212121212121... |
; A183907: Number of nondecreasing arrangements of n+2 numbers in 0..4 with each number being the sum mod 5 of two others.
; 1,2,20,66,148,275,457,705,1031,1448,1970,2612,3390,4321,5423,6715,8217,9950,11936,14198,16760,19647,22885,26501,30523,34980,39902,45320,51266,57773,64875,72607,81005,90106,99948,110570,122012,134... |
; ulong esxdos_f_fgetpos(uchar handle)
SECTION code_clib
SECTION code_esxdos
PUBLIC esxdos_f_fgetpos
EXTERN asm_esxdos_f_fgetpos
defc esxdos_f_fgetpos = asm_esxdos_f_fgetpos
|
10 ORG 100H
20 JP MAIN
30GPF EQU 0BFD0H
40MAIN: LD HL,L0
50 LD B,144
60 LD DE,0
70 CALL GPF
80 LD HL,L1
90 LD B,144
100 LD DE,0100H
110 CALL GPF
120 LD HL,L2
130 LD B,144
140 LD DE,0200H
150 CALL GPF
160 LD HL,L3
170 LD B,144
180 LD DE,0300H
190 CALL GPF
200 LD HL,L4
210 LD B,144
220 LD DE,0400H
230 CALL GPF
240 LD HL,... |
; A330602: a(n) = a(n-1) XOR (n+1), with a(0) = 0.
; 0,2,1,5,0,6,1,9,0,10,1,13,0,14,1,17,0,18,1,21,0,22,1,25,0,26,1,29,0,30,1,33,0,34,1,37,0,38,1,41,0,42,1,45,0,46,1,49,0,50,1,53,0,54,1,57,0,58,1,61,0,62,1,65,0,66,1,69,0,70,1,73,0,74,1,77,0,78,1,81,0,82,1,85,0,86,1,89,0,90,1,93,0,94,1,97,0,98,1,101
mov $1,1
lpb $0
s... |
LoadShootingStarGraphics:
ld a, $f9
ldh [rOBP0], a
ld a, $a4
ldh [rOBP1], a
ld de, AnimationTileset2 tile 3 ; star tile (top left quadrant)
ld hl, vChars1 tile $20
lb bc, BANK(AnimationTileset2), 1
call CopyVideoData
ld de, AnimationTileset2 tile 19 ; star tile (bottom left quadrant)
ld hl, vChars1 tile $21
... |
DrawHP:
; Draws the HP bar in the stats screen
call GetPredefRegisters
ld a, $1
jr DrawHP_
DrawHP2:
; Draws the HP bar in the party screen
call GetPredefRegisters
ld a, $2
DrawHP_:
ld [wHPBarType], a
push hl
ld a, [wLoadedMonHP]
ld b, a
ld a, [wLoadedMonHP + 1]
ld c, a
or b
jr nz, .nonzeroHP
xor a
ld c... |
; A156640: a(n) = 169*n^2 + 140*n + 29.
; 29,338,985,1970,3293,4954,6953,9290,11965,14978,18329,22018,26045,30410,35113,40154,45533,51250,57305,63698,70429,77498,84905,92650,100733,109154,117913,127010,136445,146218,156329,166778,177565,188690,200153,211954,224093,236570,249385,262538,276029,289858,304025,318530,333373... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x6a0, %r13
nop
nop
nop
nop
nop
and $55265, %rsi
vmovups (%r13), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r10
nop
nop
nop
nop
nop
sub %rbp, %rbp
lea add... |
; Dn-FamiTracker exported music data: qxy_arp_interactions.0cc
;
; Module header
.word ft_song_list
.word ft_instrument_list
.word ft_sample_list
.word ft_samples
.word ft_groove_list
.byte 0 ; flags
.word 3600 ; NTSC speed
.word 3000 ; PAL speed
; Instrument pointer list
ft_instrument_list:
.word ft_inst_0
... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkCodecAnimation.h"
#include "SkCodecAnimationPriv.h"
#include "SkCodecPriv.h"
#include "SkColorSpaceXform.h"
#include "S... |
;
; Memotech MTX stdio
;
; (HL)=char to display
;
; $Id: fputc_cons.asm,v 1.4 2016/05/15 20:15:45 dom Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native
.fputc_cons_native
ld hl,2
ld b,h ; zero
add hl,sp
ld a,(hl)
IF STANDARDESCAPECHARS
cp 10
ELSE
cp 13
ENDIF
jr nz,nocrlf
ld c,a
rst 10h
defb 192
IF STAND... |
SECTION code_clib
PUBLIC plot_MODE2
.plot_MODE2
ld a,h
cp 128
ret nc
defc NEEDplot = 1
INCLUDE "graphics/spc1000/pixel_MODE2.asm"
|
; unsigned char esx_m_getdrv(void)
; unsigned char esx_m_setdrv(unsigned char drive)
INCLUDE "config_private.inc"
SECTION code_esxdos
PUBLIC asm_esx_m_getdrv
PUBLIC asm_esx_m_setdrv
EXTERN __esxdos_error_mc
asm_esx_m_getdrv:
ld l,0
asm_esx_m_setdrv:
; enter : l = drive (0 to get)
;
; exit : l = d... |
.include "engine/video/declarations/capabilities.asm"
.include "engine/video/declarations/colors.asm"
.include "engine/video/declarations/state.asm"
.include "engine/video/declarations/framebuffer.asm"
.include "engine/video/declarations/palette.asm"
.include "engine/video/declarations/draw/pixel.asm"
|
; A134917: Ceiling(n^(4/3)).
; 1,3,5,7,9,11,14,16,19,22,25,28,31,34,37,41,44,48,51,55,58,62,66,70,74,78,81,86,90,94,98,102,106,111,115,119,124,128,133,137,142,146,151,156,161,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,241,246,251,256,262,267,273,278,284,289,294,300,306,311,317,322,328,334,339,345,351,3... |
; A006124: a(n) = 3 + n/2 + 7*n^2/2.
; 3,7,18,36,61,93,132,178,231,291,358,432,513,601,696,798,907,1023,1146,1276,1413,1557,1708,1866,2031,2203,2382,2568,2761,2961,3168,3382,3603,3831,4066,4308,4557,4813,5076,5346,5623,5907,6198,6496,6801,7113,7432,7758,8091,8431,8778,9132,9493,9861,10236,10618,11007,11403,11806,12216,... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ReadTsc.Asm
;
; Abstract:
;
; AsmReadTsc function
;
; Notes:
;
;------------------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x15467, %rdi
nop
nop
nop
nop
cmp $50089, %r11
mov (%rdi), %r14w
nop
nop
and $23774, %r11
lea addresses_UC_ht+0x1267, %rax
nop
sub $30754, %r14
mov $0x6162636465666768, %r... |
#include "movable_interface.hpp"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x400, %r11
nop
nop
nop
nop
cmp %rdi, %rdi
mov (%r11), %r9w
nop
nop
nop
inc %r14
lea addresses_UC_ht+0x1978, %rdx
nop
nop
nop
nop
nop
xor %rdi, %rdi
movw $0x6162, (%rdx)
dec %r... |
; A044476: Numbers n such that string 3,3 occurs in the base 5 representation of n but not of n+1.
; 18,43,68,94,118,143,168,193,219,243,268,293,318,344,368,393,418,443,474,493,518,543,568,594,618,643,668,693,719,743,768,793,818,844,868,893,918,943,969,993,1018,1043,1068,1099,1118
mul $0,2
add $0,1
seq $0,44470 ; Numb... |
/*
77. Combinations
Given two integers n and k, return all possible combinations of k numbers out of the range [1, n].
You may return the answer in any order.
*/
class Solution {
private:
std::vector<std::vector<int>> res;
void helper(int s, int n, int k, std::vector<int>& tmp) {
if (tmp.size() ==... |
; A130909: Simple periodic sequence (n mod 16).
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9
mod $0,16
|
#include "../../include/altacore/ast/attribute-statement.hpp"
const AltaCore::AST::NodeType AltaCore::AST::AttributeStatement::nodeType() {
return NodeType::AttributeStatement;
};
AltaCore::AST::AttributeStatement::AttributeStatement(std::shared_ptr<AltaCore::AST::AttributeNode> _attribute):
attribute(_attribute)... |
.enum $0300 ;sound engine variables will be on the $0300 page of RAM
sound_disable_flag .db 1 ;a flag variable that keeps track of whether the sound engine is disabled or not.
;if set, sound_play_frame will return without doing anything.
.ende
.org $8000 ;we have two 16k PRG banks now.... |
// Copyright 2018 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 "components/sync_sessions/session_store.h"
#include <stdint.h>
#include <algorithm>
#include <set>
#include <utility>
#include "base/bind.h"
#... |
dnl Intel P6/SSE2 mpn_addmul_1.
dnl Copyright 2008 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 Public License as
dnl published by the Free Softwa... |
; A098295: ((3/2)^n)/2^a(n) lies in the half-open interval [1,2).
; 0,1,1,2,2,3,4,4,5,5,6,7,7,8,8,9,9,10,11,11,12,12,13,14,14,15,15,16,16,17,18,18,19,19,20,21,21,22,22,23,23,24,25,25,26,26,27,28,28,29,29,30,31,31,32,32,33,33,34,35,35,36,36,37,38,38,39,39,40,40,41,42,42,43,43
mov $1,1
add $1,$0
mul $1,24
sub $1,1
div $... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
// Load
lea addresses_WC+0x1b5dd, %r13
nop
add %rdi, %rdi
mov (%r13), %rbx
and %r11, %r11
// REPMOV
mov $0x6dd, %rsi
mov $0xa1bdf000000025d, %rdi
nop
nop
nop
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#include <CL/cl.h>
#pragma warning(disable: 4100)
extern CL_API_ENTRY cl_int CL_API_CALL
clCreateSubDevic... |
#include <cuda_runtime.h>
#include <string>
#include "caffe/caffe.hpp"
//#include "caffe/proto/caffe.pb.h"
//#include "caffe/util/io.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/io.hpp"
using namespace caffe; // NOLINT(build/namespaces)
//using caffe::BlobProto;
int main(int argc, char** argv) {
... |
Map_607E6: dc.w word_607F0-Map_607E6
dc.w word_60816-Map_607E6
dc.w word_60866-Map_607E6
dc.w word_608D4-Map_607E6
dc.w word_608EE-Map_607E6
word_607F0: dc.w 6
dc.b 0, $F, 0, 0, 0, 8
dc.b 8, 1, 0, $10, 0, $28
dc.b 8, 2, 0, $12, 0, 0
dc.b $20, $E, 0, $15, 0, 0
dc.b $20,... |
; A312903: Coordination sequence Gal.5.65.2 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,4,9,13,17,22,27,31,35,40,44,48,53,57,61,66,71,75,79,84,88,92,97,101,105,110,115,119,123,128,132,136,141,145,149,154,159,163,167,172,176,180... |
db 0 ; species ID placeholder
db 85, 73, 70, 67, 73, 115
; hp atk def spd sat sdf
db PSYCHIC, PSYCHIC ; type
db 75 ; catch rate
db 165 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/hypno/front.dimensions"
db GROWTH_MEDIUM_FA... |
; A127723: Floor of square root of sum of squares of the first n consecutive even numbers.
; 2,4,7,10,14,19,23,28,33,39,44,50,57,63,70,77,84,91,99,107,115,123,131,140,148,157,166,175,184,194,204,213,223,233,244,254,265,275,286,297,308,319,331,342,354,366,377,389,402,414,426,439,451,464,477,490,503
add $0,1
seq $0,2492... |
@Little bit of code to randomize the default party
@Link from $4B3C8 with 0048 0047 XXXXXXXX
.thumb
ldr r4,PartyData
add r4,r9 @Location of party data
ldr r4,[r4]
add r4,#0xD @Class ID byte location
ldr r6,TakeRandom
ldr r7,TakeRemainder
m... |
main:
sw $s0, 1000
addi $t0, $0, 1
addi $t0, $t0, 5
sw $s0, 1004
add $t0, $s0, $t0
|
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: init_floatpack.asm,v 1.2 2009/06/22 21:44:17 dom Exp $
;
INCLUDE "cpcfp.def"
XLIB init_floatpack
; All the library routines that we have to change
LIB atan
LIB cos
... |
/*************************************************************************/
/* resource_import.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... |
;DEBUG EQU 0
.386 ; create 32 bit code
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
include windows.inc
include user32.inc
include kernel32.inc
include macros.asm
include TimedMsgBox.inc
... |
; #########################################################################
.386
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
include Dragdrop.inc ; local includes for this file
; #########################################################################
... |
; A015540: a(n) = 5*a(n-1) + 6*a(n-2), a(0) = 0, a(1) = 1.
; 0,1,5,31,185,1111,6665,39991,239945,1439671,8638025,51828151,310968905,1865813431,11194880585,67169283511,403015701065,2418094206391,14508565238345,87051391430071,522308348580425,3133850091482551,18803100548895305,112818603293371831,676911619760230985,4061469... |
copyright zengfr site:http://github.com/zengfr/romhack
0039FA movem.l D0-D3, -(A6)
0039FE movem.l D0-D3, -(A6)
009ACA dbra D5, $9ac8
057C52 move.w #$2, ($52,A6) [weapon+50]
057C58 move.w #$480, ($54,A6) [weapon+52]
057CDC move.w #$2, ($52,A6) [weapon+50]
057CE2 move.w #$300, ($54,A6) [weapon+52]
058C6... |
/**
* \file SinusGeneratorFilter.cpp
*/
#include <ATK/Tools/SinusGeneratorFilter.h>
#include <cmath>
#include <boost/math/constants/constants.hpp>
namespace ATK
{
template<typename DataType_>
SinusGeneratorFilter<DataType_>::SinusGeneratorFilter()
:Parent(0, 2)
{
}
template<typename DataType_>
vo... |
; A169416: Number of reduced words of length n in Coxeter group on 19 generators S_i with relations (S_i)^2 = (S_i S_j)^32 = I.
; Submitted by Jamie Morken(s4)
; 1,19,342,6156,110808,1994544,35901792,646232256,11632180608,209379250944,3768826516992,67838877305856,1221099791505408,21979796247097344,395636332447752192,71... |
/*
* Copyright 2020 Hewlett Packard Enterprise Development LP
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the ... |
// Copyright (c) 2011-2016 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 "util.h"
#include "primitives/transaction.h"
#include "sync.h"
#include "utilstrencodings.h"
#include "utilmoneystr.... |
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
%ifdef __YASM_VERSION_ID__
%if __YASM_VERSION_ID__ < 01010000h
%error yasm version 1.1.0 or later needed.
%endif
; Yasm automatically includes .00 and complains about redefining it.
; https://www.tortall.net/projects/ya... |
/*
* Copyright (c) 2014, Stefan Brand <seiichiro@seiichiro0185.org>
* 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 copyright not... |
-- 7 Billion Humans --
-- 26: Budget Brigate 2 --
-- Size: 12/14 --
-- Speed: 242/75 --
a:
if s == printer:
takefrom s
endif
if s == shredder and
myitem != nothing:
giveto s
endif
if n == person:
giveto n
endif
if e == person and
w == person:
if myitem >= 50:
giveto e
else:
giveto w
endif
endif
jump a
|
; A305880: A base 3/2 reverse sorted Fibonacci sequence that starts with terms 2211 and 2211. The terms are interpreted as numbers written in base 3/2. To get a(n+2), add a(n) and a(n+1), write the result in base 3/2 and sort the digits into decreasing order, omitting all zeros.
; 2211,2211,22211,22211,222211,222211,22... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; CMOVL16rr
mov ax, 0x2
mov bx, 0x4
;TEST_BEGIN_RECORDING
cmovl ax, bx
;TEST_END_RECORDING
|
BITS 32
SEGMENT .text
_s:
mov eax, ecx
and eax, 8
ret
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.