text stringlengths 1 1.05M |
|---|
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pragma once
#include <eve/detail/overload.hpp>
namespace eve
{
//==================================... |
; void __CALLEE__ sp1_ClearRect_callee(struct sp1_Rect *r, uchar tile, uchar rflag)
; 01.2008 aralbrec, Sprite Pack v3.0
; ts2068 hi-res version
XLIB sp1_ClearRect_callee
XDEF ASMDISP_SP1_CLEARRECT_CALLEE, ASMDISP_SP1CRSELECT
LIB sp1_GetUpdateStruct_callee, l_jpix
XREF ASMDISP_SP1_GETUPDATESTRUCT_CALLEE, SP1V_DISPWID... |
#include "input_manager_mobile_io.hpp"
#include "lookup.hpp"
#include "xml_util/pugixml.hpp"
#include "group_feedback.hpp"
#include "group_command.hpp"
#include <iostream> // Note: for debugging output.
namespace hebi {
namespace input {
InputManagerMobileIO::InputManagerMobileIO()
{
if (!reset())
std::cout <<... |
; A019613: Expansion of 1/((1-4*x)*(1-7*x)*(1-9*x)).
; Submitted by Jon Maiga
; 1,20,273,3172,33809,342132,3348241,32033924,301669137,2808831124,25937190929,238042888356,2174659962385,19797924540596,179763483454737,1628947562960068,14738065844679953,133185374228264148,1202467908156866065,10848808229007122660,9782545454... |
#include "mso/layer.h"
Layer::Layer(int size, int next, int prev){
this->size() = size;
this->VALS() = arma::Col<double>(size);
this->ACTS() = arma::Col<double>(size);
this->DERS() = arma::Col<double>(size);
for (int i = 0; i < size; ++i) {
Perceptron *n = new Perceptron(0.00);
n->I... |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
; A292278: a(n) = (Fibonacci(3*n-1) + 1)/2 for n >= 1.
; Submitted by Jamie Morken(s2)
; 1,3,11,45,189,799,3383,14329,60697,257115,1089155,4613733,19544085,82790071,350704367,1485607537,6293134513,26658145587,112925716859,478361013021,2026369768941,8583840088783,36361730124071,154030760585065,652484772464329,2763969850... |
!ifndef is_main !eof
; This file serves as paperwork of the game's design
; it contains variables, explications and other neat stuff
;
; VIDEO DETAILS :
; screensize: 320x240
;
; Layer 0 : map 16x32 8bpp
; tile data: $1 0000
; map data : $1 8000
vram_layer0_tilebase_b = $01
vram_layer0_tilebase = $00... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 14/09/2006
;
; int zx_soundchip();
;
; The result is:
; - 1 (true) if a sound chip is present
; - 0 (false) otherwise
;
; $Id: zx_soundchip.asm,v 1.3 2016-06-10 20:02:05 dom Exp $
;
SECTION code_clib
PUBLIC zx_soundchip
PUBLIC _zx_soundchip
zx_soundchip:
_zx... |
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Raven Core developers
// Copyright (c) 2020-2021 The redecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core_i... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rbp
push %rdx
lea addresses_A_ht+0x1886d, %r11
clflush (%r11)
nop
cmp $18217, %rbp
movups (%r11), %xmm7
vpextrq $1, %xmm7, %rdx
nop
nop
nop
xor %rdx, %rdx
pop %rdx
pop %rbp
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
p... |
;Find the 21th Fibonacci term.
mov si,0 ;first fibonacci number f0
mov di,1 ;second fibonacci number f1
mov bx,0
mov cx,19
fibonacci:
mov bx,di
add di,si
mov si,bx
loop fibonacci
|
/****************************************************************************
*
* Copyright (c) 2019 Vivante 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 ... |
/*
Copyright [2019-20] [IBM Corporation]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
#include "Entity.h"
#include "ECS.h"
namespace Logic {
Entity::Entity(std::string name_)
: name(name_)
{
id = ECS::GetNewId();
// Setup();
}
DrawObject Entity::getDrawObject() { return { nullptr, nullptr, nullptr }; }
} |
;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
;
; This LED program simply mirrors bits from the LED data area directly to
; the LED scan chain, effectively allowin... |
; A138279: Last digit of A136324. After 0, 1, period 4: repeat [1, 2, 5, 6] = A131800.
; 0,1,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6,1,2,5,6
mov $3,1
lpb $0
add $0,2
mod $0,4
add $2,2
bin $2,... |
// Tests different ways of scrolling up the screen
// Commodore 64 PRG executable file
.file [name="test-scroll-up.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x14eba, %r11
nop
nop
nop
nop
and $21061, %rdx
mov $0x6162636465666768, %r10
movq %r10, (%r11)
nop
nop
nop
sub $27797, %r9
lea addresses_WT_ht+0x1457a, %rdx
nop
nop
nop
nop
nop
... |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
int isPrime[1000001];
void buildSieve()
{
for (int i = 0; i <= 1000000; i ++) isPrime[i] = 1;
isPrime[0] = isPrime[1] = 0; isPrime[2] = 1;
for (int i = 2; i <= 1000; i ++)
for (int j = 2; j * i <= 1000000; j ++)
isPrime[i*j] = 0;
}... |
; A308047: Sum of subgroup indices of dihedral group, Sum_{H <= D(n)} [D(n):H].
; 3,11,18,35,38,74,66,115,117,166,146,266,198,298,308,403,326,533,402,630,564,682,578,970,713,934,900,1162,902,1444,1026,1491,1316,1558,1396,2093,1446,1930,1812,2390,1766,2692,1938,2730,2522,2794,2306,3658,2565,3441
add $0,1
mov $2,$0
lpb ... |
; A271939: Number of edges in the n-th order Sierpinski carpet graph.
; 8,88,776,6424,52040,418264,3351944,26833048,214716872,1717892440,13743611912,109950312472,879606751304,7036866765016,56294972383880,450359893862296,3602879495272136,28823036995298392,230584299061751048,1844674401792100120
add $0,1
mov $1,3
pow $1,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x17832, %rsi
lea addresses_D_ht+0x19b2, %rdi
nop
nop
and $60497, %rbx
mov $50, %rcx
rep movsw
nop
nop
nop
nop
nop
and %r15, %r15
lea addresses_A_ht+0xcba2, %rsi
lea addresses_D_ht+0x6e... |
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_glong
PUBLIC l_glonghlp
;Fetch long dehl from (hl)
.l_glonghlp
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
.l_glong
ld e,(hl)
inc hl
ld d,(hl)
inc hl
ld a,(hl)
inc hl... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1ab0, %rsi
lea addresses_UC_ht+0x14710, %rdi
xor %rbx, %rbx
mov $107, %rcx
rep movsl
nop
nop
nop
nop
add %rbp, %rbp
lea addresses_WT_ht+0xe110, %rsi
lea addresses_normal_ht+0... |
; void wa_priority_queue_destroy(ba_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_wa_priority_queue
PUBLIC wa_priority_queue_destroy
EXTERN asm_wa_priority_queue_destroy
defc wa_priority_queue_destroy = asm_wa_priority_queue_destroy
|
//******************************************************************************
// alttp_msu.asm
//
// Author: qwertymodo
// Date Created: 1 Nov 2014
// Date Modified: 7 Nov 2014
// Assembler: bass v14
//
// Implements MSU-1 audio streaming in The Legend of Zelda: A Link to the Past
// Original patch by C... |
;;
;; Copyright (c) 2012-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... |
; A181426: Numerator of Sum_{k=1..n} k^4 / Product_{k=1..n} k^4.
; Submitted by Jamie Morken(w4)
; 1,17,49,59,979,91,167,731,5111,517,1817,6071,109,18241,22289,2771,131,28823,67,51619,11911,34891,15557,257,1949,22313,2267,14123,153931,5273999,1,3167,45091,3569,268309,126947,4217,127,369641,201679,85739
add $0,1
mov $2... |
RedPicFront:: INCBIN "gfx/player/red.pic"
ShrinkPic1:: INCBIN "gfx/player/shrink1.pic"
ShrinkPic2:: INCBIN "gfx/player/shrink2.pic"
|
; A013959: a(n) = sigma_11(n), the sum of the 11th powers of the divisors of n.
; 1,2049,177148,4196353,48828126,362976252,1977326744,8594130945,31381236757,100048830174,285311670612,743375541244,1792160394038,4051542498456,8649804864648,17600780175361,34271896307634,64300154115093,116490258898220,204900053024478,35027... |
/* Copyright 2018 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... |
SECTION code_driver
SECTION code_driver_tty
PUBLIC asm_tty_param_b_action
EXTERN asm_tty_state_get_1
EXTERN asm_tty_state_param_store
asm_tty_param_b_action:
; c = action code
; stack = & tty.action
; command code has one parameter and action is invoked
ld de,asm_tty_state_get_1
jp asm_tty_state_... |
; A212905: Number of (w,x,y,z) with all terms in {0,...,n} and |w-x|+|x-y+|y-z|=2n.
; 1,6,16,26,42,58,82,106,140,174,220,266,326,386,462,538,632,726,840,954,1090,1226,1386,1546,1732,1918,2132,2346,2590,2834,3110,3386,3696,4006,4352,4698,5082,5466,5890,6314,6780,7246,7756,8266,8822
mov $5,$0
mov $7,$0
add $7,1
lpb $7,1... |
;
; 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 ... |
// Copyright 2019 The Fuchsia 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 <fidl/fuchsia.io/cpp/wire.h>
#include <lib/zxio/cpp/inception.h>
#include <lib/zxio/null.h>
#include <lib/zxio/ops.h>
#include <sys/stat.h>
#inclu... |
; A026053: (d(n)-r(n))/5, where d = A008778 and r is the periodic sequence with fundamental period (0,3,1,0,1).
; 1,2,5,9,14,21,29,40,53,68,86,106,130,157,187,221,258,300,346,396,451,510,575,645,720,801,887,980,1079,1184,1296,1414,1540,1673,1813,1961,2116,2280,2452,2632,2821,3018,3225,3441,3666,3901,4145,4400,4665,4940... |
; A323294: Number of 3-uniform hypergraphs spanning n labeled vertices where every two edges have two vertices in common.
; 1,0,0,1,11,10,15,21,28,36,45,55,66,78,91,105,120,136,153,171,190,210,231,253,276,300,325,351,378,406,435,465,496,528,561,595,630,666,703,741,780,820,861,903,946,990,1035,1081,1128,1176,1225,1275,1... |
include "VasmBuildCompat.asm"
include "V1_Header.asm"
;include "MSX1_V1_VdpMemory.asm"
;
; Hello World .ROM for cartridge environment
;
; Constant definitions
WRTVDP equ &0047
LDIRVM equ &005c
CHGMOD equ &005f
INIT32 equ &006F
;CHPUT equ &00A2
LINLEN equ &F3B0
; Compilation address
org &4000
;... |
; A313774: Coordination sequence Gal.6.622.5 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.
; Submitted by Christian Krause
; 1,5,10,15,21,25,31,37,41,47,52,57,62,67,72,77,83,87,93,99,103,109,114,119,124,129,134,139,145,149,155,161,16... |
// Copyright (c) 2019 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 "gquiche/quic/core/qpack/qpack_required_insert_count.h"
#include "absl/base/macros.h"
#include "gquiche/quic/platform/api/quic_test.h"
name... |
SFX_Muted_Snare1_2_Ch1:
unknownnoise0x20 0, 161, 24
unknownnoise0x20 0, 49, 51
endchannel
|
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Get returns total sectors on current volume (long)
;
; $Id: get_total_sectors.asm,v 1.6 2016/06/22 22:13:09 dom Exp $
;
INCLUDE "flos.def"
SECTION code_clib
PUBLIC get_total_sectors
PUBLIC _get_total_sectors
get_tota... |
; $Id: bs3-cpu-decoding-1-asm.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; BS3Kit - bs3-cpu-decoding-1, assembly helpers and template instantiation.
;
;
; Copyright (C) 2007-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. Thi... |
;-Camera Position of Ship----------------------------------------------------------------------------------------------------------
StartOfShipRuntimeData EQU $
UBnKxlo DB 0 ; INWK+0
UBnKxhi DB 0 ; there are hi medium low as some... |
; A166010: a(n) = prime(n)^2-4.
; 0,5,21,45,117,165,285,357,525,837,957,1365,1677,1845,2205,2805,3477,3717,4485,5037,5325,6237,6885,7917,9405,10197,10605,11445,11877,12765,16125,17157,18765,19317,22197,22797,24645,26565,27885,29925,32037,32757,36477,37245,38805,39597,44517,49725,51525,52437,54285,57117,58077,62997,6604... |
; A138041: a(1) = 1, a(2) = 10; for n>2, a(n+1) = 4*a(n) + 6*a(n-1). Also a(n) = upper left term in the 2 X 2 matrix [1,3; 3,3].
; 1,10,46,244,1252,6472,33400,172432,890128,4595104,23721184,122455360,632148544,3263326336,16846196608,86964744448,448936157440,2317533096448,11963749330432,61760195900416,318823279584256,16... |
section .text
global GetValueASM
GetValueASM:
mov eax, edi ; External params come from EDI
add eax, 1
ret |
; int fzx_puts(struct fzx_state *fs, char *s)
INCLUDE "clib_cfg.asm"
SECTION code_font_fzx
PUBLIC asm_fzx_puts
EXTERN asm_fzx_putc, __fzx_puts_newline
asm_fzx_puts:
; write zero terminated string to window
; interpret \n as newline
;
; enter : ix = struct fzx_state *
; de = char *s
;
... |
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "gzip.h"
#include "kaitai/exceptions.h"
gzip_t::gzip_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, gzip_t* p__root) : kaitai::kstruct(p__io) {
m__parent = p__parent;
m__root = this;
m_flags... |
; A069943: Let b(1)=b(2)=1, b(n+2)=(1/(n+1))*(b(n+1)+b(n)); then a(n)=numerator(b(n)).
; Submitted by Jon Maiga
; 1,1,1,2,5,13,19,29,191,131,1187,2231,17519,71063,29881,323423,2887921,13237457,2397389,15030317,742458253,3748521653,9670072483,25451905333,10932619111,78684575461,4163946939067,11799518538967,1360256044327... |
; A032821: Numbers whose set of base-9 digits is {1,4}.
; Submitted by Simon Strandgaard
; 1,4,10,13,37,40,91,94,118,121,334,337,361,364,820,823,847,850,1063,1066,1090,1093,3007,3010,3034,3037,3250,3253,3277,3280,7381,7384,7408,7411,7624,7627,7651,7654,9568,9571,9595,9598,9811,9814,9838,9841,27064,27067,27091,27094,273... |
SFX_Turn_On_PC_3_Ch4:
duty 2
squarenote 15, 15, 2, 1984
squarenote 15, 0, 0, 0
squarenote 15, 0, 0, 0
squarenote 3, 8, 1, 1920
squarenote 3, 8, 1, 1792
squarenote 3, 8, 1, 1856
squarenote 3, 8, 1, 1792
squarenote 3, 8, 1, 1920
squarenote 3, 8, 1, 1792
squarenote 3, 8, 1, 1984
squarenote 3, 8, 1, 1792
endch... |
; A082309: Expansion of e.g.f.: (1+x)*exp(5*x)*cosh(x).
; Submitted by Jon Maiga
; 1,6,36,218,1336,8280,51776,325792,2057856,13023104,82456576,521826816,3298727936,20822038528,131210919936,825373859840,5182772248576,32487861092352,203308891897856,1270289732337664,7924975155019776,49371882836197376,307174483569934336,19... |
; A085473: a(n) = 6*n^2 + 3*n + 1.
; 1,10,31,64,109,166,235,316,409,514,631,760,901,1054,1219,1396,1585,1786,1999,2224,2461,2710,2971,3244,3529,3826,4135,4456,4789,5134,5491,5860,6241,6634,7039,7456,7885,8326,8779,9244,9721,10210,10711,11224,11749,12286,12835,13396,13969,14554,15151,15760,16381,17014,17659,18316,18985,... |
user/_ls: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <fmtname>:
#include "user/user.h"
#include "kernel/fs.h"
char*
fmtname(char *path)
{
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6: ec26 ... |
; int wv_priority_queue_empty(wv_priority_queue_t *q)
SECTION code_adt_wv_priority_queue
PUBLIC _wv_priority_queue_empty
EXTERN _wa_priority_queue_empty
defc _wv_priority_queue_empty = _wa_priority_queue_empty
|
; I/O with correct sun out
.MODEL SMALL
.STACK 100H
.DATA
A DB ?
B DB ?
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV AH, 1
INT 21H
MOV A, AL
SUB A, 48
INT 21H
MOV B, AL
SUB B, 48
MOV ... |
;** MSCTRLC.ASM - ^C and error handler for MSDOS
;
;
;
.xlist
.xcref
include version.inc
include mssw.asm
.cref
.list
TITLE Control C detection, Hard error and EXIT routines
NAME IBMCTRLC
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;** Low level routines fo... |
// Copyright Take Vos 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#include "ttauri/file_view.hpp"
#include "ttauri/required.hpp"
#include <gtest/gtest.h>
#include <iostream>
#include <string>
using name... |
segment .text
global VDMethodToFunctionThunk64
proc_frame VDMethodToFunctionThunk64
;prolog
db 48h ;emit REX prefix -- first instruction must be two bytes for hot patching
push rbp
[pushreg rbp]
mov rbp, rsp ;create stack pointer
[setframe rbp, 0]
mov [rbp+16], rcx ;save arg1
[sav... |
; A157731: a(n) = 18522*n - 10248.
; 8274,26796,45318,63840,82362,100884,119406,137928,156450,174972,193494,212016,230538,249060,267582,286104,304626,323148,341670,360192,378714,397236,415758,434280,452802,471324,489846,508368,526890,545412,563934,582456,600978,619500,638022,656544,675066,693588,712110,730632,749154,76... |
; A113763: Non-multiples of 13, or numbers not divisible by 13.
; 1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,66,67,68,69,70,71,72,73,74,75,76,77
mov $1,$0
div $1,12
add $0,$1
add $0,1
|
; A010888: Digital root of n (repeatedly add the digits of n until a single digit is reached).
; 0,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3... |
// Copyright 2019 Esri.
// 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, software... |
; A051624: 12-gonal (or dodecagonal) numbers: a(n) = n*(5*n-4).
; 0,1,12,33,64,105,156,217,288,369,460,561,672,793,924,1065,1216,1377,1548,1729,1920,2121,2332,2553,2784,3025,3276,3537,3808,4089,4380,4681,4992,5313,5644,5985,6336,6697,7068,7449,7840,8241,8652,9073,9504,9945,10396,10857,11328,11809,12300,12801,13312,1383... |
;*********************************************
; Boot1.asm
; - A Simple Bootloader
;
; Operating Systems Development Tutorial
;*********************************************
bits 16 ; We are still in 16 bit Real Mode
org 0x7c00 ; We are loaded by BIOS at 0x7C00
start: jmp loader ... |
; A057658: a(n) = n*(n+1)^2*(n+2)^3*(n+3)^2*(n+4).
; 0,8640,172800,1512000,8467200,35562240,121927680,359251200,940896000,2242468800,4947022080,10231341120,20033395200,37425024000,67118284800,116138603520,194702952960,317346724800,504348768000,783510235200,1192349410560,1780781587200,2614360320000,3778164000000,5381419... |
SECTION code_clib
PUBLIC __krt_pointxy
.__krt_pointxy
defc NEEDpoint = 1
INCLUDE "pixel_krt.inc"
|
; A109392: Partial sums of A109391.
; 0,1,13,175,2735,49610,1029386,24088590,628068366,18061990371,568061990371,19398632250697,714854467214665,28276489167109688,1195037205850701368,53742304051553826368,2562499498076052846144
lpb $0
mov $2,$0
sub $0,1
seq $2,109391 ; a(n) = (n^(n+1))*(n + 1)/2 = A000217(n)*A00031... |
include macros.inc
include comparison_predicates.inc
.const
align 16
FloatToUint8Min real4 0.0, 0.0, 0.0, 0.0
FloatToUint8Max real4 1.0, 1.0, 1.0, 1.0
FloatToUint8Scale real4 255.0, 255.0, 255.0, 255.0
Uint8Min dword 0
Uint8Max dword 255
.code
; bool AVX_Packed_Convert_Float_To_Byte_0_255_Range(const float* in... |
; A069099: Centered heptagonal numbers.
; 1,8,22,43,71,106,148,197,253,316,386,463,547,638,736,841,953,1072,1198,1331,1471,1618,1772,1933,2101,2276,2458,2647,2843,3046,3256,3473,3697,3928,4166,4411,4663,4922,5188,5461,5741,6028,6322,6623,6931,7246,7568,7897,8233,8576,8926,9283,9647,10018,10396,10781,11173,11572,11978,1... |
; A183142: Beatty sequence for 2/(3+sqrt(3)).
; 0,0,1,1,2,2,2,3,3,4,4,5,5,5,6,6,7,7,8,8,8,9,9,10,10,10,11,11,12,12,13,13,13,14,14,15,15,16,16,16,17,17,18,18,19,19,19,20,20,21,21,21,22,22,23,23,24,24,24,25,25,26,26,27,27,27,28,28,29,29,30
mul $0,22
mov $1,21
add $1,$0
div $1,52
mov $0,$1
|
// Range-based for does not recognize symbolic constants.
// The following should work but gives a not-constant exception
// Commodore 64 PRG executable file
.file [name="forrangesymbolic.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentd... |
dnl AMD64 mpn_modexact_1_odd -- Hensel norm remainder.
dnl Copyright 2000-2006, 2011, 2012 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 Lesser G... |
; A166482: a(n) = Sum_{k=0..n} C(n+k,2k)*F(2k+1).
; Submitted by Christian Krause
; 1,3,12,51,221,965,4227,18540,81363,357145,1567849,6883059,30218028,132664227,582428789,2557009709,11225925267,49284687948,216372426339,949930508209,4170438905425,18309298027683,80382521554380,352899918350547,1549321295535245,68019184830... |
#include "dfa.hpp"
#include <fstream>
/*
int main (int argc, char *argv[])
{
char* fichero= new char[0];
if(argc!=2){
cout << "Introduzca el nombre del fichero: ";
cin >> fichero;
cin.clear();
}else{
fichero=argv[1];
}
dfa DFA;
while(!DFA.leer_fichero(fichero)){
... |
; A078427: Sum of all the decimal digits of numbers from 1 to 10^n.
; 46,901,13501,180001,2250001,27000001,315000001,3600000001,40500000001,450000000001,4950000000001,54000000000001,585000000000001,6300000000000001,67500000000000001,720000000000000001,7650000000000000001,81000000000000000001,855000000000000000001,90000... |
; A040420: Continued fraction for sqrt(442).
; 21,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42
pow $1,$0
gcd $1,2
mul $1,21
|
dnl HP-PA 1.1 mpn_addmul_1 -- Multiply a limb vector with a limb and add the
dnl result to a second limb vector.
dnl Copyright 1992, 1993, 1994, 2000, 2001, 2002 Free Software Foundation,
dnl Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/... |
map_header CeruleanPokecenter, CERULEAN_POKECENTER, POKECENTER, 0
end_map_header
|
[BITS 16]
[ORG 0x7c00]
jmp 0x0:beginning
beginning:
; очистка экрана
mov ax, 0xb800
mov es, ax
xor bx, bx
mov ecx, 80 * 25 * 2
clearing:
mov byte [es:bx], 0
inc bx
loop clearing
; загрузка ядра с диска
mov ax, 0x800
mov es, ax
xor bx, bx
mov ah, 2
mov al, 8
mov dl, 0x80
mo... |
.cseg
.org 0x00
rcall main_thread
; include components interrupts
;.include "../../../../../src/kernel/drivers/{driver_name}_int.asm"
.include "../../../../../src/kernel/drivers/soc/timer2_int.asm"
; include components definitions
.include "../../../../../src/kernel/kernel_def.asm"
;.include "../../../src/kernel/drive... |
; A062011: a(n) = 2*tau(n) = 2*A000005(n).
; 2,4,4,6,4,8,4,8,6,8,4,12,4,8,8,10,4,12,4,12,8,8,4,16,6,8,8,12,4,16,4,12,8,8,8,18,4,8,8,16,4,16,4,12,12,8,4,20,6,12,8,12,4,16,8,16,8,8,4,24,4,8,12,14,8,16,4,12,8,16,4,24,4,8,12,12,8,16,4,20,10,8,4,24,8,8,8,16,4,24,8,12,8,8,8,24,4,12,12,18
mov $2,$0
mov $4,2
lpb $4
mov $0,$... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rdx
// Store
lea addresses_A+0x9045, %r13
nop
nop
nop
nop
dec %rax
mov $0x5152535455565758, %rdx
movq %rdx, %xmm1
vmovups %ymm1, (%r13)
nop
nop
nop
nop
cmp $62102,... |
; Console Output
; Materials - NASM (32-bit)
; Copyright (c) 2017 Hall & Slonka
; Uses system call information from Chapter 10
SECTION .data
s1: DB "Hello Universe", 10, 0
lenS1: EQU ($ - s1)
SECTION .text
global _main
_main:
print: mov eax, 4 ; syswrite
mov ebx, 1 ; stdout
mov ecx, s1 ; starting addr... |
; A158948: Triangle read by rows, left border = natural numbers repeated (1, 1, 2, 2, 3, 3,...); all other columns = (1, 0, 1, 0, 1, 0,...).
; 1,1,1,2,0,1,2,1,0,1,3,0,1,0,1,3,1,0,1,0,1,4,0,1,0,1,0,1,4,1,0,1,0,1,0,1,5,0,1,0,1,0,1,0,1,5,1,0,1,0,1,0,1,0,1
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
trn... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/DOM/Backends/JSON/JsonBackend.h>
#include <AzCore/DOM/Backends/JSON/JsonSerializa... |
;------------------------------------------------------------------------------
;
; 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... |
;;
;; Copyright (c) 2012-2018, 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... |
TITLE LOCK ROUTINES - Routines for file locking
NAME LOCK
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;** LOCK.ASM - File Locking Routines
;
; LOCK_CHECK
; LOCK_VIOLATION
; $LockOper
;
; Revision history:
; A000 version 4.00 Jan. 1988
.xlist
.xcref
include v... |
#include <SigInt.h>
#include "FrameFeeder.h"
#include "StateMachine.h"
#include "boost/program_options.hpp"
using namespace std;
namespace po = boost::program_options;
//Fucntion definitions
unique_ptr<FrameFeeder> createFrameFeeder(FrameSource srcMode, string srcString);
int main(int argc, char* argv[]) /**
Thi... |
SilphCo7Object:
db $2e ; border block
db $6 ; warps
db $0, $10, $1, SILPH_CO_8F
db $0, $16, $0, SILPH_CO_6F
db $0, $12, $0, SILPH_CO_ELEVATOR
db $7, $5, $3, SILPH_CO_11F
db $3, $5, $8, SILPH_CO_3F
db $f, $15, $3, SILPH_CO_5F
db $0 ; signs
db $b ; objects
object SPRITE_LAPRAS_GIVER, $1, $5, STAY, NONE, $1 ... |
# $Id: 14_beq_4.asm,v 1.3 2001/03/22 00:39:00 ellard Exp $
#
# Copyright 1999-2001 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ test of beq.
# OK
lc r2, $eq
lc r3, 10
lc r4, 11
beq r2, r3, r4
add r5, r1, r0
hlt
eq:
lc r6, 10
hlt
|
; A112689: A modified Chebyshev transform of the Jacobsthal numbers.
; 0,1,1,0,1,2,1,1,2,2,2,2,2,3,3,2,3,4,3,3,4,4,4,4,4,5,5,4,5,6,5,5,6,6,6,6,6,7,7,6,7,8,7,7,8,8,8,8,8,9,9,8,9,10,9,9,10,10,10,10,10,11,11,10,11,12,11,11,12,12,12,12,12,13,13,12,13,14,13,13,14,14,14,14,14,15,15,14,15,16,15,15,16,16,16,16,16,17,17,16
mul... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x18945, %rsi
lea addresses_WC_ht+0x7cd7, %rdi
nop
nop
nop
nop
nop
inc %rax
mov $34, %rcx
rep movsb
nop
nop
nop
and $32312, %rdi
lea addresses_WT_ht+0x12f45, %r8
nop
nop
nop
no... |
; freemlib for Neo-Geo Example 03: Palette Basics
;==============================================================================;
; defines
include "../../src_68k/inc/neogeo.inc"
include "../../src_68k/inc/ram_bios.inc"
include "../../src_68k/inc/mess_macro.inc"
include "ram_user.inc"
;--------------------... |
; A017399: a(n) = (11*n)^11.
; 0,285311670611,584318301411328,50542106513726817,1196683881290399744,13931233916552734375,103510234140112521216,564154396389137449973,2450808588882738675712,8953382542587164451099,28531167061100000000000,81402749386839761113321,211988959518950443450368,511324276025564512546607,11553882038... |
.macro DISABLE_PLAYER_INVUL P12
lda P%%1_STATE
cmp #PS_DYING
beq DI%%1_X
lda P%%1_STATE
cmp #PS_BURIED
beq DI%%1_X
lda #0
sta P%%1_INVUL
lda #1
sta P%%1_VISIBLE
lda #P%%1_X_POSITION
... |
; float __fadd (float left, float right)
SECTION code_clib
SECTION code_fp_am9511
PUBLIC cam32_sdcc_fadd
EXTERN asm_sdcc_readr, asm_am9511_fadd
.cam32_sdcc_fadd
; add two sdcc floats
;
; enter : stack = sdcc_float right, sdcc_float left, ret
;
; exit : DEHL = sdcc_float(left+right)
;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.