text stringlengths 1 1.05M |
|---|
; A212272: a(n) = Fibonacci(n) + n^3.
; 0,2,9,29,67,130,224,356,533,763,1055,1420,1872,2430,3121,3985,5083,6510,8416,11040,14765,20207,28359,40824,60192,90650,138969,216101,339763,538618,859040,1376060,2211077,3560515,5742191,9270340,14977008,24208470,39143041,63305305,102398155,165649062,267988384,433573944,701493917,... |
; A211613: Number of ordered triples (w,x,y) with all terms in {-n,...-1,1,...,n} and w+x+y>1.
; 0,1,20,78,199,407,726,1180,1793,2589,3592,4826,6315,8083,10154,12552,15301,18425,21948,25894,30287,35151,40510,46388,52809,59797,67376,75570,84403,93899,104082,114976,126605,138993,152164,166142,180951,196615,213158,230604,... |
MOV A,#0
MOV 0xF0,#0x08
START0:
SETB 0xE0
RL A
DJNZ 0xF0,START0
MOV A,#0
MOV 0xF0,#0x08
START1:
SETB 0xE1
RL A
DJNZ 0xF0,START1
MOV A,#0
MOV 0xF0,#0x08
START2:
SETB 0xE2
RL A
DJNZ 0xF0,START2
MOV A,#0
MOV 0xF0,#0x08
START3:
SETB 0xE3
RL A
DJNZ 0xF0,START3
MOV A,#0
MOV 0xF0,#0... |
; A269130: a(n) = n + (n base 2 regarded as a decimal number).
; 0,2,12,14,104,106,116,118,1008,1010,1020,1022,1112,1114,1124,1126,10016,10018,10028,10030,10120,10122,10132,10134,11024,11026,11036,11038,11128,11130,11140,11142,100032,100034,100044,100046,100136,100138,100148,100150,101040,101042,101052,101054,101144,10... |
;/////////////////////////////////// friday sectoriate ///////////////////////////////
;
;
;
;
; dont ask further questions but you can email ur
; damns, criticisms,and of course ur gf booby pic
; fakedminded[at]coolgoose[point]com
; ... |
;*************************************************************************
; arch/z80/src/z180/z180_saveusercontext.asm
;
; 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 copyrigh... |
; MIT License - Copyright 2020
; David Reguera Garcia aka Dreg - dreg@fr33project.org
; -
; http://github.com/David-Reguera-Garcia-Dreg/ - http://www.fr33project.org/
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to... |
#include <map>
#include <iostream>
#include <vector>
using namespace std;
map<char,vector<char> > dict;
map<char, bool> vis;
bool solve(char start, char end){
if(start == end){
return true;
}
if(vis[start]){
return false;
}
vis[start] = true;
for(auto &b: dict[start]){
... |
; A082206: Digit sum of A082205(n).
; 1,4,7,10,11,14,17,18,21,24,25,28,31,32,35,38,39,42,45,46,49,52,53,56,59,60,63,66,67,70,73,74,77,80,81,84,87,88,91,94,95,98,101,102,105,108,109,112,115,116,119,122,123,126,129,130,133,136,137,140,143,144
mov $1,$0
mov $3,$0
mov $0,76
sub $1,1
lpb $0
mov $0,0
div $1,3
add $3,1... |
#include "stdafx.h"
#include "Tree.h"
using namespace Expressions;
struct Tree::EmitContext
{
CStringA& result;
bool haveRandom = false;
EmitContext( CStringA& hlsl ) :
result( hlsl )
{
result = "";
result.Preallocate( 1024 );
}
void lineBegin()
{
for( int i = 0; i < indent; i++ )
result += '\t';
... |
; A158312: 400n^2 + 2n.
; 402,1604,3606,6408,10010,14412,19614,25616,32418,40020,48422,57624,67626,78428,90030,102432,115634,129636,144438,160040,176442,193644,211646,230448,250050,270452,291654,313656,336458,360060,384462,409664,435666,462468,490070,518472,547674,577676,608478,640080,672482,705684,739686,774488,810090... |
; A168964: Number of reduced words of length n in Coxeter group on 47 generators S_i with relations (S_i)^2 = (S_i S_j)^22 = I.
; 1,47,2162,99452,4574792,210440432,9680259872,445291954112,20483429889152,942237774900992,43342937645445632,1993775131690499072,91713656057762957312,4218828178657096036352,1940660962182264176... |
;;
;; Copyright (c) 2021, 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 the ... |
# print a simple string on terminal
#
#
.data
myMessage: .asciiz "Hello World \n"
.text
main:
li $v0, 4 # code to print an string
la $a0, myMessage # load address to start to print
syscall
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 8c
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
ld a, b
inc a
inc a
ldff(45), a
ld c, 0f
xor a, a
... |
; A155656: 9^n+7^n-1.
; 1,15,129,1071,8961,75855,649089,5606511,48811521,427774095,3769259649,33358386351,296270823681,2638754838735,23555015527809,210638693604591,1886253119421441,16909812213653775,151723048894909569
mov $1,7
pow $1,$0
mov $2,9
pow $2,$0
add $1,$2
mov $0,$1
sub $0,1
|
; A249076: a(n) = (n*(n+1))^6.
; 0,64,46656,2985984,64000000,729000000,5489031744,30840979456,139314069504,531441000000,1771561000000,5289852801024,14412774445056,36343632130624,85766121000000,191102976000000,404961208827904,820972403643456,1600135042849344,3010936384000000,5489031744000000
mov $1,$0
pow $0,2
add $1,$... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x103a9, %r11
nop
cmp $4864, %r8
mov (%r11), %cx
nop
inc %rax
lea addresses_WT_ht+0xac01, %rdi
nop
nop
nop
nop
add %r12, %r12
mov (%rdi), %r14d
sub $58718, %rdi
lea address... |
;
;
;
ds08 lda #$66 ; min block size 282*5/4 -256=85
;
sta dtrck
;
ldx sectr ; total bytes= min*#secors
ldy #0
tya
;
ds10 clc ; min*#sectors
adc dtrck
bcc ds14
;
iny
;
ds14 iny
dex
bne ds10
;
eor #... |
#include "envoy/registry/registry.h"
#include "envoy/server/filter_config.h"
#include "test/test_common/utility.h"
#include "gtest/gtest.h"
namespace Envoy {
namespace Extensions {
namespace ListenerFilters {
namespace OriginalDst {
namespace {
// Test that the deprecated extension name still functions.
TEST(Origin... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// This test only works with the GPU backend.
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkColor.h"
#i... |
; A010553: a(n) = tau(tau(n)).
; 1,2,2,2,2,3,2,3,2,3,2,4,2,3,3,2,2,4,2,4,3,3,2,4,2,3,3,4,2,4,2,4,3,3,3,3,2,3,3,4,2,4,2,4,4,3,2,4,2,4,3,4,2,4,3,4,3,3,2,6,2,3,4,2,3,4,2,4,3,4,2,6,2,3,4,4,3,4,2,4,2,3,2,6,3,3,3,4,2,6,3,4,3,3,3,6,2,4,4,3
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
seq $... |
/*
* 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 ma... |
#include "controls.h"
void CWindowControls::InitializeSlider() {
HINSTANCE hInstance = *this->m_lpWindow->GetInstanceHandle();
HWND hWnd = *this->m_lpWindow->GetWindowHandle();
this->m_hWndSlider = CreateWindowExW(0, TRACKBAR_CLASSW, L"Progress Control", WS_CHILD | WS_VISIBLE | TBS_AUTOTICKS | TBS_ENABLESELRANGE,... |
; Copyright 2019 Google LLC
;
; 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.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, ... |
; Object Mappings Subtype Frame Arttile
dbglistobj Obj_Ring, Map_Ring, 0, 0, make_art_tile(ArtTile_Ring,1,1)
dbglistobj Obj_Monitor, Map_Monitor, 6, 0, make_art_tile(ArtTile_Monitors,0,0)
dbglistobj Obj_PathSwap, Map_PathSwap, 9, 1, make_art_tile(ArtTile_Ring,1,0)
dbglistobj Obj_PathSwap... |
; A094002: a(n+3) = 3*a(n+2) - 2*a(n+1) + 1 with a(0)=1, a(1)=5.
; 1,5,14,33,72,151,310,629,1268,2547,5106,10225,20464,40943,81902,163821,327660,655339,1310698,2621417,5242856,10485735,20971494,41943013,83886052,167772131,335544290,671088609,1342177248,2684354527,5368709086,10737418205,21474836444,42949672923,858993458... |
LoadOverworldMonIcon:
ld a, e
call ReadMonMenuIcon
ld l, a
ld h, 0
add hl, hl
ld de, IconPointers
add hl, de
ld a, [hli]
ld e, a
ld d, [hl]
ld b, BANK(Icons)
ld c, 8
ret
LoadMenuMonIcon:
push hl
push de
push bc
call .LoadIcon
pop bc
pop de
pop hl
ret
.LoadIcon:
ld d, 0
ld hl, .Jumptable
add hl... |
; Copyright Oliver Kowalke 2009.
; Distributed under the Boost Software License, Version 1.0.
; (See accompanying file LICENSE_1_0.txt or copy at
; http://www.boost.org/LICENSE_1_0.txt)
; ----------------------------------------------------------------------------------
; | 0 |... |
;
; TITLE 'XMODEM ver. 12.5 - 07/13/86'
;
; XMDM125.ASM - REMOTE CP/M FILE TRANSFER PROGRAM
;
; Originally adapted from Ward Christensen's MODEM2
; by Keith Petersen, W8SDZ
;
; ASEG ;Needed by M80 assemblers, comment out if using MAC
;
; This program allows a remote user to transfer files (to or from) R... |
; A108103: Fixed point of the square of the morphism: 1->3, 2->1, 3->121, starting with 1.
; 1,2,1,3,1,2,1,3,1,3,1,2,1,3,1,2,1,3,1,3,1,2,1,3,1,3,1,2,1,3,1,2,1,3,1,3,1,2,1,3,1,2,1,3,1,3,1,2,1,3,1,3,1,2,1,3,1,2,1,3,1,3,1,2,1,3,1,3,1,2,1,3,1,2,1,3,1,3,1,2,1,3,1,2,1,3,1,3,1,2,1,3,1,3,1,2,1,3,1,2
mov $3,2
mov $5,$0
lpb $3
... |
#include <iostream>
#include <cstring>
#include "musica.hpp"
#include "node.hpp"
#include "lista.hpp"
#include "playlist.hpp"
// Construtor
Playlist::Playlist(){
playlist = new Lista;
proxima = 0;
}
// Construtor cópia
Playlist::Playlist(Playlist const &playlist){
// Inicializa os atributos
this... |
#ruledef test
{
ld {x: u8} => 0x55 @ x
}
ld 0xff ; = 0x55ff |
; A028429: Clog sequence in base 8. Right to left concatenation of n, int(log_8(n)),int(log_8(int(log_8(n)))),... in base8.
; 1,2,3,4,5,6,7,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,... |
PROGRAM 60
LDGADDR 4
LDCINT 1
STOREW
LDGADDR 8
LDCINT 2
STOREW
LDGADDR 12
LDCINT 1
STOREW
LDGADDR 16
LDCINT 2
STOREW
LDGADDR 20
LDCINT 1
STOREW
LDGADDR 24
LDCINT 2
STOREW
LDGADDR 28
LDCINT 1
STOREW
LDGADDR 32
LDCINT 2
STOREW
LDGADDR 36
LDC... |
; A054541: Sum of first n terms equals n-th prime.
; 2,1,2,2,4,2,4,2,4,6,2,6,4,2,4,6,6,2,6,4,2,6,4,6,8,4,2,4,2,4,14,4,6,2,10,2,6,6,4,6,6,2,10,2,4,2,12,12,4,2,4,6,2,10,6,6,6,2,6,4,2,10,14,4,2,4,14,6,10,2,4,6,8,6,6,4,6,8,4,8,10,2,10,2,6,4,6,8,4,2,4,12,8,4,8,4,6
sub $0,1
trn $1,$0
max $0,0
seq $0,1223 ; Prime gaps: diffe... |
/*
* Copyright 2008-2012 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... |
; A253109: a(n) = n ^ (Fibonacci(n) mod n).
; Submitted by Jamie Morken(s1)
; 1,2,9,64,1,36,117649,32768,4782969,100000,11,1,23298085122481,793714773254144,576650390625,17592186044416,48661191875666868481,3570467226624,19,3200000,4084101,22,907846434775996175406740561329,1,1,236773830007967588876795164938469376
mov $1... |
; A295622: Number of nonequivalent dissections of an n-gon into 3 polygons by nonintersecting diagonals rooted at a cell up to rotation.
; 3,11,24,46,75,117,168,236,315,415,528,666,819,1001,1200,1432,1683,1971,2280,2630,3003,3421,3864,4356,4875,5447,6048,6706,7395,8145,8928,9776,10659,11611,12600,13662,14763,15941,1716... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1256, %rsi
lea addresses_WC_ht+0x12856, %rdi
nop
nop
nop
cmp $24746, %rdx
mov $83, %rcx
rep movsb
nop
nop
nop
nop
nop
add %r9, %r9
lea addresses_A_ht+0x1bed6, %rsi
lea addresses_UC... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
.code
; void AVX2_Packed_Permute_Float_(YmmVal * src, YmmVal * des, YmmVal * indexes)
AVX2_Packed_Permute_Float_ proc
vmovaps ymm0, ymmword ptr [rcx] ; src
vmovdqa ymm1, ymmword ptr [r8] ; indexes
; Rearrange the items in src according to the indexes control.
; The register is divided in half and each half has a ind... |
; A140545: Primes of form 17n + 6.
; Submitted by Jon Maiga
; 23,193,227,397,431,499,601,839,907,941,1009,1213,1451,1553,1621,1723,2029,2063,2131,2267,2437,2539,2777,2879,3049,3083,3253,3389,3457,3491,3559,3593,3797,3967,4001,4273,4409,4783,4817,4919,4987,5021,5531,5701,5939,6007,6143,6211,6449,6551,6619,6653,6823,6857... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
/* ************************************************************************
* Copyright 2015 Vratis, 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/lice... |
#include <common.hpp>
#include "net/server.hpp"
#include <csignal>
#include <atomic>
#include <string>
#include <iostream>
#include <boost/program_options.hpp>
#define DEFAULT_THREAD_COUNT 1
static std::sig_atomic_t signal_code(0);
/**
* \brief Handler for process signals.
*/
void term_handler(int code) {
if(sign... |
// Copyright 2021 Google LLC
//
// 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 w... |
; A155609: a(n) = 4^n - 3^n + 1.
; 1,2,8,38,176,782,3368,14198,58976,242462,989528,4017158,16245776,65514542,263652488,1059392918,4251920576,17050729022,68332056248,273715645478,1096024843376,4387586157902,17560804984808,70274600998838
mov $1,4
pow $1,$0
mov $2,3
pow $2,$0
sub $1,$2
add $1,1
|
// RUN: %clangxx_asan -DWAIT3 -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -DWAIT3 -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -DWAIT3_RUSAGE -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -DWAIT3_RUSAGE -O3 %s -o %t && not %run %t 2>&1 | FileCh... |
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include "likely.hpp"
#include "cfg_lnast.hpp"
Cfg_parser::Cfg_parser():top_module_name("INVALID"), line_num(0), line_tkcnt(1) {
;
}
Cfg_parser::Cfg_parser(std::string_view f): top_module_name(get_module_name(f)), line_num(0), li... |
; A028202: Expansion of 1/((1-6x)(1-7x)(1-8x)(1-11x)).
; Submitted by Christian Krause
; 1,32,647,10582,153153,2049684,26010139,317905634,3781590725,44096537056,506668749951,5757875493006,64896612687817,726942456592748,8105282135259683,90059836210434298,998087763949942029
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$... |
// Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_massive_munit_client_ExternalPrintClient
#include <massive/munit/client/ExternalPrintClient.h>
#endif
#ifndef INCLUDED_massive_munit_client_ExternalPr... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
ld a, 02
ldff(ff), a
ld a, 01
ldff(43... |
%include "const.inc"
%include "config.inc"
org 0x7c00
[bits 16]
align 16
entry:
mov ax, cs
mov ds, ax
mov ss, ax
mov sp, 0
mov ax, 0xb800
mov es, ax
call clean_screen
;show 'BOOT'
mov byte [es:0],'B'
mov byte [es:1],0x07
mov byte [es:2],'O'
mov byte [es:3],0x07
mov byte [es:4],'O'
mov byte [es:5],0... |
; A156841: 529n^2 - 312n + 46.
; 46,263,1538,3871,7262,11711,17218,23783,31406,40087,49826,60623,72478,85391,99362,114391,130478,147623,165826,185087,205406,226783,249218,272711,297262,322871,349538,377263,406046,435887,466786,498743,531758,565831,600962,637151,674398,712703,752066,792487,833966,876503,920098,964751,10... |
; Copyright (C) 2019 Philippe Aubertin.
; 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
; notice, this list of condition... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/motif/popupwin.cpp
// Purpose: wxPopupWindow implementation
// Author: Mattia barbon
// Modified by:
// Created: 28.08.03
// RCS-ID: $Id$
// Copyright: (c) Mattia barbon
// Licence: wxWindows licenc... |
; A011917: [ n(n-1)(n-2)(n-3)/7 ].
; 0,0,0,0,3,17,51,120,240,432,720,1131,1697,2451,3432,4680,6240,8160,10491,13289,16611,20520,25080,30360,36432,43371,51257,60171,70200,81432,93960,107880,123291,140297,159003,179520,201960,226440,253080,282003,313337,347211,383760,423120,465432,510840,559491,611537,667131,726432,78960... |
; A166923: Digital root of prime(n)^2.
; 4,9,7,4,4,7,1,1,7,4,7,1,7,4,4,1,7,4,7,1,1,4,4,1,4,4,7,1,1,7,1,7,4,7,7,4,7,1,7,4,1,1,4,7,1,1,7,4,4,7,1,7,4,1,7,4,1,1,4,4,7,7,1,7,4,4,4,7,7,4,4,1,4,7,1,7,4,1,7,7,7,4,1,1,4,4,1,4,4,7,1,4,1,7,7,1,7,1,1,1
seq $0,138689 ; Numbers of the form 26+p^2 (where p is a prime).
mod $0,9
add ... |
; A129806: Primes congruent to +-5 mod 18.
; Submitted by Jon Maiga
; 5,13,23,31,41,59,67,103,113,131,139,149,157,167,193,211,229,239,257,283,293,311,337,347,373,383,401,409,419,463,491,499,509,563,571,599,607,617,643,653,661,733,743,751,761,769,787,797,823,859,877,887,941,967,977,1013,1021,1031,1039,1049,1093,1103,112... |
; int isascii(int c)
SECTION code_ctype
PUBLIC _isascii
EXTERN _isascii_fastcall
_isascii:
pop af
pop hl
push hl
push af
jp _isascii_fastcall
|
; A007584: 9-gonal (or enneagonal) pyramidal numbers: a(n) = n*(n+1)*(7*n-4)/6.
; 0,1,10,34,80,155,266,420,624,885,1210,1606,2080,2639,3290,4040,4896,5865,6954,8170,9520,11011,12650,14444,16400,18525,20826,23310,25984,28855,31930,35216,38720,42449,46410,50610,55056,59755,64714,69940,75440,81221,87290,93654,100320,10729... |
#include "Autom.h"
using namespace autom;
AUTOM_NATIVE_FUNC(cmake_bridge){
return nullptr;
}; |
; A168861: Number of reduced words of length n in Coxeter group on 40 generators S_i with relations (S_i)^2 = (S_i S_j)^20 = I.
; 1,40,1560,60840,2372760,92537640,3608967960,140749750440,5489240267160,214080370419240,8349134446350360,325616243407664040,12699033492898897560,495262306223057004840,19315229942699223188760
... |
; avr-pwm-asm
; Author : Sergei Zimmerman
;
; Date: 14-11-2021
.include "tn24Adef.inc"
.include "specs.inc"
.include "macro.inc"
.include "buz.inc"
.include "btn.inc"
.include "adc.inc"
.dseg
.org SRAM_START
state: .byte 1
.include "interrupt_vector_table.inc"
_reset:
clr r1
set_stack [RAMEND]
; Initia... |
# *** I/O Address Table ***
# Data Memory 0x0000_0000 - 0x0000_2fff
# Timer0 0x0000_7f00 - 0x0000_7f0b
# UART 0x0000_7f20 - 0x0000_7f3b
# Digital Tube 0x0000_7f40 - 0x0000_7f47
# Dip Switch 0x0000_7f50 - 0x0000_7f57
# Button Key 0x0000_7f58 - 0x0000_7f5b
# LED 0x0000... |
; A052768: A simple grammar.
; 0,0,0,0,0,120,360,840,1680,3024,5040,7920,11880,17160,24024,32760,43680,57120,73440,93024,116280,143640,175560,212520,255024,303600,358800,421200,491400,570024,657720,755160,863040,982080,1113024
bin $0,4
lpb $0,1
bin $0,2
lpe
mov $1,$0
mul $1,24
|
//
// Copyright (c) 2008-2017 the Urho3D project.
//
// 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, m... |
db 0 ; species ID placeholder
db 100, 100, 80, 50, 60, 60
; hp atk def spd sat sdf
db ICE, GROUND ; type
db 75 ; catch rate
db 160 ; 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/piloswine/f... |
; A020527: 2nd Bernoulli polynomial evaluated at powers of 2 (multiplied by 6).
; 1,13,73,337,1441,5953,24193,97537,391681,1569793,6285313,25153537,100638721,402604033,1610514433,6442254337,25769410561,103078428673,412315287553,1649264295937,6597063475201,26388266483713,105553091100673,422212414734337,1688849759600641,... |
;dec to binary
mvi a,24
loop: sui 2
inr c
cpi 2
jnc loop
mov d,a
mov a,c
rlc
rlc
rlc
rlc
ora d
hlt |
BITS 16
ORG 0x7C00
%include "src/boot/structures.asm"
stage1:
cli
xor ax, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
jmp 0x0000:.cs_jmp
.cs_jmp:
mov sp, 0x9000
mov [DRIVE], dl
; Enable A20
in al, 0x92
or al, 2
out 0x92, al
; Store the FAT32 partition offset
m... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "MclrReset.inc"
#include "TestFixture.inc"
radix decimal
BorDisabledTest code
global testArrange
testArrange:
banksel PCON
movlw 0xff
movwf PCON
testAct:
fcall initialiseAfterMclrReset
testAssert:
banksel PCON
.assert "(pcon & 0x10) == 0, 'SBOREN... |
db 0 ; species ID placeholder
db 45, 50, 55, 30, 75, 65
; hp atk def spd sat sdf
db GRASS, POISON ; type
db 255 ; catch rate
db 78 ; 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/oddish/fr... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
/*
* Decode Intra_8x8 macroblock
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
// Kernel name: Intra_8x8.... |
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/overlay9_0", 0219E3E0h
; This patch starts the player with the Tower Key in Julius mode.
; This is so the player doesn't get softlocked by the randomizer in Julius mode.
.org 0x021F6280
; Give all 5 magic seals (simplified version of the original code that was... |
; Copyright 2015-2020 Matt "MateoConLechuga" Waltz
;
; 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 notice,
; this list of conditions and the fol... |
// from https://wiki.nesdev.com/w/index.php/PPU_palettes
macro pack_rgb(r, g, b, a) {
dh ((({r}*32+16)/256)<<11)|((({g}*32+16)/256)<<6)|((({b}*32+16)/256)<<1)|{a}
}
rgb_palette_lut:
pack_rgb( 84, 84, 84, 1) // 00
pack_rgb( 0, 30, 116, 1) // 01
pack_rgb( 8, 16, 144, 1) // 02
pack_rgb( 48, 0, 136, 1) // 03
... |
; A218132: Number of length 9 primitive (=aperiodic or period 9) n-ary words.
; 0,0,504,19656,262080,1953000,10077480,40353264,134217216,387419760,999999000,2357946360,5159778624,10604497176,20661044040,38443356000,68719472640,118587871584,198359284536,322687690920,511999992000,794280037320,1207269207144,1801152649296,... |
; A080584: A run of 3*2^n 0's followed by a run of 3*2^n 1's, for n=0, 1, 2, ...
; 0,0,0,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0
div $0,3
lpb $0
div $0,2
sub $0,... |
; Identical to lesson 13's boot sector, but the %included files have new paths
[org 0x7c00]
KERNEL_OFFSET equ 0x1000 ; The same one we used when linking the kernel
mov [BOOT_DRIVE], dl ; Remember that the BIOS sets us the boot drive in 'dl' on boot
mov bp, 0x9000
mov sp, bp
mov bx, MSG_REAL_MODE
c... |
// Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_ALGORITHM_CODING_ZLIB_ISTREAM_HPP
#define INCLUDED_SROOK_ALGORITHM_CODING_ZLIB_ISTREAM_HPP
#include <srook/algorithm/coding/zlib/config.hpp>
#include <srook/algorithm/coding/zlib/istreambuf.hpp>
#include <srook/memory.hpp>
#inclu... |
//===--- ToolChains.cpp - ToolChain Implementations -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A033040: Numbers all of whose base 15 digits are odd.
; 1,3,5,7,9,11,13,16,18,20,22,24,26,28,46,48,50,52,54,56,58,76,78,80,82,84,86,88,106,108,110,112,114,116,118,136,138,140,142,144,146,148,166,168,170,172,174,176,178,196,198,200,202,204
mov $5,1
mov $6,$0
lpb $0
sub $0,6
add $0,$5
trn $0,1
add $2,3
mov $... |
;---------------------------------------------------------------;
; ;
; Banchor ;
; Anazar Demon Routines ;
; ... |
; A125831: a(n) = (5^n - 1)/2.
; 0,2,12,62,312,1562,7812,39062,195312,976562,4882812,24414062,122070312,610351562,3051757812,15258789062,76293945312,381469726562,1907348632812,9536743164062,47683715820312,238418579101562,1192092895507812,5960464477539062,29802322387695312,149011611938476562,745058059692382812,372529029... |
; A172064: Expansion of (2/(3*sqrt(1-4*z)-1+4*z))*((1-sqrt(1-4*z))/(2*z))^k with k=7.
; Submitted by Jamie Morken(s3)
; 1,8,46,230,1068,4744,20476,86662,361711,1494384,6126818,24972326,101320712,409609664,1651162688,6640469816,26655382802,106830738224,427612715516,1709790470780,6830461107736,27266848437608,108780114077... |
; A117861: Number of palindromes of length n (in base 9).
; 8,8,72,72,648,648,5832,5832,52488,52488,472392,472392,4251528,4251528,38263752,38263752,344373768,344373768,3099363912,3099363912,27894275208,27894275208,251048476872,251048476872,2259436291848,2259436291848,20334926626632,20334926626632,183014339639688,183014... |
; PRINT THE SUM OF AN ARITHMATIC SERIES
; 1 + 2 + 3 + 4 + 5 + ........ = SUM
.MODEL SMALL
.STACK 100H
.CODE
MAIN PROC
MOV AL, '0' ; HOLDS SUM
MOV AH, '1' ; HOLDS X .i.e X = 1
MOV BL, 1 ; HOLDS I .i.e I = 0
MOV BH, 3 ; HOLDS N=10
MOV CL, '1' ; HOLDS COMMON DIFFERENCE ... |
; A019560: Coordination sequence for C_4 lattice.
; 1,32,192,608,1408,2720,4672,7392,11008,15648,21440,28512,36992,47008,58688,72160,87552,104992,124608,146528,170880,197792,227392,259808,295168,333600,375232,420192,468608,520608,576320,635872,699392,767008,838848,915040,995712,1080992,1171008,1265888,1365760,1470752,1... |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_mulu_16_16x8
; compute: hl = hl * e
; alters : af, bc, de, hl
IF __CPU_Z180__ && ((__CLIB_OPT_IMATH = 0) || (__CLIB_OPT_IMATH = 100))
EXTERN l_z180_mulu_16_16x8
defc l_mulu_16_16x8 = l_z180_mulu_16_16x8 - 1
ELSE
IF __CPU_Z80... |
; A039985: An example of a d-perfect sequence.
; 1,1,0,0,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,1,1,1,1,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,1,1,1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1
lpb $0
mov $2,$0
add $0,2
mod $0,3
seq $2,39983 ; An example o... |
; A074784: a(n) = a(n-1) + square of the sum of digits of n.
; 1,5,14,30,55,91,140,204,285,286,290,299,315,340,376,425,489,570,670,674,683,699,724,760,809,873,954,1054,1175,1184,1200,1225,1261,1310,1374,1455,1555,1676,1820,1836,1861,1897,1946,2010,2091,2191,2312,2456,2625,2650,2686,2735,2799,2880,2980,3101,3245,3414,36... |
#include <iostream>
#include <boost/timer/timer.hpp>
#include <boost/tokenizer.hpp>
//configuration
#define ST_ASIO_SERVER_PORT 9527
#define ST_ASIO_REUSE_OBJECT //use objects pool
#define ST_ASIO_DELAY_CLOSE 5 //define this to avoid hooks for async call (and slightly improve efficiency)
#define ST_ASIO_SYNC_DISPAT... |
; A054617: a(n) = Sum_{d|n} phi(d)*10^(n/d).
; Submitted by Christian Krause
; 0,10,110,1020,10120,100040,1001220,10000060,100010240,1000002060,10000100440,100000000100,1000001022240,10000000000120,100000010000660,1000000000204080,10000000100020480,100000000000000160,1000000001002002660,10000000000000000180,10000000001... |
// Created on: 1993-01-11
// Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA )
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xbf4a, %rsi
lea addresses_UC_ht+0x138ca, %rdi
nop
xor %r13, %r13
mov $62, %rcx
rep movsl
nop
nop
lfence
lea addresses_normal_ht+0x1cfea, %rax
nop
cmp %rbp, %rbp
movb (%rax), %r8b
nop
no... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_h.h" for further details
; ----------------------------------------------------------------
; void BIFROSTH_disableSprites(void)
SECTION code_clib
SECTION code_bifrost_... |
#include <tiny.h>
#include <convex.h>
#define BOOST_AUTO_TEST_MAIN
#include <boost/test/auto_unit_test.hpp>
#include <boost/test/unit_test_suite.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/test/test_tools.hpp>
BOOST_AUTO_TEST_SUITE(convex_signed_distance_to_triangle);
BOOST_AUTO_TEST_CAS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.