text stringlengths 1 1.05M |
|---|
; A044800: Numbers n such that string 8,7 occurs in the base 10 representation of n but not of n+1.
; Submitted by Christian Krause
; 87,187,287,387,487,587,687,787,879,887,987,1087,1187,1287,1387,1487,1587,1687,1787,1879,1887,1987,2087,2187,2287,2387,2487,2587,2687,2787,2879,2887,2987,3087,3187,3287,3387,3487,3587
ad... |
; A114431: Decimal expansion of the real solution of x^3 - x^2 - 2x - 4 = 0.
; Submitted by Christian Krause
; 2,4,6,7,5,0,3,8,5,7,0,5,6,5,1,7,5,7,6,3,8,1,8,8,6,7,5,5,3,5,8,7,8,6,0,7,0,3,8,2,2,5,4,4,7,5,0,6,2,3,7,2,9,8,8,4,6,4,0,1,9,7,7,4,0,5,5,0,7,5,1,9,3,5,9,1,7,7,3,3,9,7,1,5,8,1,5,9,5,1,6,3,4,9,2,3,8,6,3,5
bin $1,$... |
; A338157: Numbers that follow from the alternating series a(n) = d(1) - d(2) + d(3) -d(4) + ... + (-1)^(n+1) d(n), where d(k) denotes the k-th term of the digit sequence of the Golden Ratio.
; Submitted by Jon Maiga
; 1,-5,-4,-12,-12,-15,-12,-21,-13,-21,-14,-18,-9,-17,-8,-12,-4,-8,0,-2,-2,-6,-1,-9,-3,-11,-8,-12,-9,-15... |
; A017228: a(n) = (9*n + 5)^8.
; 390625,1475789056,78310985281,1099511627776,7984925229121,39062500000000,146830437604321,457163239653376,1235736291547681,2992179271065856,6634204312890625,13685690504052736,26584441929064321,49077072127303936,86730203469006241,147578905600000000,242935032749128801,388379855336079616,60... |
cseg at 0h
jmp INIT
; Wait for first user input
org 0bh ; adresse v on timer interrupt
call LONG_PRESS_DETECED
reti ; return from interupt
org 1bh
call TIME_OVER
reti
INIT:
TIMER_START EQU 42d
BUTTON EQU P0.0
; Display init
MOV A,#30H ; Use 1 line and 5x7 matrix
ACALL CMND
MOV A,#0FH ; LCD ON, cursor ON, curs... |
.align 4
sprite_pikachu:
.import "bin/sprite_pikachu.bin"
.align 4
sprite_pikachu_ow:
.import "bin/sprite_pikachu_ow.bin"
;eof |
# Demonstrates traversing a 2D array of words, storing a value at each
# cell of the array.
.data
matrix: .word 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
rows: .word 5
columns: .word 3
.text
.globl main
main:
la $t0, matrix
lw $t1, rows # number of rows
lw $t2, columns # number of columns
li $t3, 0 # i, row counter
r... |
.text
.globl main
main:addu $zero,$zero,$zero
L_1:and $t2,$t2,$t2
L_2:and $t1,$t1,$t1
j L_2
j L_1
|
; A307989: a(n) = n - pi(2*n) + pi(n-1), where pi is the prime counting function.
; 0,0,1,2,3,4,4,6,6,6,7,8,9,11,11,11,12,14,14,16,16,16,17,18,19,20,20,21,22,23,23,25,26,26,27,27,27,29,30,30,31,32,33,35,35,36,37,39,39,40,40,40,41,42,42,43,43,44,45,47,48,50,51,51,52,52,53,55
mov $2,$0
add $2,2
mov $4,1
mov $5,$0
lpb $2... |
TITLE MISC2 - Miscellanious routines for MS-DOS
NAME MISC2
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;** MISC2.ASM - Miscellaneous useful routines
;
; StrCpy
; StrCmp
; StrLen
; DStrLen
; Idle
; TableDispatch
; FastInit ; DOS 4.0
; FastRet ; DOS 4.0
; NL... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_UC+0x184ac, %r9
nop
nop
nop
nop
nop
dec %rdx
movb $0x51, (%r9)
nop
nop
nop
inc %rdx
// Load
lea addresses... |
; A349125: Dirichlet inverse of A064989, where A064989 is multiplicative with a(2^e) = 1 and a(p^e) = prevprime(p)^e for odd primes p.
; Submitted by Christian Krause
; 1,-1,-2,0,-3,2,-5,0,0,3,-7,0,-11,5,6,0,-13,0,-17,0,10,7,-19,0,0,11,0,0,-23,-6,-29,0,14,13,15,0,-31,17,22,0,-37,-10,-41,0,0,19,-43,0,0,0,26,0,-47,0,21,0... |
; A187342: Floor(((15+sqrt(5))/11)n); complement of A187341.
; 1,3,4,6,7,9,10,12,14,15,17,18,20,21,23,25,26,28,29,31,32,34,36,37,39,40,42,43,45,47,48,50,51,53,54,56,57,59,61,62,64,65,67,68,70,72,73,75,76,78,79,81,83,84,86,87,89,90,92,94,95,97,98,100,101,103,104,106,108,109,111,112,114,115,117,119,120,122,123,125
mov $... |
; A157215: Decimal expansion of 18 - 5*sqrt(2).
; Submitted by Christian Krause
; 1,0,9,2,8,9,3,2,1,8,8,1,3,4,5,2,4,7,5,5,9,9,1,5,5,6,3,7,8,9,5,1,5,0,9,6,0,7,1,5,1,6,4,0,6,2,3,1,1,5,2,5,9,6,3,4,1,1,6,6,0,1,3,1,0,0,4,6,3,3,7,6,0,7,6,8,9,4,6,4,8,0,5,7,4,8,0,6,2,3,2,8,3,6,1,7,9,2,1,3
mov $2,1
mov $3,$0
mul $3,4
lpb $3
... |
/*
* Copyright 2014 Facebook, Inc.
*
* 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... |
;
; Sprite Rendering Routine
; original code by Patrick Davidson (TI 85)
; modified by Stefano Bodrato - Jan 2001
;
; Sept 2003 - Stefano: Fixed bug for sprites wider than 8.
;
; Much More Generic version
; Uses plotpixel, respixel and xorpixel
;
; ** putsprite3 is a thin version with a Self Modifying Code trick **
;
;... |
;
; Copyright (c) 2016-2017 Heim László
;
; Snake written in assembly
; This application is also part of aengine library, being a demo application
;
; Main file of source code
;
%include 'third-party/io.inc' ; Message output
%include 'third-party/gfx.inc' ; Event handling
%include 'third-party/util.inc' ; ... |
; A077932: Expansion of (1-x)^(-1)/(1+2*x+2*x^2-2*x^3).
; Submitted by Jamie Morken(s2)
; 1,-1,1,3,-9,15,-5,-37,115,-165,27,507,-1397,1835,139,-6741,16875,-19989,-7253,88235,-201941,212907,154539,-1138773,2394283,-2201941,-2662229,14516907,-28113237,21868203,41523883,-183010645,326709931,-204350805,-610739541,228360055... |
#include <angelscript/angelscript.h>
#include "script.h"
#include "entity/scene.h"
namespace Crimson {
ScriptComponent::ScriptComponent(const char* behaviourDecl) :
m_behaviourDecl(behaviourDecl) {}
void ScriptComponent::OnInit() {
/* Create an instance of the object with the class name */
m_behaviour... |
;
; Z88dk Generic Floating Point Math Library
;
; increment c ix de
;
; $Id: incr.asm,v 1.1 2002/01/21 20:35:22 dom Exp $:
XLIB incr
.INCR INC E ;increment c ix de
RET NZ
INC D
RET NZ
DEFB $DD
INC L
RET NZ
DEFB ... |
; void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *))
SECTION code_clib
SECTION code_stdlib
PUBLIC _quicksort__callee
EXTERN asm_quicksort
_quicksort__callee:
pop af
pop ix
pop de
pop hl
pop bc
push af
jp asm_quicksort
|
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
#ifndef ADD_TWO_NUMBERS_AS_LINKED_LISTS_HPP
#define ADD_TWO_NUMBERS_AS_LINKED_LISTS_HPP
// https://leetcode.com/problems/add-two-numbers/description/
// You are given two non-empty linked lists representing two non-negative
// integers. The digits are stored in reverse order and each of their nodes
// contain a single... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CParseHandlerLogicalGroupBy.cpp
//
// @doc:
// Implementation of the SAX parse handler class for parsing logical
// GroupBy operators.
//----------------------------... |
_init: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
char *argv[] = { "sh", 0 };
int
main(void)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 53 push %ebx
4: 83 e4 f0 and $0xfffffff0,%esp
7: 83 ec... |
SECTION code_l
PUBLIC l_lsl_hl
INCLUDE "clib_cfg.asm"
; logical shift left 16-bit number
;
; enter : hl = 16-bit number
; a = shift amount
;
; exit : hl = hl << a
;
; uses : af, b, hl
IF __CLIB_OPT_IMATH_SELECT & $04
EXTERN l_fast_lsl_hl
defc l_lsl_hl = ... |
;
; Startup for Microbee in BASIC mode
; RUNM "program"
;
; Stefano Bodrato - 2016
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: bee_crt0.asm,v 1.1 2016-11-15 08:11:10 stefano Exp $
;
MODULE bee_crt0
;--------
; Include zcc_opt.def to find out som... |
; send sendet eine 64er-File über den Userport an
; den Amiga
; (Centronics-Routinen)
;------------------------------
;include 'HardwareVectoren.sub'
;------------------------------
;Hardware IO
vic = $d000
sid = $d400
colram = $d800
cia1 = $dc00
cia2 = $dd00
;CIA Register Offsets
cia_pra = 0 ;Port A
cia_prb = 1 ;P... |
;=============================================================================
; @(#)xp-midi-echo.asm
; ________.________
; ____ ____ ______/ __ \ ____/
; / ___\ / _ \/ ___/\____ /____ \
; / /_/ > <_> )___ \ / // \
; \___ / \____/____ > /____//______ /
;/_____/... |
; void tshr_scroll_up(uchar prows, uchar attr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshr_scroll_up_callee
EXTERN asm_tshr_scroll_up
_tshr_scroll_up_callee:
pop hl
ex (sp),hl
ld e,l
ld l,h
ld d,0
jp asm_tshr_scroll_up
|
_kill: file format elf32-littlearm
Disassembly of section .text:
00000000 <main>:
0: e92d4800 push {fp, lr}
4: e28db004 add fp, sp, #4
8: e24dd010 sub sp, sp, #16
c: e50b0010 str r0, [fp, #-16]
10: e50b1014 str r1, [fp, #-20] ; 0xffffffec
14: e51b3010 ldr r3, [fp, #... |
; A097803: a(n) = 3*(2*n^2 + 1).
; 3,9,27,57,99,153,219,297,387,489,603,729,867,1017,1179,1353,1539,1737,1947,2169,2403,2649,2907,3177,3459,3753,4059,4377,4707,5049,5403,5769,6147,6537,6939,7353,7779,8217,8667,9129,9603,10089,10587,11097,11619,12153,12699,13257,13827,14409,15003,15609,16227,16857,17499,18153,18819,1949... |
#include "LHC19c2b_TMVAClassification_BDT_6_8_noPCts.class.h"
double ReadBDT_LHC19c2b_6_8_noPCts::GetMvaValue__( const std::vector<double>& inputValues ) const
{
double myMVA = 0;
double norm = 0;
for (unsigned int itree=0; itree<fForest.size(); itree++){
BDTNode *current = fForest[itree];
while ... |
// Copyright (c) 2019 by Robert Bosch GmbH. 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... |
; A084104: A period 6 sequence.
; 1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7,7,4,1,1,4,7
mod $0,6
lpb $0
mul $0,4
mod $0,5
lpe
mov $1,$0
mul $1,3
add $1,1
|
;--------------------------------------------------------
; File Created by SDCC : FreeWare ANSI-C Compiler
; Version 2.3.1 Sat Apr 16 13:54:03 2011
;--------------------------------------------------------
.module gprintln
;--------------------------------------------------------
; Public variables in this module
... |
; A347275: a(n) is the number of nonnegative ordered pairs (a,b) satisfying (a+b <= n) and (a*b <= n)
; Submitted by Jamie Morken(s2)
; 1,3,6,10,15,19,25,29,35,40,46,50,58,62,68,74,81,85,93,97,105,111,117,121,131,136,142,148,156,160,170,174,182,188,194,200,211,215,221,227,237,241,251,255,263,271,277,281,293,298,306,312... |
; A183002: Partial sums of A161840.
; 0,0,0,2,2,4,4,6,8,10,10,14,14,16,18,22,22,26,26,30,32,34,34,40,42,44,46,50,50,56,56,60,62,64,66,74,74,76,78,84,84,90,90,94,98,100,100,108,110,114,116,120,120,126,128,134,136,138,138
mov $10,$0
mov $12,$0
lpb $12,1
mov $0,$10
sub $12,1
sub $0,$12
mov $6,$0
mov $8,2
lpb ... |
; A021590: Decimal expansion of 1/586.
; Submitted by Jon Maiga
; 0,0,1,7,0,6,4,8,4,6,4,1,6,3,8,2,2,5,2,5,5,9,7,2,6,9,6,2,4,5,7,3,3,7,8,8,3,9,5,9,0,4,4,3,6,8,6,0,0,6,8,2,5,9,3,8,5,6,6,5,5,2,9,0,1,0,2,3,8,9,0,7,8,4,9,8,2,9,3,5,1,5,3,5,8,3,6,1,7,7,4,7,4,4,0,2,7,3,0,3
add $0,1
mov $2,10
pow $2,$0
div $2,586
mov $0,$2
mod... |
assume cs:code
code segment
mov ax,0ffffh
mov ds,ax
mov bx,6
mov al,[bx] ; use mov al,[6] instead??
mov ah,0
mov dx,0
mov cx,3
s: add dx,ax
loop s
mov ax,4c00h
int 21h
code ends
end
|
/* Copyright 2015 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... |
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24) )
ftyp_start:
dd BE(ftyp_end - ftyp_start)
db "ftyp"
db "isom"
dd BE(0x00)
db "mif1", "miaf"
ftyp_end:
meta_start:
dd BE(meta_end - meta_start)
db "meta"
dd BE(0)
hdlr_start:
dd BE(hdlr_end - hdlr... |
; 04.2004 aralbrec
SECTION code_clib
PUBLIC IM2RemoveHook
PUBLIC _IM2RemoveHook
EXTERN _im2_hookDisp
; enter: de = address of hook (subroutine)
; l = interrupt vector where Generic ISR is installed
; used : af, bc, de, hl
; exit : carry = hook found and removed
; no carry = hook not found
.IM2RemoveH... |
//----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file.
//
// Author: David Burken
//
// Description: Test code for generic ossim test.
//
// $Id: ossim-test.cpp 19751 2011-06-13 15:13:07Z dburken $
//-----------------------------------------------... |
WORDS ; The following addresses are 16 bits long
segment byte at 4000-407F 'EEPROM'
WORDS ; The following addresses are 16 bits long
segment byte at 8080-9FFF 'ROM'
WORDS ; The following addresses are 16 bits long
segment byte at 8000-807F 'INTERRUPT'
;=======Register==============================... |
module random
{
var randint(var start,var end){
return math.random(start,end);
}
var randrange(var start,var end){
return math.random(start,end-1);
}
var choice(var v){
if(isstring(v)){
var p = randrange(0,len(v));
return string.at(v,p);
}
... |
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <new>
#include <base/math.h>
#include <engine/shared/config.h>
#include <engine/map.h>
#include <engine/console.h>
#inc... |
/*
* 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... |
; A246360: a(1) = 1, then A007051 ((3^n)+1)/2 interleaved with A057198 (5*3^(n-1)+1)/2.
; 1,2,3,5,8,14,23,41,68,122,203,365,608,1094,1823,3281,5468,9842,16403,29525,49208,88574,147623,265721,442868,797162,1328603,2391485,3985808,7174454,11957423,21523361,35872268,64570082,107616803,193710245,322850408,581130734
add $0... |
; A121048: n + phi(n), for Euler totient function phi(n).
; 2,3,5,6,9,8,13,12,15,14,21,16,25,20,23,24,33,24,37,28,33,32,45,32,45,38,45,40,57,38,61,48,53,50,59,48,73,56,63,56,81,54,85,64,69,68,93,64,91,70,83,76,105,72,95,80,93,86,117,76,121,92,99,96,113,86,133,100,113,94,141,96,145,110,115,112,137,102,157,112,135,122,16... |
; Routine to set HOTKEY item V2.02 1988 Tony Tebby QJUMP
section hotkey
xdef hot_seti
xdef hot_sets
xref hot_gtky
xref hot_thact
xref hot_rter
xref hk_newst
xref ut_gxnm1
xref ut_gtnm1
xref gu_achpp
... |
; vim: set syntax=z80:
#local
#code _CODE
; Stores corresponding addresses of scanlines
.align 512
scanline_table:
dw 0x4000
dw 0x4100
dw 0x4200
dw 0x4300
dw 0x4400
dw 0x4500
dw 0x4600
dw 0x4700
dw 0x4020
dw 0x4120
dw 0x4220
dw 0x4320
dw 0x4420
dw 0x4520
dw 0x4620
dw 0x4720
dw 0x4040
dw 0x4140
dw ... |
INCLUDE "config_private.inc"
SECTION code_driver
EXTERN _acia_reset, aciaControl
PUBLIC _acia_init
_acia_init:
; initialise the ACIA
ld a,__IO_ACIA_CR_RESET ; Master Reset the ACIA
out (__IO_ACIA_CONTROL_REGISTER),a
ld a,__IO_ACIA_CR_REI|__IO_ACIA_CR_TDI_R... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; EnableCache.Asm
;
; Abstract:
;
; Flush all caches with a WBINVD instruction, clear the CD bit... |
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 'ENTER THE BINARY NUM: $'
PROMPT_2 DB 0DH, 0AH, 'GIVEN BINARY NUM IN REV ORDER: $'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
LEA DX, PROMPT_1
MOV AH, 9
INT 21H
XOR BL, BL
MOV CX, 8
MOV AH, 1
@INPUT:
INT 21H
... |
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file ropeNode.cxx
* @author... |
; Commodore 64 Cynthcart LOADER
; by Paul Slocum
;------------------------
; TEXT EDITOR TAB=3
;------------------------
;------------------------
;------------------------
; TODO
;------------------------
; - LFO -> Pulse Width and Volume and Filter
;--------------------------
;--------------------------
;#=#=#=#=#... |
// Copyright 2013 the V8 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.
#include "src/api.h"
#include "src/arm64/assembler-arm64-inl.h"
#include "src/arm64/macro-assembler-arm64-inl.h"
#include "src/codegen.h"
#include "src/... |
swordgfx:
;incbin swords.gfx
skip #$1000
shieldgfx:
;incbin shields.gfx
skip #$C00
CopySword:
{
PHB : PHK : PLB
PHP ;push processor byte
REP #$30 ; set everything to 16-bit
LDY #$0000
LDA $7EF359 : AND.w #$00FF : ASL : TAX ;Load Sword Value
LDA.w .sword_positon_gfx, X : TAX
.loop_copy
L... |
// Copyright (c) 2007-2016 Erick Jung
//
// This code is distributed under the terms and conditions of the MIT license.
//
// 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 restricti... |
SECTION code_fp_math48
PUBLIC ___fs2uint
EXTERN cm48_sdcciyp_ds2uint
defc ___fs2uint = cm48_sdcciyp_ds2uint
|
; A215500: a(n) = ((sqrt(5) + 3)^n + (-sqrt(5) -1)^n + (-sqrt(5) + 3)^n + (sqrt(5) - 1)^n) / 2^n.
; Submitted by Jon Maiga
; 4,2,10,14,54,112,340,814,2254,5702,15250,39404,104004,270922,711490,1859134,4873054,12748472,33391060,87394454,228841254,599050102,1568437210,4106054164,10750060804,28143585362,73681573690,192899... |
; A023446: n-4.
; -4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54
sub $0,4
mul $0,120259084288
mov $1,$0
div $1,120259084288
|
SECTION code_clib
PUBLIC generic_console_xypos
EXTERN __laser500_mode
defc DISPLAY = 0xf800 - 0x8000
;
; Entry: b = character y
; c = character x
; Exit:
; hl = 80 column position
; bc = extra step to get to 40 columns
; Preserves: af
generic_console_xypos:
push af
ld a,b ; Modulus... |
; A027626: Denominator of n*(n+5)/((n+2)*(n+3)).
; 1,2,10,5,7,28,12,15,55,22,26,91,35,40,136,51,57,190,70,77,253,92,100,325,117,126,406,145,155,496,176,187,595,210,222,703,247,260,820,287,301,946,330,345,1081,376,392,1225,425,442,1378,477,495,1540,532,551,1711,590,610,1891,651,672,2080,715,737,2278,782,805,2485,852,876... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x916f, %r9
nop
nop
nop
xor %r15, %r15
movw $0x6162, (%r9)
nop
nop
nop
nop
nop
sub %rax, %rax
lea addresses_WT_ht+0xc30f, %rsi
sub %rbx, %rbx
movb $0x61, (%rsi)
n... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1ba5e, %rcx
and $35801, %r14
movb (%rcx), %dl
nop
and $34629, %rdi
lea addresses_WC_ht+0x10181, %rdi
nop
nop
xor $21429, %r12
and $0xffffffffffffffc0, %rdi
vmovaps (%rdi), %y... |
;===============================================================================
; Copyright 2015-2018 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") co... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x10d18, %rsi
lea addresses_UC_ht+0x10798, %rdi
nop
nop
cmp $23264, %r14
mov $65, %rcx
rep movsq
nop
nop
nop
nop
nop
sub $35100, %r9
lea addresses_normal_ht+0x2f98, %rdi
nop
xor $22460, %rcx
mov (%rdi), %si... |
// Copyright (c) 2011-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.
#if defined(HAVE_CONFIG_H)
#include "config/kekcoin-config.h"
#endif
#include "splashscreen.h"
#include "networkstyle.h"
#... |
section .text
global square_of_sum
square_of_sum:
mov eax, edi
.l1:
dec edi
jz .done
add eax, edi
jmp .l1
.done:
mul eax
ret
global sum_of_squares
sum_of_squares:
xor ecx, ecx
.l1:
mov eax, edi
mul eax
add ... |
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
COPYFROM 5
COPYTO 0
b:
INBOX
JUMPZ c
ADD 0
COPYTO 0
JUMP b
c:
COPYFROM 0
OUTBOX
JUMP a
DEFINE LABEL 0
eJzTYWBgyOCZvqZTfOfaedIhq2Jk3i+LkXk8N0UyYMIHkXvNznyXqlZxc5R4cy8p4OT5k5XAL5i8TpQl
CqiN4a76nywbjaqGT9oH5/Drui9MM... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1d986, %rsi
lea addresses_UC_ht+0x1e6a0, %rdi
add %r11, %r11
mov $123, %rcx
rep movsl
nop
nop
cmp %r14, %r14
lea addresses_normal_ht+0x1dbd8, %rsi
lea addresses_WT_ht+0x12818... |
/*******************************************************************************
* Copyright 2020 FUJITSU LIMITED
*
* 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.apa... |
; A194386: Numbers m such that Sum_{k=1..m} (<1/2 + k*r> - <k*r>) > 0, where r=sqrt(10) and < > denotes fractional part.
; 1,2,3,4,5,7,8,9,10,11,13,14,15,16,17,19,20,21,22,23,25,26,27,28,29,31,32,33,34,35,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,7... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
m: MACRO
shift -3
ENDM
m
|
.CR 8085 To load the 8085 cross overlay
.TF lcd_test.hex,INT,32
.OR $0000
MVI A,0EH
OUT 40H ;8155 con PB y PC como salidas
MVI A,8FH
OUT 63H ;8255 con PA como salidas
LXI SP,2FFFH ;Initialize Stack Pointer End of RAM 6264
CALL LCDINIT ;Inicializacion del LCD
CALL LCDMSG ;Imprime Hola mund... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x66ed, %rsi
lea addresses_UC_ht+0x17d0d, %rdi
clflush (%rsi)
nop
xor $51850, %r9
mov $95, %rcx
rep movsq
nop
nop
nop
lfence
lea addresses_WT_ht+0xcb85, %r10
nop
nop
nop
nop
add... |
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; simplifying macros and functions
; makes a VDP address difference
vdpCommDelta function addr,((addr&$3FFF)<<16)|((addr&$C000)>>14)
; makes a VDP command
vdpComm function addr,type,rwd,(((type&rwd)&3)<<30)|((addr&$3FFF)<<16)|(((type&rwd)&$... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW64)
;--------------------------------------------------------
.module lab3compass
.optsdcc -mmcs51 --model-small
;--------------------------------------------------------
;... |
; Audio interfaces.
MapSetup_Sound_Off::
push hl
push de
push bc
push af
ldh a, [hROMBank]
push af
ld a, BANK(_MapSetup_Sound_Off)
ldh [hROMBank], a
ld [MBC3RomBank], a
call _MapSetup_Sound_Off
pop af
ldh [hROMBank], a
ld [MBC3RomBank], a
pop af
pop bc
pop de
pop hl
ret
UpdateSound::
push hl
p... |
#include <iostream>
#include "rx.h"
void next_func(int i);
int main()
{
rx::of({1, 3, 5, 7})
.subscribe(
next_func,
nullptr, //error_func
[]() { std::cout << "Completed" << std::endl; });
return 0;
}
void next_func(int i)
{
std::cout << "Next:" << i << std::end... |
// Copyright 2016 The SwiftShader 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 b... |
; intmax_t imaxabs(intmax_t j)
SECTION code_inttypes
PUBLIC _imaxabs
EXTERN _labs
defc _imaxabs = _labs
|
/*
* Copyright 2016-present Facebook, Inc.
*
* 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x13a00, %rbx
nop
nop
nop
nop
nop
inc %rbp
movb (%rbx), %r15b
nop
nop
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0x1ba80, %r8
nop
nop
dec %r10
mov (%r8), %r12d
inc %rbp... |
; A171129: a(n)=(n^4-n^3-n^2-n)/2.
; 0,-1,1,21,86,235,519,1001,1756,2871,4445,6589,9426,13091,17731,23505,30584,39151,49401,61541,75790,92379,111551,133561,158676,187175,219349,255501,295946,341011,391035,446369,507376,574431,647921,728245,815814
mov $3,$0
bin $3,2
mov $2,$3
sub $2,1
mov $1,$2
mov $4,$0
mul $4,$0
mul ... |
; Don't even think of reading this code
; It was automatically generated by md5-586.pl
; Which is a perl program used to generate the x86 assember for
; any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris
; eric <eay@cryptsoft.com>
;
segment .text
global _md5_block_asm_host_order
_md5_block_a... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE124_Buffer_Underwrite__malloc_wchar_t_cpy_62a.cpp
Label Definition File: CWE124_Buffer_Underwrite__malloc.label.xml
Template File: sources-sink-62a.tmpl.cpp
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: Set data pointer to before the allocated memory... |
;**************************************************
;* ----- Protracker V2.3B Playroutine ----- *
;**************************************************
;
; Version 6.1
; Written by Frank Wille in 2013, 2016, 2017, 2018, 2019, 2020.
;
; I, the copyright holder of this work, hereby release it into the
; public domain.... |
; A203990: Symmetric matrix based on f(i,j) = (i+j)*min(i,j), by antidiagonals.
; Submitted by Christian Krause
; 2,3,3,4,8,4,5,10,10,5,6,12,18,12,6,7,14,21,21,14,7,8,16,24,32,24,16,8,9,18,27,36,36,27,18,9,10,20,30,40,50,40,30,20,10,11,22,33,44,55,55,44,33,22,11,12,24,36,48,60,72,60,48,36,24,12,13,26,39,52,65,78,78,65,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r9
push %rax
push %rbx
lea addresses_normal_ht+0xc3db, %r15
nop
cmp $24214, %r9
mov (%r15), %rax
and $40312, %r12
lea addresses_UC_ht+0x6bdb, %r11
nop
nop
nop
nop
add $4549, %rbx
movw $0x6162, (%r11)
nop
cmp $17506, %rbx
lea addresses_D_ht... |
; A021918: Decimal expansion of 1/914.
; Submitted by Jon Maiga
; 0,0,1,0,9,4,0,9,1,9,0,3,7,1,9,9,1,2,4,7,2,6,4,7,7,0,2,4,0,7,0,0,2,1,8,8,1,8,3,8,0,7,4,3,9,8,2,4,9,4,5,2,9,5,4,0,4,8,1,4,0,0,4,3,7,6,3,6,7,6,1,4,8,7,9,6,4,9,8,9,0,5,9,0,8,0,9,6,2,8,0,0,8,7,5,2,7,3,5
seq $0,199685 ; a(n) = 5*10^n+1.
div $0,457
mod $0,10
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x10a93, %rbp
clflush (%rbp)
nop
sub $10691, %r11
movups (%rbp), %xmm1
vpextrq $0, %xmm1, %rcx
nop
nop
nop
sub %r14, %r14
lea addresses_WC_ht+0x181b3, %r10
nop
nop
no... |
#include "Cylinder.h"
#include "Vec2U.h"
#include "Vec3U.h"
START_CB
bool Cylinder::IsValid() const
{
ASSERT( m_base.IsValid() );
ASSERT( m_radius > 0.f );
ASSERT( m_height > 0.f );
return true;
}
bool Cylinder::Contains(const Vec3 & point) const
{
// see also gPointInCylinder
if ( point.z < GetLoZ() || point.... |
; A157240: a(n) = A128018(n) + 1.
; 2,-1,-7,-7,17,65,65,-127,-511,-511,1025,4097,4097,-8191,-32767,-32767,65537,262145,262145,-524287,-2097151,-2097151,4194305,16777217,16777217,-33554431,-134217727,-134217727,268435457,1073741825,1073741825,-2147483647,-8589934591,-8589934591,17179869185,68719476737,68719476737,-13743... |
; half_t __fma (half_t left, half_t middle, half_t right)
SECTION code_fp_math16
PUBLIC cm16_sccz80_fma
EXTERN asm_f24_f16
EXTERN asm_f16_f24
EXTERN asm_f24_mul_f24
EXTERN asm_f24_add_f24
.cm16_sccz80_fma
; fma three sccz80 halfs
;
; enter : stack = sccz80_half left, sccz80_half middle, sccz80_half r... |
;------------------------------------------------------------------------------
;
; 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... |
typedef struct instancing_uniforms
{
mat4 mvp_mat;
vec4 v_color;
} instancing_uniforms;
void instancing_vs(float* vs_output, void* vertex_attribs, Shader_Builtins* builtins, void* uniforms);
void instancing_fs(float* fs_input, Shader_Builtins* builtins, void* uniforms);
void test_instancing(int argc, char** argv,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.