text stringlengths 1 1.05M |
|---|
include uXmx86asm.inc
option casemap:none
ifndef __X64__
.686P
.xmm
.model flat, c
else
.X64P
.xmm
option win64:11
option stackbase:rsp
endif
option frame:auto
.code
align 16
uXm_has_AVX2_VAES proto VECCALL (byte)
align 16
uXm_has_AVX2_VAES proc VECCALL (byte)
mov eax,... |
section .data
val dd 513
; 513 = 0b1000000001
; n = 2
; should have eax = rev[0,1,0,...0] = [0,...0,1,0] = 2
;
; 123 = 0b1111011
; n = 6
; should have eax = rev[6%2,15%2,15%2,0,...,0]
; = rev[0,1,1,0,...,0]
; ... |
; A162698: Numbers n such that the incidence matrix of the grid n X n has -1 as eigenvalue.
; 4,5,9,11,14,17,19,23,24,29,34,35,39,41,44,47,49,53,54,59,64,65,69,71,74,77,79,83,84,89,94,95,99,101,104,107,109,113,114,119,124,125,129,131,134,137,139,143,144,149,154,155,159,161,164,167,169,173,174,179,184,185,189,191,194,19... |
// 1. Цикличен алгоритъм с предварително известен брой изпълнения
#include <iostream>
using namespace std;
int main()
{
int i = 0;
for (i = 1; i < 100; i++)
{
cout << i << " ";
}
return 0;
} |
;;
;; Copyright (c) 2012-2022, 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... |
// Copyright (c) 2018-2021, CUT coin
// Copyright (c) 2014-2018, The Monero Project
//
// 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 a... |
/*
* 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 and assoc... |
; ------------------------------------------------------------------------------
; Runs on 64-bit Linux only.
; To assemble, run:
;
; export var="0b010101010101010"; nasm -felf64 main_a1.asm -g -DVAR=$var && ld main_a1.o -o main_a1 && ./main_a1
;
; Set $var to desired value
; ----------------------------------... |
reu_status = $DF00
reu_command = $DF01
reu_c64base = $DF02
reu_reubase = $DF04
reu_translen = $DF07
reu_irqmask = $DF09
reu_control = $DF0A
reu_needs_loading !byte 0 ; Should be 0 from the start
!zone reu {
reu_error
lda #0
sta use_reu
lda #>.reu_error_msg
ldx #<.reu_error_msg
jsr printstring_raw
- jsr k... |
SECTION code_fp_math48
PUBLIC cm48_sdccixp_d2m48, cm48_sdccixp_dx2m48
cm48_sdccixp_dx2m48:
; DEHL = sdcc_float
ex de,hl
cm48_sdccixp_d2m48:
; convert sdcc_float to math48 float
;
; enter : HLDE = sdcc_float
;
; exit : AC' = math48 float
; (exx set is swapped)
;
; uses : f,... |
#include <memory>
#include "gtest/gtest.h"
#include "base_test.hpp"
#include "logical_query_plan/predicate_node.hpp"
#include "logical_query_plan/stored_table_node.hpp"
namespace opossum {
class PredicateNodeTest : public BaseTest {
protected:
void SetUp() override {
StorageManager::get().add_table("table_a... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)adcay"
.byte 0
lda #%00011011
sta db
lda #%11000110
s... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkParametricMobius.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... |
; Read, set and adjust the real time clock V2.00 1986 Tony Tebby QJUMP
section sms
xdef sms_rrtc read clock
xdef sms_srtc set clock
xdef sms_artc adjust clock
xref cv_rtdtm
xref qxl_mess_add
include 'dev8_keys_sys'
include 'dev8_smsq_qxl_keys'
include 'dev8_smsq_qxl_comm_keys'
include 'dev8_smsq_sms... |
; A164532: a(n) = 6*a(n-2) for n > 2; a(1) = 1, a(2) = 4.
; 1,4,6,24,36,144,216,864,1296,5184,7776,31104,46656,186624,279936,1119744,1679616,6718464,10077696,40310784,60466176,241864704,362797056,1451188224,2176782336,8707129344,13060694016,52242776064,78364164096
add $0,5
mov $2,5
lpb $0
mov $1,$0
sub $0,2
mul ... |
; A005521: 1 + (sum of first n odd primes - n)/2.
; 1,2,4,7,12,18,26,35,46,60,75,93,113,134,157,183,212,242,275,310,346,385,426,470,518,568,619,672,726,782,845,910,978,1047,1121,1196,1274,1355,1438,1524,1613,1703,1798
seq $0,101301 ; The sum of the first n primes, minus n.
div $0,2
add $0,1
|
#include<iostream>
#include<queue>
#include<numeric>
#include<algorithm>
#include<cmath>
#include<map>
#include<list>
#include<climits>
#include<set>
#include<sstream>
#include<vector>
#include<stack>
using namespace std;
enum RAction { explode, split, none };
class RResult {
public:
RAction action;
int lexplode, ... |
; A118263: a(3n) = 2^n, a(3n+1) = 3^n, a(3n+2) = 4^n.
; 1,1,1,2,3,4,4,9,16,8,27,64,16,81,256,32,243,1024,64,729,4096,128,2187,16384,256,6561,65536,512,19683,262144,1024,59049,1048576,2048,177147,4194304,4096,531441,16777216,8192,1594323,67108864,16384,4782969
sub $0,1
lpb $0,1
mov $3,$0
sub $0,3
mov $1,$3
add ... |
; A199418: 3*7^n+1.
; 4,22,148,1030,7204,50422,352948,2470630,17294404,121060822,847425748,5931980230,41523861604,290667031222,2034669218548,14242684529830,99698791708804,697891541961622,4885240793731348,34196685556119430,239376798892836004,1675637592249852022,11729463145748964148,82106242020242749030,57474369414169924... |
mov ah, 0x0e
mov bp, 0x8000 ;; base pointer
mov sp, bp ;; copy base pointer in stack pointer
push 'A' ;; after this operation sp := sp - 1. If we really need to print this content then we need to add 1 current sp
push 'B' ;; sp := sp - 2
push 'C' ;; sp := sp - 3 This content just below sp
mov al, [0x7ffe]
int 0x10... |
// ecopycon.cpp
// initialize objects using default copy constructor
#include <iostream>
using namespace std;
////////////////////////////////////////////////////////////////
class Distance //English Distance class
{
private:
int feet;
float inches;
public: ... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* https://www.apache.o... |
/*
UIPClient.cpp - Arduino implementation of a uIP wrapper class.
Copyright (c) 2013 Norbert Truchsess <norbert.truchsess@t-online.de>
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software F... |
; Hello World serial port test for David's new 80C188
; Assemble with:
; nasm -o hello.hex -f ith -l hello.lst hello.asm
[list -]
%include "include/ioports.inc"
[list +]
; section .text start=10000h, vstart=0f0000h
section .text start=0100h
begin: cld
outp uart_lcr, 83h ; Enable DLAB
ou... |
;
; This file generates an entire executable, without external C code.
;
section .text
global main
extern _start
; Strings that help to show that functions are called
msg_hcall db "hcall",0x0A
msg_hatta db "hatta",0x0A
_start:
call attach_trap_handler
call start_trace
nop ; Some dummy code that we shoul... |
; A016782: a(n) = (3*n+1)^6.
; 1,4096,117649,1000000,4826809,16777216,47045881,113379904,244140625,481890304,887503681,1544804416,2565726409,4096000000,6321363049,9474296896,13841287201,19770609664,27680640625,38068692544,51520374361,68719476736,90458382169,117649000000,151334226289,192699928576,243087455521,3040066714... |
; A292022: a(n) = 4n(n^2+2).
; 12,48,132,288,540,912,1428,2112,2988,4080,5412,7008,8892,11088,13620,16512,19788,23472,27588,32160,37212,42768,48852,55488,62700,70512,78948,88032,97788,108240,119412,131328,144012,157488,171780,186912,202908,219792,237588
add $0,1
mov $1,$0
pow $0,2
add $0,2
mul $0,$1
div $0,3
mul $0,12... |
; A308677: Kuba-Panholzer Table 2 pattern 312, 213 for Stirling permutation k = 2.
; Submitted by Christian Krause
; 3,23,155,1014,6580,42636,276507,1796300,11692395,76257675,498286932,3261636728,21384163320,140407901032,923165093595,6077239852824,40052346318985,264243349910925,1745013401135235,11533997779931550,762989... |
; Function realization
ORG 0
JMP main ; Jump to main
ORG 20H
main: ; main function
MOV R0,#30H ; start of memory address
MOV R3,#00H ; iterator for 16 values
MOV R1,#00H
loop: ; Loop for iterating the whole series
JNB P2.0,blink ; if sw0 is pressed, go to blink function
MOV A,R0 ; else move R0 to accumul... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="name, length"/>
<%docstring>
Invokes the syscall setdomainname. See 'man 2 setdomainname' for more information.
Arguments:
name(char): name
len(size_t): len
</%docstring>
${syscall('SYS_setdomainname', name, length)}
|
///////////////////////////////////////////////////////////////////////
// File: imagedata.cpp
// Description: Class to hold information about a single multi-page tiff
// training file and its corresponding boxes or text file.
// Author: Ray Smith
//
// (C) Copyright 2013, Google Inc.
// Licens... |
INCLUDE "data/sprites/facings.asm"
INCLUDE "data/sprites/map_objects.asm"
DeleteMapObject::
push bc
ld hl, OBJECT_MAP_OBJECT_INDEX
add hl, bc
ld a, [hl]
push af
ld h, b
ld l, c
ld bc, OBJECT_STRUCT_LENGTH
xor a
call ByteFill
pop af
cp -1
jr z, .ok
bit 7, a
jr nz, .ok
call GetMapObject
ld hl, OBJECT_S... |
; LmaOS
;
; Copyright Nate Rivard 2020
.include "pseudoinstructions.inc"
.include "system.inc"
.include "vectors.inc"
.include "zeropage.inc"
.code
Main:
LDX #$FF
TXS
;;; initializes hardware
JSR VIA1Init
JSR ACIAInit
JSR LCDInit
LDA #<LmaOSBootText
LDX #>LmaOSBootText
JSR L... |
; A285958: Positions of 0 in A285957; complement of A285959.
; 1,3,4,5,7,8,9,11,12,13,14,16,17,19,20,21,23,24,25,27,28,30,31,32,33,35,36,37,39,40,41,43,44,45,46,48,49,51,52,53,54,56,57,58,60,61,62,64,65,67,68,69,71,72,73,75,76,77,78,80,81,83,84,85,87,88,89,91,92,94,95,96,97,99,100,101,103,104,105,107,108,110,111,112,11... |
; A274267: a(n) = (4*n - 1)^(n-1).
; 1,7,121,3375,130321,6436343,387420489,27512614111,2251875390625,208728361158759,21611482313284249,2472159215084012303,309629344375621415601,42141982597572021484375,6193386212891813387462761,977480813971145474830595007,164890958756244164895763202881,29606831241262271996845213307591,5... |
db $FE
dw FileStart
dw FileEnd - 1
dw Main
org $C000
CHPUT equ $00A2
FileStart:
Main:
ld hl, helloWorld
call PrintStr
call NewLn
call Finished
PrintStr:
ld a, (hl)
cp 0
ret z
inc hl
call CHPUT
jr PrintStr
NewLn:
push af
ld a, 13
call CHPUT
... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; void p_list_clear(p_list_t *list)
;
; Clear list to empty.
;
; ===============================================================
SECTION code_adt_p_list
PUBLIC asm_p_list_... |
LOAD A,10
STORE A,#(800)
LOAD A,1
PUSH A
POP A
STORE A,#(801)
LOAD A,#(801)
PUSH A
LOAD A,#(800)
PUSH A
POP B
POP A
CMPLE
PUSH C
POP C
JPC 49
LOAD A,#(801)
PUSH A
LOAD A,2
PUSH A
POP B
POP A
DIV
PUSH C
LOAD A,5
PUSH A
POP B
POP A
CMPGE
PUSH C
POP C
JPC 38
LOAD A,#(801)
PUSH A
POP A
PRINT A
PRINTLN
LOAD A,#(801)
PUSH A
... |
MOV BX,1
MOV CX,0
TOP:
MOV AX,BX
MUL BX
ADD CX,AX
CMP BX,6
JNZ TOP
HLT |
; A054091: Row sums of A054090.
; 1,2,4,10,32,130,652,3914,27400,219202,1972820,19728202,217010224,2604122690,33853594972,473950329610,7109254944152,113748079106434,1933717344809380,34806912206568842
mov $1,15
mov $2,1
lpb $0,1
sub $0,1
add $1,$2
mul $2,$0
add $1,$2
lpe
sub $1,14
|
;code using sigaction systemcall
global _start:
section .text
_start:
pgalign: ;page align
or cx, 0xfff
nxtaddress: ;next address
inc ecx
push byte 0x43 ;sigaction sys call
pop eax ;the syscall number placed in eax register
int 0x80
cmp al,0xf2 ;check for EFAULT
je pgalign... |
db 0 ; species ID placeholder
db 250, 05, 05, 50, 35, 105
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 30 ; catch rate
db 255 ; base exp
db NO_ITEM, LUCKY_EGG ; items
db GENDER_F100 ; gender ratio
db 100 ; unknown 1
db 40 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/chans... |
; A017717: Binomial coefficients C(n,53).
; 1,54,1485,27720,395010,4582116,45057474,386206920,2944827765,20286591270,127805525001,743595781824,4027810484880,20448884000160,97862516286480,443643407165376,1913212193400684,7877932561061640,31074067324187580,117754360386395040,429803415410341896,1514545368588823824,5163222... |
; A021368: Decimal expansion of 1/364.
; 0,0,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2,7,4,7,2,5,2
add $0,1
mov $1,10
pow $1,$0
mul $1,5
div $1,1820
mod $1,10
mov $0,$1
|
Route28_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Route28Sign:
jumptext Route28SignText
Route28HiddenRareCandy:
hiddenitem RARE_CANDY, EVENT_ROUTE_28_HIDDEN_RARE_CANDY
Route28SignText:
text "ROUTE 28"
done
Route28_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 7, 3, ROUTE_28_STEEL_WI... |
; A288486: Square rings obtained by adding four identical cuboids from A169938, a(n) = 4*n*(n+1)*(n*(n+1)+1).
; 0,24,168,624,1680,3720,7224,12768,21024,32760,48840,70224,97968,133224,177240,231360,297024,375768,469224,579120,707280,855624,1026168,1221024,1442400,1692600,1974024,2289168,2640624,3031080,3463320,3940224,4... |
;
; Small C+ Library Functions
;
; djm 11/3/99
;
; Check whether a file handle is null or std*
; If so ret with z=1
INCLUDE "libdefs.def"
XLIB fhand_ck
;Entry: de=handle
.fhand_ck
ld a,d
or e
ret z
ld hl,s... |
;;init.asm
use32
section .multiboot
;multiboot spec
align 4
dd 0x1BADB002 ;magic
dd 0x00 ;flags
dd - (0x1BADB002 + 0x00) ;checksum. m+f+c should be zero
|
;
; jfdctflt.asm - floating-point FDCT (3DNow!)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in ... |
ori $ra,$ra,0xf
lui $5,45011
mfhi $5
addiu $1,$4,-31156
sb $1,4($0)
ori $4,$2,7810
ori $4,$2,18958
lui $2,45923
mtlo $0
mflo $1
mtlo $0
sll $6,$4,12
ori $6,$1,47363
addu $5,$1,$5
lui $4,40175
addiu $4,$4,-970
lb $5,1($0)
lui $6,29143
mtlo $4
divu $4,$ra
mflo $1
lb $1,14($0)
sb $4,7($0)
divu $6,$ra
addu $2,$6,$2
ori $5,... |
; A025803: Expansion of 1/((1-x^2)(1-x^4)(1-x^7)).
; 1,0,1,0,2,0,2,1,3,1,3,2,4,2,5,3,6,3,7,4,8,5,9,6,10,7,11,8,13,9,14,10,16,11,17,13,19,14,20,16,22,17,24,19,26,20,28,22,30,24,32,26,34,28,36,30,39,32,41,34,44,36,46,39
mov $5,$0
mov $7,2
lpb $7
clr $0,5
mov $0,$5
sub $7,1
add $0,$7
sub $0,1
add $2,17
lpb ... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12246 (Mac OS X x86_64)
;--------------------------------------------------------
.module background_0_map
.optsdcc -mgbz80
;--------------------------------------------------------
;... |
; pasmo -I ../danagy -d test_fwst.asm 24576.bin > test.asm ; grep "BREAKPOINT" test.asm
; randomize usr 57344
INCLUDE "finit.asm"
color_flow_warning EQU 1
carry_flow_warning EQU 1
DATA_ADR EQU $6000 ; 24576
TEXT_ADR EQU $E000 ; 57344
ORG ... |
; A005067: Sum of cubes of odd primes dividing n.
; Submitted by Jon Maiga
; 0,0,27,0,125,27,343,0,27,125,1331,27,2197,343,152,0,4913,27,6859,125,370,1331,12167,27,125,2197,27,343,24389,152,29791,0,1358,4913,468,27,50653,6859,2224,125,68921,370,79507,1331,152,12167,103823,27,343,125,4940,2197,148877,27,1456,343,6886,24... |
/*
Copyright (c) 2006-2016, 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 ... |
/* libgcc routines for 68000 w/o floating-point hardware.
Copyright (C) 1994, 1996, 1997, 1998, 2008, 2009 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foun... |
/**
* Copyright 2019 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 applicable law... |
#define UART_ASM
#include "uart.inc"
udata
hex_number res 1 ; uart_send_hex local
code
; Send W to UART
routine uart_send
select PIR1
btfss PIR1, TXIF ; UART buffer is full ?
repeat
select TXREG
movwf TXREG ... |
/* Copyright 2020 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... |
; A170378: Number of reduced words of length n in Coxeter group on 33 generators S_i with relations (S_i)^2 = (S_i S_j)^43 = I.
; 1,33,1056,33792,1081344,34603008,1107296256,35433480192,1133871366144,36283883716608,1161084278931456,37154696925806592,1188950301625810944,38046409652025950208,1217485108864830406656,389595... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xcbde, %rsi
lea addresses_WC_ht+0x77ae, %rdi
clflush (%rsi)
nop
nop
cmp %r10, %r10
mov $76, %rcx
rep movsl
nop
nop
cmp %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r10
ret
.global s_faulty_loa... |
// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
#include <gtest/gtest.h>
#include "Jit/hir/ssa.h"
#include "Jit/hir/type.h"
#include "Jit/ref.h"
#include "RuntimeTests/fixtures.h"
using namespace jit::hir;
using HIRTypeTest = RuntimeTest;
TEST_F(HIRTypeTest, BuiltinEquality) {
EXPEC... |
; A247160: Dynamic Betting Game D(n,4,3).
; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,10... |
!zone splash_screen {
splash_screen
ldy #0
sty z_temp ; String number currently printing
splash_line_y
ldx splash_index_line,y
lda splash_index_col,y
tay
jsr set_cursor
ldy z_temp
ldx splash_index_lb,y
lda splash_index_hb,y
jsr printstring_raw
inc z_temp
ldy z_temp
cpy #5
bne splash_line_y
lda $a2
clc
... |
;*****************************************************
;
; Video Technology library for small C compiler
;
; Juergen Buchmueller
;
;*****************************************************
; ----- void __CALLEE__ vz_sound_callee(int freq, int cycles)
SECTION code_clib
PUBLIC vz_sound_callee
PUBLIC _vz_sound_callee
EXTE... |
;******************************************************************************
;*
;* Adjustris - Block dropping puzzle game for Gameboy
;*
;* Written in 2017 by Dave VanEe (tbsp) dave.vanee@gmail.com
;*
;* To the extent possible under law, the author(s) have dedicated all copyright
;* and related and neighboring ri... |
; A234510: a(n) = 7*binomial(9*n+7,n)/(9*n+7).
; Submitted by Jon Maiga
; 1,7,84,1232,20090,349860,6371764,119877472,2311664355,45448324110,907580289616,18358110017520,375353605696524,7744997102466932,161070300819384000,3372697621463787456,71046594621639707245,1504569659175026591805,32013490616435232789192,684058190392... |
/*
* 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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
GBLL except_s
GET except.asm
END
... |
; A047468: Numbers that are congruent to {1, 2} mod 8.
; 1,2,9,10,17,18,25,26,33,34,41,42,49,50,57,58,65,66,73,74,81,82,89,90,97,98,105,106,113,114,121,122,129,130,137,138,145,146,153,154,161,162,169,170,177,178,185,186,193,194,201,202,209,210,217,218,225,226,233
mov $1,$0
div $1,2
mul $1,6
add $0,$1
add $0,1
|
// seed 4
lbi r0, 167 // icount 0
slbi r0, 145 // icount 1
lbi r1, 12 // icount 2
slbi r1, 187 // icount 3
lbi r2, 135 // icount 4
slbi r2, 166 // icount 5
lbi r3, 172 // icount 6
slbi r3, 218 // icount 7
lbi r4, 97 // icount 8
slbi r4, 58 // icount 9
lbi r5, 17 // icount 10
slbi r5, 59 // icount 11
lbi r6, 85 // icoun... |
;
; Protected Mode BIOS Call Functionailty v2.0 - by Napalm
; -------------------------------------------------------
;
; This is code shows how its POSSIBLE to execute BIOS interrupts
; by switch out to real-mode and then back into protected mode.
;
; If you wish to use all or part of this code you must agree
; to ... |
.data
stack_beg:
.word 0 : 80
stack_end:
filename: .asciiz "/Users/scgtall25/Desktop/CS3340Architecture/TeamProject/Resource/P02.png"
endgameWin: .asciiz "/Users/scgtall25/Desktop/CS3340Architecture/TeamProject/Resource/P01.png"
endgamePanda: .asciiz "/Users/scgtall25/Desktop/CS3340Architecture/TeamPr... |
; A184750: a(n) = largest k such that A000326(n+1) = A000326(n) + (A000326(n) mod k), or 0 if no such k exists.
; 0,0,0,0,19,32,48,67,89,114,142,173,207,244,284,327,373,422,474,529,587,648,712,779,849,922,998,1077,1159,1244,1332,1423,1517,1614,1714,1817,1923,2032,2144,2259,2377,2498,2622,2749,2879,3012,3148,3287,3429,3... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 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 "chainparamsbase.h"
#include "tinyformat.h"
#include "util.h"
#include <ass... |
// This is a generated file, modify: generate/templates/struct_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
}
#include <iostream>
#include "../include/functions/copy.h"
#include "../include/revert_options.h"
#include "../include/merge_option... |
; A183160: a(n) = Sum_{k=0..n} C(n+k,n-k)*C(2*n-k,k).
; Submitted by Christian Krause
; 1,2,11,62,367,2232,13820,86662,548591,3498146,22436251,144583496,935394436,6071718512,39523955552,257913792342,1686627623151,11050540084902,72522925038257,476669316338542,3137209052543927,20672732229560032,136374124374593072,9005413... |
; Highspeed80
; by CKtwo, https://www.forum64.de/index.php?thread/42485
;
; From: https://github.com/mist64/80columns
SECTION rodata_font
SECTION rodata_font_4x8
PUBLIC _font_4x8_highspeed80
PUBLIC _font_4x8_highspeed80_end
_font_4x8_highspeed80:
BINARY "font_4x8_highspeed80.bin"
_font_4x8_highspeed80_end:
|
; A155589: 6^n+2^n-1.
; 1,7,39,223,1311,7807,46719,280063,1679871,10078207,60467199,362799103,2176786431,13060702207,78364180479,470185017343,2821109972991,16926659575807,101559956930559,609359740534783,3656158441111551
mov $1,3
pow $1,$0
mov $2,$0
lpb $2
mul $1,2
add $1,1
sub $2,1
lpe
|
; A084377: a(n) = n^3 + 7.
; 7,8,15,34,71,132,223,350,519,736,1007,1338,1735,2204,2751,3382,4103,4920,5839,6866,8007,9268,10655,12174,13831,15632,17583,19690,21959,24396,27007,29798,32775,35944,39311,42882,46663,50660,54879,59326,64007,68928,74095,79514,85191,91132,97343,103830,110599,117656,125007,132658,140615,148884... |
/*
* ShuffleSacrifice.hpp
*
*/
#ifndef PROTOCOLS_SHUFFLESACRIFICE_HPP_
#define PROTOCOLS_SHUFFLESACRIFICE_HPP_
#include "ShuffleSacrifice.h"
#include "Tools/PointerVector.h"
#include "GC/BitAdder.h"
#include "MalRepRingPrep.hpp"
#include "LimitedPrep.hpp"
inline
ShuffleSacrifice::ShuffleSacrifice() :
B(O... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 0;
}
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
... |
; A166143: a(n) = 3*n^2 + 3*n - 5.
; 1,13,31,55,85,121,163,211,265,325,391,463,541,625,715,811,913,1021,1135,1255,1381,1513,1651,1795,1945,2101,2263,2431,2605,2785,2971,3163,3361,3565,3775,3991,4213,4441,4675,4915,5161,5413,5671,5935,6205,6481,6763,7051,7345,7645,7951,8263,8581,8905,9235,9571,9913,10261,10615,10975,113... |
/**
* ScriptDev2 is an extension for mangos providing enhanced features for
* area triggers, creatures, game objects, instances, items, and spells beyond
* the default database scripting in mangos.
*
* Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>
*
* This program is free software; you can red... |
/** @file
Implements the Traffic Server C API functions.
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses ... |
; A040270: Continued fraction for sqrt(287).
; 16,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15,1,32,1,15
gcd $0,262156
mul $0,42
mod $0,13
mov $1,$0
div $1,5
mul $1,9
add $0,$1
sub $0,6
div... |
; A020335: Numbers whose base-7 representation is the juxtaposition of two identical strings.
; Submitted by Simon Strandgaard
; 8,16,24,32,40,48,350,400,450,500,550,600,650,700,750,800,850,900,950,1000,1050,1100,1150,1200,1250,1300,1350,1400,1450,1500,1550,1600,1650,1700,1750,1800,1850,1900,1950,2000,2050,2100,2150,22... |
; Device-based driver for the sunrise IDE interface for Nextor
;
; Version 0.1.7
; By Konamiman
; By Piter Punk
; By FRS
org 4000h
ds 4100h-$,0 ; DRV_START must be at 4100h
DRV_START:
TESTADD equ 0F3F5h
;-----------------------------------------------------------------------------
;
; Driver configura... |
MVI B, 14 ; B=14
MVI C, 9 ; C=9
LXI H, 0 ; HL=0
MOV E, B ; DE=B(14)
LOOP: DAD D ; HL+=DE
DCR C ; C-=1
JNZ LOOP ; 0 değilse atla
HLT
; B ve C deki iki sayıyı çarpar, sonucu HL de tutar
|
; A058665: a(n) = gcd(n+1, n-phi(n)).
; 2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,3,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,5,1,1,1,1,1,1,1,1,1,1,3,1,1,1,5,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1
mov $1,$0
add $0,2
seq $1,10 ; Euler totient function phi(n): count numbers <= ... |
// --- Custom splash screen ----
// Designed for the Hack computer
// by @github/jetstarblues
// === Setup ===
// colors
@0 // '0000000000000000'
D = A
@color0
M = D
@4369 // '0001000100010001'
D = A
@color1
M = D
@8738 // '0010001000100010'
D = A
@color2
M = D
@13107 // '0011001100110011'
D =... |
; A287451: Start with 0 and repeatedly substitute 0->012, 1->201, 2->120.
; 0,1,2,2,0,1,1,2,0,1,2,0,0,1,2,2,0,1,2,0,1,1,2,0,0,1,2,2,0,1,1,2,0,0,1,2,0,1,2,2,0,1,1,2,0,1,2,0,0,1,2,2,0,1,1,2,0,0,1,2,2,0,1,2,0,1,1,2,0,0,1,2,0,1,2,2,0,1,1,2,0,1,2,0,0,1,2,2,0,1,2,0,1,1,2,0,0,1,2,0,1,2,2,0,1,1,2,0,0,1,2,2,0,1,1,2,0,1,2,0,0,1,... |
#include "code.asm"
#include "code2.asm"
; error: code.asm:1: no match
; error: code.asm:2: no match
; error: code.asm:3: no match
; error: code.asm:1: no match
; error: code.asm:2: no match
; error: code.asm:3: no match |
db TANGELA ; 114
db 65, 55, 115, 60, 100, 40
; hp atk def spd sat sdf
db GRASS, GRASS ; type
db 45 ; catch rate
db 166 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/tangela/front.dimension... |
;;; This code was generated by a script
SECTION code_compiler
GLOBAL _zxn_p3cont_d
GLOBAL _zxn_p3cont_d_err
GLOBAL zxn_p3cont_errcheck
;;; On entry, stack holds
;;; retaddr, af, bc, de, hl, ix, zxn_p3call_adjstack
_zxn_p3cont_d_err:
call zxn_p3cont_errcheck ; might not return
_zxn_p3cont_d:
pop af ... |
// -*- C++ -*-
//
// michael a.g. aïvázis
// orthologue
// (c) 1998-2019 all rights reserved
//
#include <portinfo>
#include <Python.h>
#include <sstream>
#include <cstdio>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_eigen.h>
#include "matrix.h"
#include "capsules.h"
// construction
const char * const gsl::matri... |
;
; Pseudorandom number generator
;
; Copyright 2018, 2020 Damian Yerrick
;
; 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 granted to anyone to use this software for a... |
PLANT_CLOAK EQU 0
SANDY_CLOAK EQU 1
TRASH_CLOAK EQU 2
BurmyCloakTilesets:
db PLANT_CLOAK ; TILESET_00
db PLANT_CLOAK ; TILESET_JOHTO
db PLANT_CLOAK ; TILESET_JOHTO_MODERN
db PLANT_CLOAK ; TILESET_KANTO
db PLANT_CLOAK ; TILESET_BATTLE_TOWER_OUTSIDE
db TRASH_CLOAK ; TILESET_HOUSE
db TRASH_CLOAK ; TILESET_PLAYERS_... |
; A047862: a(n) = T(5,n), array T given by A047858.
; 1,7,20,48,108,236,508,1084,2300,4860,10236,21500,45052,94204,196604,409596,851964,1769468,3670012,7602172,15728636,32505852,67108860,138412028,285212668,587202556,1207959548,2483027964,5100273660,10468982780,21474836476,44023414780,90194313212,184683593724,377957122... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.