text stringlengths 1 1.05M |
|---|
// Avisynth v2.5. Copyright 2002 Ben Rudiak-Gould et al.
// http://www.avisynth.org
// 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 Foundation; either version 2 of the License, or
// (at your option) a... |
#ifndef Utils_hpp
#define Utils_hpp
#include <stdio.h>
#include <sys/types.h>
#include <utility>
#include <algorithm>
#include <cctype>
#include <string>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glad/glad.h>
using namespace glm;
enum {LEFT, CENTER, RIGHT, TOP, BOTTOM};
class Utils {
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xa834, %rax
nop
nop
nop
nop
nop
add $60497, %rcx
mov (%rax), %r14w
nop
nop
nop
and %r14, %r14
lea addresses_A_ht+0x8f86, %rdi
nop
nop
nop
nop
nop
sub $28843, %r10
mov $0x61626... |
; A077750: Least significant digit of A077749(n).
; 0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0,2,6,4,0
mov $1,$0
mod $1,4
pow $1,3
mod $1,5
mul $1,2
|
; ---------------------------------------------------------------------------
; Data segment:
; ---------------------------------------------------------------------------
section .data use64
|
; A267847: Decimal representation of the n-th iteration of the "Rule 227" elementary cellular automaton starting with a single ON (black) cell.
; 1,4,26,122,506,2042,8186,32762,131066,524282,2097146,8388602,33554426,134217722,536870906,2147483642,8589934586,34359738362,137438953466,549755813882,2199023255546,8796093022... |
#include <iostream>
#include "test_whole_archive_foo.h"
extern int foo();
int main(int argc, char **argv) {
std::cout << "Result: " << (foo() + bug::get_thing("baz")) << std::endl;
return 0;
}
struct A {
int i;
A(int i) : i(i) { std::cout << "ctor a" << i << '\n'; }
~A() { std::cout << "dtor a" << i << '... |
;================================================================================
; Floodgate Softlock Fix
;--------------------------------------------------------------------------------
FloodGateAndMasterSwordFollowerReset:
JSL.l MasterSwordFollowerClear
FloodGateReset:
LDA.l PersistentFloodgate : BNE +
LDA $7EF... |
; A109599: a(n) = A070864(n+8) - 4.
; Submitted by Jamie Morken(s2)
; 1,1,1,3,1,3,1,3,3,3,5,3,5,3,5,3,5,5,5,7,5,7,5,7,5,7,5,7,7,7,9,7,9,7,9,7,9,7,9,7,9,9,9,11,9,11,9,11,9,11,9,11,9,11,9,11,11,11,13,11,13,11,13,11,13,11,13,11,13,11,13,11,13,13,13,15,13,15,13,15,13,15,13,15,13,15
add $0,7
mov $1,$0
seq $1,70864 ; a(1) =... |
// ===========================================================================
//
// Sauerbraten game engine source code, any release.
// Tesseract game engine source code, any release.
//
// Copyright (C) 2001-2017 Wouter van Oortmerssen, Lee Salzman, Mike Dysart, Robert Pointon, and Quinton Reeves
// Copyright (C) ... |
/* Examples from
* https://monoinfinito.wordpress.com/series/introduction-to-c-template-metaprogramming/
*/
#include <iostream>
template <int N> struct Factorial{
static const int result = N * Factorial<N-1>::result;
};
//specialization of template, in this recursive case
//is for stoping de loop
template <> st... |
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include "binary_tree.h"
#include "minimum_heap.h"
template<typename T>
void visit(binary_tree_node<T>* node)
{
std::cout << node->data;
}
void test_binary_tree()
{
binary_tree<char> tree;
// "A(B(D,E(G,)),C(,F))#"
//std::cin >> tree;
// 103
// tree.c... |
; GDT
gdt_start:
gdt_null: ; the mandatory null descriptor
dd 0x0 ; ’dd ’ means define double word ( i.e. 4 bytes )
dd 0x0
gdt_code: ; the code segment descriptor
; base =0x0 , limit =0xfffff ,
; 1st flags : ( present )1 ( privilege )00 ( descriptor type )1 -> 1001 b
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotsitewise/model/LoggingLevel.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Util... |
; A188123: Number of strictly increasing arrangements of 4 nonzero numbers in -(n+2)..(n+2) with sum zero.
; 1,3,8,16,31,51,80,118,167,227,302,390,495,617,758,918,1101,1305,1534,1788,2069,2377,2716,3084,3485,3919,4388,4892,5435,6015,6636,7298,8003,8751,9546,10386,11275,12213,13202,14242,15337,16485,17690,18952,20273,21... |
; This is a simple program that outputs '+', '0' or '-' based on the sign of the number stored at in R1
; liuzikai 2020.04.30
; KLC3: INPUT_FILE
.ORIG x3000
LD R1, TEST_INPUT
BRn NEGATIVE_CASE
BRz ZERO_CASE
POSITIVE_CASE
LD R0, PLUS_ASCII
OUT
RET ; trigger ERR_RET_IN_MAIN_CODE so that test case is gener... |
;
; Amstrad CPC library
; (CALLER linkage for function pointers)
;
; creates a copy of a string in CPC format
;
; char __LIB__ *cpc_rsx_strcpy(char *dst, char *src);
;
; $Id: cpc_rsx_strcpy.asm,v 1.3 2016-06-10 21:12:36 dom Exp $
;
SECTION code_clib
PUBLIC cpc_rsx_str... |
; A215045: a(n) = F(2*n+1)^5 with n >= 0, F=A000045 (Fibonacci numbers).
; 1,32,3125,371293,45435424,5584059449,686719856393,84459630100000,10387823949447757,1277617458486664901,157136551895768914976,19326518128014212635057,2377004590722802744140625,292352238096435536675521568,35956948280475177898499562149,442241228624... |
// BtnCtls.cpp: Implementation of DLL exports.
#include "stdafx.h"
#include "res/resource.h"
#ifdef UNICODE
#include "BtnCtlsU.h"
#else
#include "BtnCtlsA.h"
#endif
class BtnCtlsModule :
public CAtlDllModuleT< BtnCtlsModule >
{
public:
#ifdef _UNICODE
DECLARE_LIBID(LIBID_BtnCtlsLibU)
DECLARE_REGISTRY_AP... |
db "SPOTBILL@" ; species name
db "Very territorial."
next "Will defend its"
next "hatchlings if it"
page "has a slight sense"
next "of danger from its"
next "surroundings.@"
|
.n64
.relativeinclude on
.create "../roms/patched.z64", 0
.incbin "../roms/base.z64"
;==================================================================================================
; Constants
;==================================================================================================
.include "constants.... |
; Super Mario Bros. 3 Full Disassembly by Southbird 2012
; For more info, see http://www.sonicepoch.com/sm3mix/
;
; PLEASE INCLUDE A CREDIT TO THE SOUTHBIRD DISASSEMBLY
; AND THE ABOVE LINK SOMEWHERE IN YOUR WORKS :)
;
; Original disassembler source generated by DCC6502 version v1.4
; (With labels, comments, and some s... |
; Copyright 2011-2017 Mersenne Research, Inc. All rights reserved
; Author: George Woltman
; Email: woltman@alum.mit.edu
;
; These FFTs were split out of yr4dwpn5.asm because of HJWASM limitations.
;
TITLE setup
yfft_type TEXTEQU <r4dwpn>
INCLUDE unravel.mac
INCLUDE extrn.mac
INCLUDE yarch.mac
INCLUDE ybasics.m... |
LoreleisRoom_Script:
call LoreleiShowOrHideExitBlock
call EnableAutoTextBoxDrawing
ld hl, LoreleisRoomTrainerHeaders
ld de, LoreleisRoom_ScriptPointers
ld a, [wLoreleisRoomCurScript]
call ExecuteCurMapScriptInTable
ld [wLoreleisRoomCurScript], a
ret
LoreleiShowOrHideExitBlock:
; Blocks or clears the exit to th... |
// This file is part of Horizontal Shooter.
// Copyright (c) 2016 - 2019, Marcus Rowe <undisbeliever@gmail.com>.
// Distributed under The MIT License: https://opensource.org/licenses/MIT
define MEMORY_MAP = HIROM
define ROM_SIZE = 1
define ROM_SPEED = slow
define REGION = Australia
define ROM_NAME = "HORIZONTAL SHOOTE... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2017
*
* Last modified:
* $Date: 2017-04-02 04:27:10 +1000 (Sun, 02 Apr 2017) $ by $Author: schulte $
* $Revision: 15623 $
*
* ... |
.include "header.asm"
.include "snes.asm"
.include "MC_libks.asm"
.include "variable.asm"
.MACRO LKS_SPRITE_MOVE_SPD
clc
lda LKS_SPRITE.PX,x
adc LKS_SPRITE.VX,x
sta LKS_SPRITE.PX,x
clc
lda LKS_SPRITE.PY,x
adc LKS_SPRITE.VY,x
sta LKS_SPRITE.PY,x
.ENDM
.MACRO PAL_WRAM
lda #:\1
... |
; A322327: a(n) = A005361(n) * A034444(n) for n > 0.
; Submitted by Christian Krause
; 1,2,2,4,2,4,2,6,4,4,2,8,2,4,4,8,2,8,2,8,4,4,2,12,4,4,6,8,2,8,2,10,4,4,4,16,2,4,4,12,2,8,2,8,8,4,2,16,4,8,4,8,2,12,4,12,4,4,2,16,2,4,8,12,4,8,2,8,4,8,2,24,2,4,8,8,4,8,2,16
add $0,1
mov $1,1
mov $2,2
lpb $0
mov $3,$0
lpb $3
mo... |
; A293262: a(n) = floor(prime(n)*(e-2)).
; Submitted by Jon Maiga
; 1,2,3,5,7,9,12,13,16,20,22,26,29,30,33,38,42,43,48,50,52,56,59,63,69,72,73,76,78,81,91,94,98,99,107,108,112,117,119,124,128,130,137,138,141,142,151,160,163,164,167,171,173,180,184,188,193,194,198,201,203,210,220,223,224,227,237,242,249,250,253,257,263,... |
macro align value { db value-1 - ($ + value-1) mod (value) dup 0 }
HEADS = 1
SPT = 18 ;4 сектора по 512 байт
Begin:
file "boot.bin", 512
file "kernel.bin"
align 8192 ;16 секторов
align HEADS*SPT*512 |
; A052991: Expansion of (1-x-x^2)/(1-3x-x^2).
; 1,2,6,20,66,218,720,2378,7854,25940,85674,282962,934560,3086642,10194486,33670100,111204786,367284458,1213058160,4006458938,13232434974,43703763860,144343726554,476734943522,1574548557120
mov $1,1
lpb $0
sub $0,1
add $2,$1
add $1,$2
add $3,$1
mov $2,$3
mov $3... |
.386p
.387
include specnb.dat
assume cs:FLAT,ds:FLAT,es:FLAT,fs:FLAT,gs:FLAT,ss:FLAT
_TEXT segment para use32 public 'CODE'
include specnb.equ
ini_snb proc near
mov eax,5
mov ebx,offset FLAT:pnmac1496
mov ecx,offset FLAT:scale
mov edx,offset FLAT:zscale
push z_scale
call near ptr inisymb
... |
; A071188: Largest prime factor of number of divisors of n.
; 1,2,2,3,2,2,2,2,3,2,2,3,2,2,2,5,2,3,2,3,2,2,2,2,3,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,2,2,2,3,3,2,2,5,3,3,2,3,2,2,2,2,2,2,2,3,2,2,3,7,2,2,2,3,2,2,2,3,2,2,3,3,2,2,2,5,5,2,2,3,2,2,2,2,2,3,2,3,2,2,2,3,2,3,3,3
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the n... |
; was there a DO event ?
include win1_keys_wstatus
include win1_keys_qdos_pt
section utility
xdef xwm_done ; you DID it
;+++
; was there a DO event ?
; (it gets cleared)
;
; Entry Exit
; a1 status area preserved... |
; **************************************************
; *** VIRUS ITALIANO SALTITANTE - A LISTAGEM ***
; *** Desassemblagem obtida por Miguel Vitorino ***
; *** Para : S P O O L E R - Junho de 1989 ***
; **************************************************
.RADIX 16
jmpf macro x
db 0eah
... |
corelibPath:
.db "/lib/core", 0
windowTitle:
.db "KIMP: Welcome", 0
newImageTitle:
.db "KIMP: New Image", 0
newImageStr:
.db "New Image\n", 0
loadImageStr:
.db "Load Image\n", 0
backStr:
.db "Back", 0
quitStr:
.db "Exit", 0
size: ;Image size, will need to be configurable with new image screen at ... |
; A034832: a(n) = n-th sept-factorial number divided by 5.
; 1,12,228,5928,195624,7824960,367773120,19859748480,1211444657280,82378236695040,6178367752128000,506626155674496000,45089727855030144000,4328613874082893824000,445847229030538063872000,49043195193359187025920000,5738053837623024882032640000,711518675865255085... |
# load/store
mov r0, [m2]
mov [m1], r0
mov r0, 2
mov [m2], r0
halt
.data
m1:
data 1
m2:
data 99
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <main.h>
#include <wallet.h>
#include <txdb.h>
#include <kernel.h>
#inclu... |
; A266242: Numbers n such that the initial digit of the fractional part of n*Pi is 0.
; 0,36,43,50,57,64,71,78,85,92,99,106,149,156,163,170,177,184,191,198,205,212,219,262,269,276,283,290,297,304,311,318,325,332,375,382,389,396,403,410,417,424,431,438,445,488,495,502,509,516,523,530,537,544,551,558,601,608,615,622,629,... |
/*
ID: suzyzha1
PROG: shuttle
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
int n,ans[200];
struct State
{
char wood[25];
int empty,move,pre;
bool operator == (const State &b)
{
if(empty!=b.empty) return false;
if(strncmp(wood,b.wood,(n<<1)+1)==0) return true;
... |
; void zxn_read_mmu_state(uint8_t *dst)
SECTION code_clib
SECTION code_arch
PUBLIC zxn_read_mmu_state
EXTERN asm_zxn_read_mmu_state
defc zxn_read_mmu_state = asm_zxn_read_mmu_state
|
; A019333: Expansion of 1/((1-4x)(1-6x)(1-8x)).
; Submitted by Jamie Morken(s2)
; 1,18,220,2280,21616,194208,1685440,14290560,119232256,983566848,8047836160,65462691840,530198327296,4280634482688,34479631482880,277245459333120,2226418414452736,17862092934217728,143201285904793600,1147437816702566400,9190468809917464576... |
data segment
pctrl equ 0c803h
pc equ 0c802h
pb equ 0c801h
code1 db 0ffh,0ffh,0ffh,0ffh,99h,0b0h,0a4h,0f9h,80h,0f8h,82h,92h
data ends
code segment
assume cs:code,ds:data
start:mov ax,data
mov ds,ax
mov dx,pctrl
mov al,80h
out dx... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x11cbe, %r14
nop
nop
nop
nop
nop
add %rbp, %rbp
movups (%r14), %xmm4
vpextrq $0, %xmm4, %r11
nop
and %r13, %r13
lea addresses_D_ht+0x1c776, %rsi
lea addresses_UC_ht+0x1d2be, ... |
; int putc(int c, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _putc
EXTERN _fputc
defc _putc = _fputc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _putc
EXTERN _put... |
; stdio_in_d
; 05.2008 aralbrec
XLIB stdio_in_d
LIB stdio_incommon1, stdio_incommon2, asm_isdigit, stdio_ungetchar, stdio_inexit
; input %d parameter
;
; enter : ix = FILE *
; b = width
; c = flags [000a*WL0]
; hl = & parameter list
; bc' = total num chars rea... |
; void *esx_disk_stream_bytes(void *dst,uint16_t len)
SECTION code_esxdos
PUBLIC esx_disk_stream_bytes_callee
EXTERN asm_esx_disk_stream_bytes
esx_disk_stream_bytes_callee:
pop hl
pop de
ex (sp),hl
jp asm_esx_disk_stream_bytes
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _esx_disk_stream_bytes_ca... |
; $Id: xmmsaving-asm.asm $
;; @file
; xmmsaving - assembly helpers.
;
;
; Copyright (C) 2009-2015 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of th... |
; A132269: Product{k>=0, 1+floor(n/2^k)}.
; 1,2,6,8,30,36,56,64,270,300,396,432,728,784,960,1024,4590,4860,5700,6000,8316,8712,9936,10368,18200,18928,21168,21952,27840,28800,31744,32768,151470,156060,170100,174960,210900,216600,234000,240000,340956,349272,374616,383328,447120,457056,487296,497664,891800,910000,965328,9... |
// Copyright (c) 2012 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 "content/renderer/web_ui_bindings.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/memory/scoped_ptr.h"
#include "bas... |
; A010122: Continued fraction for sqrt(13).
; 3,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,... |
section .text
global gdt_load
gdt_load:
lgdt[esp+4]
mov ax,0x10
mov ds,ax
mov es,ax
mov fs,ax
mov gs,ax
mov ss,ax
jmp 0x08:flushcs
flushcs:
ret |
; A102901: a(n) = a(n-1) + 6a(n-2), a(0)=1, a(1)=0.
; 1,0,6,6,42,78,330,798,2778,7566,24234,69630,215034,632814,1923018,5719902,17258010,51577422,155125482,464590014,1395342906,4182882990,12554940426,37652238366,112981880922,338895311118,1016786596650,3050158463358,9150878043258,27451828823406,82357097082954,2470680700... |
# Taylor Thurlow
# CS 264 Spring 2017
# Cal Poly Pomona
# 4/21/2017
# Lab 1
.text
.globl main
main:
li $s0, 0 # start for loop iterator at 0
# the loop which grabs integer values from the console and
# stores them into the array
prompt_loop:
li $v0, 4 # syscall 4 is print string
la $a0, prompt # load addre... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes... |
; void bit_beep_di(uint16_t duration_ms, uint16_t frequency_hz)
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bit_beep_di
EXTERN l0_bit_beep_di_callee
_bit_beep_di:
pop af
pop hl
pop de
push de
push hl
push af
jp l0_bit_beep_di_callee
|
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Trace a relative line in the stencil vectors
;
; Stefano Bodrato - 08/10/2009
;
;
; $Id: w_stencil_add_liner.asm,v 1.2 2015/01/19 01:32:46 pauloscustodio Exp $
;
;; void stencil_add_liner(int dx, int dy... |
; void ba_priority_queue_clear(ba_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_ba_priority_queue
PUBLIC _ba_priority_queue_clear
EXTERN asm_ba_priority_queue_clear
_ba_priority_queue_clear:
pop af
pop hl
push hl
push af
jp asm_ba_priority_queue_clear
|
; lookup table for output format specifiers
; 05.2008 aralbrec
PUBLIC jumptbl_printf
; output format specifiers: "bcdeEfFiIMnopPsuxX"
; place most common first, library alternatives in comments
.jumptbl_printf
defb 'd', 195 ; signed integer
EXTERN stdio_out_ld ; stdio_out_d
defw st... |
; A274974: Centered octahemioctahedral numbers: a(n) = (4*n^3+24*n^2+8*n+3)/3.
; 1,13,49,117,225,381,593,869,1217,1645,2161,2773,3489,4317,5265,6341,7553,8909,10417,12085,13921,15933,18129,20517,23105,25901,28913,32149,35617,39325,43281,47493,51969,56717,61745,67061,72673,78589,84817,91365,98241
mov $2,$0
pow $0,2
mov... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;***************************************************
; CHARACTER FONT FILE
; Source Assembler File
;
; CODE PAGE: 860
; FONT RESOLUTION: 8 x... |
; A311914: Coordination sequence Gal.4.58.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,8,13,17,22,26,30,34,38,43,47,52,56,60,64,68,73,77,82,86,90,94,98,103,107,112,116,120,124,128,133,137,142,146,150,154,158,163,167,172,176,... |
/*
written by Pankaj Kumar.
country:-INDIA
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll ;
typedef vector<ll> vl;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef map<ll,ll> ml;
typedef set<char>sc;
typedef set<ll> sl;
#define pan cin.tie(0);cout.tie(0);ios_base::sync_with_stdio... |
; void *zx_aaddrcleft_fastcall(void *attraddr)
SECTION code_arch
PUBLIC _zx_aaddrcleft_fastcall
_zx_aaddrcleft_fastcall:
INCLUDE "arch/zx/display/z80/asm_zx_aaddrcleft.asm"
|
-- 7 Billion Humans --
-- 20: Reverse Line --
-- Size: 12/12 --
-- Speed: 13/13 --
step s
pickup c
step s
a:
if e == wall:
step n
b:
if w != hole and
w != datacube:
step w
jump b
endif
drop
end
endif
step e
jump a
|
LJMP START
ORG 100H
START:
CALL LCD_CLR
KLAWISZ:
CALL WAIT_KEY
MOV R2, A
CALL LCD_CLR
MOV A, R2
CALL HTB ;wysyłam 2 razy to samo, bo od razu zrobiłem jako podprogram
CALL WRITE_HEX
SJMP KLAWISZ
HTB:
MOV R0,#00h
MOV R1,#00h
CJNE ... |
; A259547: a(n) = n^4*Fibonacci(n).
; 0,1,16,162,768,3125,10368,31213,86016,223074,550000,1303049,2985984,6654713,14482832,30881250,64684032,133383037,271257984,544872101,1082400000,2128789026,4148908016,8019403537,15383789568,29306640625,55473687568,104384578338,195344438016,363704401349,673952400000,1243307693149,228... |
; size_t getline(char **lineptr, size_t *n, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _getline
EXTERN l0_getline_callee
_getline:
pop af
pop hl
pop de
pop bc
push... |
//===- MemDepPrinter.cpp - Printer for MemoryDependenceAnalysis -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <hxcpp.h>
#ifndef INCLUDED_Conductor
#include <Conductor.h>
#endif
#ifndef INCLUDED_KadeEngineData
#include <KadeEngineData.h>
#endif
#ifndef INCLUDED_KeyBinds
#include <KeyBinds.h>
#endif
#ifndef INCLUDED_Main
#include <Main.h>
#endif
#ifndef INCLUDED_flixel_FlxG
#include <flixel/FlxG.h>
#endif
#ifndef INCLU... |
; A085275: Sum of n-th composite number and its largest prime divisor.
; 6,9,10,12,15,15,21,20,18,21,25,28,33,27,30,39,30,35,35,34,44,51,42,39,57,52,45,49,55,50,69,51,56,55,68,65,57,66,63,76,87,65,93,70,66,78,77,85,92,77,75,111,80,95,88,91,85,84,123,91,102,129,116,99,95,104,115,124
seq $0,72668 ; Numbers one less than... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017 The PIVX developers
// Copyright (c) 2019 The BitCoin ONE developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.p... |
;
; Copyright 2018-2021 Mahdi Khanalizadeh
;
; 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 t... |
; A175074: Nonprimes b with result 1 under iterations of {r mod (max prime p < r)} starting at r = b.
; 1,4,6,8,10,12,14,16,18,20,22,24,26,27,30,32,34,35,38,40,42,44,46,48,50,51,54,56,57,60,62,64,65,68,70,72,74,76,77,80,82,84,86,87,90,92,93,95,98,100,102
mov $4,$0
mul $0,2
lpb $0
mov $1,$0
cal $1,7917 ; Version 1 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x251c, %rsi
nop
nop
nop
sub %r15, %r15
movl $0x61626364, (%rsi)
nop
dec %rbp
lea addresses_normal_ht+0xe23a, %rsi
lea addresses_normal_ht+0xed0a, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop... |
; A001812: Coefficients of Laguerre polynomials.
; 1,36,882,18816,381024,7620480,153679680,3161410560,66784798080,1454424491520,32724551059200,761589551923200,18341615042150400,457129482588979200,11787410229615820800,314330939456421888000,8663746518767628288000,246661959710796005376000,7249120927056171491328000,2197628... |
//===-- Host.cpp - Implement OS Host Concept --------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
* Copyright (c) 2010 ACCESS CO., LTD. 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 ... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
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 ... |
;Ionian (major) : R,W,W,H,W,W,W
;Dorian : R,W,H,W,W,W,H
;Phrygian : R,H,W,W,W,H,W
;Lydian : R,W,W,W,H,W,W
;Mixolydian : R,W,W,H,W,W,H
;Aeolian (minor) : R,W,H,W,W,H,W
;Melodic Minor : R,W,H,W,W,W,W
;Harmonic Minor : R,W,H,W,W,H,W+
;Locrian : R,H,W,W,H,W,W
;Whole Tone : R,W,W,W,W,W,W
;Gypsy : R,W,H,W+,H,H,W+
;Pentat... |
// Copyright 2015 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/ash/arc/auth/arc_auth_service.h"
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/command_line.h"
#in... |
save_rcx textequ <mov [rsp+16], rcx>
save_rdx textequ <mov [rsp+24], rdx>
save_r8 textequ <mov [rsp+32], r8>
save_r9 textequ <mov [rsp+48], r9>
restore_rcx textequ <mov rcx, [rsp+@LOCAL_SIZE+16]>
restore_rdx textequ <mov rdx, [rsp+@LOCAL_SIZE+24]>
restore_r8 textequ <mov r8, [rsp+@LOCAL_SIZE+32]>
restore_r9 textequ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1306e, %r12
nop
nop
sub $29226, %rdx
movb (%r12), %r10b
nop
add %r14, %r14
lea addresses_A_ht+0x1e08e, %r11
nop
dec %r12
mov (%r11), %rax
nop
nop
nop
nop
nop
inc %... |
; A241031: Sum of n-th powers of divisors of 28.
; Submitted by Christian Krause
; 6,56,1050,25112,655746,17766056,489541650,13599182072,379283617986,10599157616456,296486304875250,8297561014164632,232274972859656226,6502905234227329256,182070232515259616850,5097810928082584052792,142736527933249981742466,3996592290086... |
; ------------------------------------------------------------------
; MichalOS PC Speaker PCM Demo
;
; WARNING: This demo uses the top 1.44 MB of a 2.88 MB disk.
; It is not possible to run this demo from a 1.44 MB floppy disk.
; Use the "build-linux.sh" build script, then run the following:
; > dd if=audio.raw of=dis... |
; sp1_DrawUpdateStructAlways(struct sp1_update *u)
SECTION code_temp_sp1
PUBLIC _sp1_DrawUpdateStructAlways
_sp1_DrawUpdateStructAlways:
pop af
pop hl
push hl
push af
INCLUDE "temp/sp1/zx/updater/asm_sp1_DrawUpdateStructAlways.asm"
|
// -!- C++ -!- //////////////////////////////////////////////////////////////
//
// System :
// Module :
// Object Name : $RCSfile$
// Revision : $Revision$
// Date : $Date$
// Author : $Author$
// Created By : Robert Heller
// Created : Fri Mar 1 10:46:51 2019
//... |
var1: defl 2.0
|
[bits 16]
[org 0x0000]
start:
; enabling A20 - based on http://wiki.osdev.org/A20_Line
; note: A20 activated by Bochs by default
mov ax, 0x2401
int 0x15
; http://wiki.osdev.org/A20_Line
; Use BIOS to turn on A20
; mov ax, 0x2401
; int 0x15
; Use fast A20 gate
in al, 0x92
or al, 2
... |
#ifndef DIRMIX_HPP_7386031B_A22B_4851_8BC6_24E90C9798D5
#define DIRMIX_HPP_7386031B_A22B_4851_8BC6_24E90C9798D5
#pragma once
/*
dirmix.hpp
Misc functions for working with directories
*/
/*
Copyright © 1996 Eugene Roshal
Copyright © 2000 Far Group
All rights reserved.
Redistribution and use in source and binary form... |
; this is set inside randomizer application
; org $1AFBBB ;Increases chance of getting enemies under random bush
; db $01, $0F, $0F, $0F, $0F, $0F, $0F, $12
; db $0F, $01, $0F, $0F, $11, $0F, $0F, $03
; sprite_bush_spawn_table:
; {
; ; SPRITE DATA TABLE GENERATED BY ENEMIZER
; .overworld
; ; Skip 0x80(ove... |
dnl AMD64 mpn_add_err2_n, mpn_sub_err2_n
dnl Contributed by David Harvey.
dnl Copyright 2011 Free Software Foundation, Inc.
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 modify
dnl it under the terms of either:
dnl
dnl * the GNU Less... |
#pragma once
#include "SpawnController.h"
#include "GameObjectFactory.h"
#include "GameScreen.h"
#include "Quadtree.h"
#include "NumberUtility.h"
#include "Map.h"
#include "StatsController.h"
#include "Zombie.h"
#include "BadassZombie.h"
bool SpawnController::IsFinished()
{
int kills = statsController->GetKills();
if... |
#include <stdio.h>
#include <iostream>
#include "ArgumentParser.h"
#include "Log.h"
#include <vector>
#include <map>
#include "itkImageRegionIterator.h"
#include "TransformationUtils.h"
#include "ImageUtils.h"
#include "FilterUtils.hpp"
#include <sstream>
#include "ArgumentParser.h"
#include <fstream>
#include <sys/st... |
; A058896: a(n) = 4^n - 4.
; -3,0,12,60,252,1020,4092,16380,65532,262140,1048572,4194300,16777212,67108860,268435452,1073741820,4294967292,17179869180,68719476732,274877906940,1099511627772,4398046511100,17592186044412,70368744177660,281474976710652,1125899906842620,4503599627370492,18014398509481980,72057594037927932,... |
#include "constants.hpp"
#include <iostream>
int main(int argc, const char* argv[]) {
std::cout << "get_user_configuration_directory: " << krbn::constants::get_user_configuration_directory() << std::endl;
std::cout << "get_user_complex_modifications_assets_directory: " << krbn::constants::get_user_complex_modifica... |
; 0: Test VBL
; 1: Test Reg12/13
TEST034 EQU 0
; http://quasar.cpcscene.net/doku.php?id=coding:test_crtc
; Il faudrait tester le CRTC4 aussi, car il faudrait le patcher aussi
; Pour le CRTC2 par contre...
TestCRTC:
if PATCH_MODE==2
print "Pas de Patch CRTC"
else
if PATCH_MODE==0
; Test si CRTC 1 ou 2
if TEST03... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.