text stringlengths 1 1.05M |
|---|
/*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... |
#include "stable.h"
#include "corethread.h"
#include "dispatcher.h"
#include "corerunloopsafe.h"
#include "corerunloop.h"
namespace Storm {
class ThreadCenter
{
public:
static CoreThread* fromUId(std::uint32_t);
static void lockThreads();
static void unlockThreads();
};
std::vector<Core... |
/* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any... |
OUTPUT "op_C0_FF.bin" : OPT --syntax=a
ret nz
pop bc
jp nz,$4241
jp $4241
call nz,$4241
push bc
add a,$43
rst 00h
ret z
ret
jp z,$4241
bit 0,h ; BITS 0xCB prefix + 0x44
call z,$4241
call $4241
adc ... |
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <wc>:
char buf[512];
void
wc(int fd, char *name)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 28 sub $0x28,%esp
int i, n;
int l, w, c, inword;
l = w = c =... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
; A208842: Number of 5 X n 0..1 arrays avoiding 0 0 0 and 0 0 1 horizontally and 0 1 1 and 1 1 0 vertically.
; Submitted by Simon Strandgaard
; 14,196,406,3010,8736,49126,169974,833364,3166030,14462714,57750784,254227806,1042375166,4500225380,18712446886,79961471506,334969826464,1423640395254,5987342521510,253737016949... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-present Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any pers... |
; ---------------------------------------------------------------------------
; Animation script - Bomb enemy
; ---------------------------------------------------------------------------
dc.w byte_11C12-Ani_obj5F
dc.w byte_11C16-Ani_obj5F
dc.w byte_11C1C-Ani_obj5F
dc.w byte_11C20-Ani_obj5F
dc.w byte_11C24-An... |
; AddTwo.asm - adds two 32-bit integers.
; Chapter 3 example
include Irvine32.inc
.data
var BYTE "return: ", 0
var1 BYTE "push: ", 0
.code
main proc
; creating the registors needed
mov ebx, 3 ;this represents the n
mov ecx, 1 ;this represents the k
mov eax, 0 ;this is the total sum
call Recu
call WriteDec
C... |
global John
John: incbin "john.txt"
db 0
global Fool
Fool: incbin "fool.txt"
db 0
global bdr
bdr: incbin "bdr.txt"
db 0
|
; A235700: a(n+1) = a(n) + (a(n) mod 5), a(1)=1.
; 1,2,4,8,11,12,14,18,21,22,24,28,31,32,34,38,41,42,44,48,51,52,54,58,61,62,64,68,71,72,74,78,81,82,84,88,91,92,94,98,101,102,104,108,111,112,114,118,121,122,124,128,131,132,134,138,141,142,144,148,151,152,154,158,161,162,164,168,171,172,174,178,181,182,184,188,191
mov ... |
/*Exercise 4 - Functions
Write a program to calculate the function called nCr which is defined as
nCr = n!/ r!(n−r)!
Where n! is the factorial of n.
Implement the functions
long Factorial(int no);
long nCr(int n, int r);
Do not modify the main function.*/
#include <iostream>
long Factorial(int no);
long nCr(int n... |
///////////////////////////////////////////////////////////////////////////////
// 2014-01-26 P.Murat TStrawHitData
///////////////////////////////////////////////////////////////////////////////
#include "TString.h"
#include "Stntuple/obj/TStrawHitData.hh"
ClassImp(TStrawHitData)
//--------------------------------... |
MapSetupScripts:
; entries correspond to MAPSETUP_* constants (see constants/map_setup_constants.asm)
dw MapSetupScript_Warp
dw MapSetupScript_Continue
dw MapSetupScript_ReloadMap
dw MapSetupScript_Teleport
dw MapSetupScript_Door
dw MapSetupScript_Fall
dw MapSetupScript_Connection
dw MapSetupScript_LinkReturn
... |
#include "Vehicle.h"
#include "SmallCar.h"
int main(){
Vehicle newVech(1999, "Volga");
newVech.getModel();
SmallCar smallCar(1999, "Small Car", "Alex");
smallCar.getModel();
Vehicle* v2 = &smallCar;
v2->getInfo();
return 0;
}
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: prefsnd.asm
AUTHOR: Gene Anderson, Aug 25, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descri... |
#ifndef _COTL_LIBUTIL_HPP
#define _COTL_LIBUTIL_HPP
#include "cotl_helper.hpp"
namespace cotl {
namespace libutil {
#define _COTL_FUNC_BEGIN \
try {\
(void) self; (void) caller; (void) lib; (void) tunnel;\
{
#ifdef _COTL_USE_ERR_CATCH
#ifdef _COTL_USE_ERR_FULL
#define _COTL_ERR_INFO... |
; A050188: T(n,3), array T as in A050186; a count of aperiodic binary words.
; 0,4,10,18,35,56,81,120,165,216,286,364,450,560,680,810,969,1140,1323,1540,1771,2016,2300,2600,2916,3276,3654,4050,4495,4960,5445,5984,6545,7128,7770,8436,9126,9880,10660,11466,12341,13244,14175
add $0,3
mov $2,$0
mov $3,3
lpb $2
mov $4,$0... |
/**
*
* .. invisible:
* _ _ _____ _ _____ _____
*
* | | | | ___| | | ___/ ___|
*
* | | | | |__ | | | |__ \ `--.
*
* | | | | __|| | | __| `--. \
*
* \ \_/ / |___| |___| |___/\__/ /
*
* \___/\____/\_____|____/\____/
*
* Licensed to the Apache Software Foundation (ASF) u... |
SFX_Battle_1C_Ch1:
unknownnoise0x20 2, 194, 1
unknownnoise0x20 15, 244, 1
unknownnoise0x20 15, 242, 1
endchannel
|
/*
* configuration_options_fwd.hpp
*
* Created on: 22 мая 2016 г.
* Author: sergey.fedorov
*/
#ifndef WIRE_CORE_DETAIL_CONFIGURATION_OPTIONS_FWD_HPP_
#define WIRE_CORE_DETAIL_CONFIGURATION_OPTIONS_FWD_HPP_
namespace wire {
namespace core {
namespace detail {
struct connector_options;
struct adapter_option... |
;-------------------
; test for cpi
;-------------------
.equ sreg = 0x3f
;-------------------
ldi r16,0x28
ldi r20,0x70
ldi r24,0xc0
ldi r31,0xd8
ldi r17,0x00
ldi r21,0x7f
ldi r25,0x80
ldi r30,0xff
;-------------------
cpi r16,0x28
in r5 ,sreg
cpi r20,0x28
... |
;print larger of two numbers
section .data
msg1 : db 'Enter first number : '
l1 : equ $-msg1
msg2 : db 'Enter second number : '
l2 : equ $-msg2
section .bss
d1 : resb 1
d2 : resb 2
section .text
global _start:
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg1
mov edx, l1
int 80h
mov eax, 3
mov ebx, 0
mov ecx, d1... |
; A170064: Number of reduced words of length n in Coxeter group on 7 generators S_i with relations (S_i)^2 = (S_i S_j)^37 = I.
; 1,7,42,252,1512,9072,54432,326592,1959552,11757312,70543872,423263232,2539579392,15237476352,91424858112,548549148672,3291294892032,19747769352192,118486616113152,710919696678912,426551818007... |
; A040376: Continued fraction for sqrt(396).
; Submitted by Jon Maiga
; 19,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1,38,1,8,1
gcd $0,262156
mul $0,42
mod $0,13
mul $0,2
mov $1,$0
sub $... |
;;; Copyright 2020 Tadashi G. Takaoka
;;;
;;; 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 ... |
#include<iostream>
using namespace std;
// node class for linked list
class node{
public:
int data;
node* next;
//constructor which will assign the given value to node and set next pointer to null
node(int key){
data = key;
next = nullptr;
}
};
// Function will creat... |
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB 0DH,0AH,"AL :"
PROMPT_2 DB 0DH,0AH,\'Processed value of AL : $\'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
LEA DX, PROMPT_1
MOV AH, 9
INT 21H
MOV AL, 38H
MOV BL, AL ... |
db 0 ; species ID placeholder
db 90, 85, 100, 85, 95, 125
; hp atk def spd sat sdf
db ICE, FLYING ; type
db 3 ; catch rate
db 215 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 100 ; unknown 1
db 80 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/articuno... |
// Copyright 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 "chrome/browser/ash/login/test/local_policy_test_server_mixin.h"
#include <string>
#include <utility>
#include "ash/components/attestation/fake... |
*=$1001 "BASIC installer and song data"
.word basic_line2
.word $0010
.byte $9e
.text "4119" // TRIPLE CHECK THIS
.byte $00
basic_line2:
.word end_basic
.word $0020
.byte $9e
.text "7024"
// now its installed
.byte $00
end_basic:
.word $0000
//*=$1... |
// Copyright (c) 2020 Han Jin
// Licensed under the MIT License <http://opensource.org/licenses/MIT>
#include <QApplication>
#include <QTranslator>
#include <QtDebug>
#include <QtGlobal>
#include <iostream>
#include "viewmodels/mainwindowvm.h"
#include "views/mainwindow.h"
void LoadTranslator(QApplication& app) {
a... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "fx.h"
#include "c_te_effect_dispatch.h"
#include "basecombatweapon_shared.h"
#include "baseviewmodel_shared.h"
#... |
mov [0], ds ; out: 8c 1e 00 00
mov word [0], ds ; out: 8c 1e 00 00
mov ax, ds ; out: 8c d8
mov eax, ds ; out: 66 8c d8
mov ds, ax ; out: 8e d8
mov ds, eax ; out: 8e d8
mov ds, [0] ; out: 8e 1e 00 00
mov ds, word [0] ; out: 8e 1e 00 00
mov word ds, [0] ; out: 8e 1e 00 00
|
; A142063: Primes congruent to 25 mod 33.
; Submitted by Jon Maiga
; 157,223,421,487,619,751,883,1213,1279,1543,1609,1741,1873,2137,2203,2269,2467,2731,2797,3061,3259,3391,3457,3853,3919,4051,4447,4513,4909,5107,5437,5503,5569,5701,6163,6229,6361,6427,6691,6823,7219,7351,7417,7549,7681,7879,8011,8209,8539,8737,8803,900... |
/***************************************************//**
* @file TemperatureFeatureAdapter.cpp
* @date January 2015
* @author Ocean Optics, Inc., Kirk Clendinning, Heliospectra
*
* This is a wrapper that allows access to SeaBreeze
* TemperatureFeatureInterface instances.
*
* LICENSE:
*
* SeaBreeze Copy... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* Tests overlapping LCD text
*/
#include "gm.h"
#include "sk_tool_utils.h"
#include "SkCanvas.h"
#include "SkSurface.h"
#include "SkTextBlob.h"
namespace skiagm {
con... |
; A024180: a(n) = floor(3rd elementary symmetric function of 2,3,...,n+3)/ 2nd elementary symmetric function of (2,3,...,n+3) ).
; 0,2,3,5,7,10,13,16,20,24,28,32,37,42,48,54,60,67,74,81,88,96,104,113,122,131,141,151,161,171,182,193,205,217,229,242,255,268,281,295,309,324,339,354,370,386,402,418,435,452,470,488,506,525,... |
; void *sp1_PreShiftSpr(uchar flag, uchar height, uchar width, void *srcframe, void *destframe, uchar rshift)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_PreShiftSpr_callee
EXTERN asm_sp1_PreShiftSpr
_sp1_PreShiftSpr_callee:
exx
pop bc
exx
pop hl
ld h,l
pop bc
ld l,c
pop bc
l... |
/*
* 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... |
build/dhrystone.elf: file format elf32-littleriscv
Disassembly of section .yolo:
00000000 <trap_entry-0x20>:
j _start
0: 1380006f j 138 <_start>
nop
4: 00000013 nop
nop
8: 00000013 nop
nop
c: 00000013 nop
nop
10: 00000013 nop
nop
14: ... |
/******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in source and binar... |
SECTION code_clib
SECTION code_fp_am9511
PUBLIC l_f32_swap
IFDEF __CPU_8085__
EXTERN asm_switch_arg
; Entry: dehl = right hand operand
; Stack: defw return address
; defw left hand LSW
; defw left hand MSW
.l_f32_swap
pop bc
push de
push hl
push bc
call asm_switch_arg
pop ... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434422A34748",
"RBX": "0x515253542AAB2BAC",
"RCX": "0x30B131B232B333B4"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mo... |
; A164303: a(n) = 2*a(n-1) + a(n-2) for n > 1; a(0) = 3, a(1) = 11.
; 3,11,25,61,147,355,857,2069,4995,12059,29113,70285,169683,409651,988985,2387621,5764227,13916075,33596377,81108829,195814035,472736899,1141287833,2755312565,6651912963,16059138491,38770189945,93599518381,225969226707,545537971795,1317045170297,317962... |
LIST OFF
KERNAL_PRINTCHR EQU $e716
KERNAL_GETIN EQU $ffe4
RESERVED_STACK_POINTER DC.B 0
FILE_ERROR_MSG DC.B 0
; setup default mem layout for xc-basic runtime environment
STDLIB_MEMSETUP SUBROUTINE
lda #$36
sta $01
rts
; print null-terminated petscii string
STDLIB_PRINT SUBROUTINE
sta $6f ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x13a6e, %rdx
nop
nop
nop
nop
add $19572, %r11
movups (%rdx), %xmm3
vpextrq $1, %xmm3, %rbx
nop
nop
nop
cmp %r12, %r12
lea addresses_D_ht+0xd5ee, %r12
nop
nop
nop
nop
sub %rcx,... |
// Copyright 2014 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 "components/bookmarks/browser/bookmark_model.h"
#include <algorithm>
#include <functional>
#include <memory>
#include <string>
#include <utility... |
; A338929: a(n) is the smallest prime number p larger than A072668(n) such that p is equal to 1 (mod A072668(n)).
; Submitted by Jamie Morken(s2)
; 7,11,29,17,19,23,53,29,31,103,191,41,43,47,73,101,53,109,59,311,97,67,103,71,149,191,79,83,173,89,181,283,97,197,101,103,107,109,331,113,229,709,367,311,127,193,131,269,137... |
; A127984: a(n) = (n/3 + 7/9)*2^(n - 1) + (-1)^n/9.
; Submitted by Jon Maiga
; 1,3,7,17,39,89,199,441,967,2105,4551,9785,20935,44601,94663,200249,422343,888377,1864135,3903033,8155591,17010233,35418567,73633337,152859079,316902969,656175559,1357090361,2803659207,5786275385,11930464711,24576757305,50585170375,1040336522... |
%macro cmpop 4
defop %1%2,%1_%3
pop rax
pop rbx
pop rcx
cmp rbx, rcx
%4 .true
push 0
push rax
ret
.true:
push 1
push rax
ret
%endmacro
%macro invcmpop 4
defop %1%2,%1_%3
pop rax
pop rbx
pop rcx
cmp rbx, rcx
%4 .false
push 1
push rax
ret
.false:
push 0
push rax
ret
%endmacro
... |
dnl AMD K6 mpn_modexact_1_odd -- exact division style remainder.
dnl Copyright 2000-2003, 2007 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... |
#include "common/network/base_listener_impl.h"
#include "envoy/common/exception.h"
#include "common/common/assert.h"
#include "common/common/empty_string.h"
#include "common/common/fmt.h"
#include "common/event/dispatcher_impl.h"
#include "common/event/file_event_impl.h"
#include "common/network/address_impl.h"
#incl... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x13514, %r13
cmp $42217, %rcx
mov (%r13), %esi
nop
nop
nop
add %r9, %r9
lea addresses_D_ht+0x1907c, %rsi
lea addresses_normal_ht+0x16b04, %rdi
nop
nop
nop
nop
sub $27283, %rbx
mov $47, %... |
; $Id: bit_open.asm,v 1.4 2016/06/16 20:23:52 dom Exp $
;
; TRS-80 1 bit sound functions
;
; void bit_open();
;
; Stefano Bodrato - 8/4/2008
;
SECTION code_clib
PUBLIC bit_open
PUBLIC _bit_open
EXTERN __snd_tick
.bit_open
._bit_open
ld a,1
ld (__snd_tick),a
... |
; int wv_stack_empty_fastcall(wv_stack_t *s)
SECTION code_clib
SECTION code_adt_wv_stack
PUBLIC _wv_stack_empty_fastcall
EXTERN asm_wv_stack_empty
defc _wv_stack_empty_fastcall = asm_wv_stack_empty
|
; A080755: a(n) = ceiling(n*(1+1/sqrt(2))).
; 2,4,6,7,9,11,12,14,16,18,19,21,23,24,26,28,30,31,33,35,36,38,40,41,43,45,47,48,50,52,53,55,57,59,60,62,64,65,67,69,70,72,74,76,77,79,81,82,84,86,88,89,91,93,94,96,98,100,101,103,105,106,108,110,111,113,115,117,118,120,122,123,125,127,129,130,132,134,135,137,139,140,142,144,... |
#include "etl/assert.h"
#include <gtest/gtest.h>
#include <stdexcept>
namespace etl {
static void assertion_failed2(char const * file,
int line,
char const * function,
char const * expression) {
FAIL() << "Assertion failed at ... |
/*
* Software License Agreement (BSD License)
*
* Robot Operating System code by the University of Osnabrück
* Copyright (c) 2015, University of Osnabrück
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
#include "kxarm.h"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; STUBS & DATA SECTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
THUNK_CODESIZE equ 0x10 ... |
; A083426: (4*7^n+2^n)/5.
; Submitted by Jamie Morken(s1)
; 1,6,40,276,1924,13452,94132,658860,4611892,32282988,225980404,1581861804,11073030580,77511209964,542578461556,3798049214508,26586344468788,186104411215980,1302730878380788,9119116148403372
mov $1,7
pow $1,$0
mul $1,4
mov $2,2
pow $2,$0
add $1,$2
mov $0,$1
div... |
; A342636: a(0) = 0, a(1) = 1; a(2*n) = a(n), a(2*n+1) = 7*a(n) + a(n+1).
; Submitted by Christian Krause
; 0,1,1,8,1,15,8,57,1,22,15,113,8,113,57,400,1,29,22,169,15,218,113,799,8,169,113,848,57,799,400,2801,1,36,29,225,22,323,169,1198,15,323,218,1639,113,1590,799,5601,8,225,169,1296,113,1639,848,5993,57,1198,799,5993,... |
; A025717: Index of 6^n within sequence of numbers of form 6^i*8^j.
; 1,2,4,7,11,16,22,29,36,44,53,63,74,86,99,112,126,141,157,174,192,211,230,250,271,293,316,340,365,390,416,443,471,500,530,561,593,625,658,692,727,763,800,838,876,915,955,996,1038,1081,1125,1169,1214,1260,1307,1355
mov $12,$0
mov $14,$0
add $14,1
lpb ... |
; A212135: Number of (w,x,y,z) with all terms in {1,...,n} and median<mean.
; 0,0,4,24,84,220,480,924,1624,2664,4140,6160,8844,12324,16744,22260,29040,37264,47124,58824,72580,88620,107184,128524,152904,180600,211900,247104,286524,330484,379320,433380,493024,558624,630564,709240,795060,888444,989824,1099644,1218360,1346... |
; size_t w_vector_append(b_vector_t *v, void *item)
SECTION code_adt_w_vector
PUBLIC w_vector_append_callee
w_vector_append_callee:
pop hl
pop bc
ex (sp),hl
INCLUDE "adt/w_vector/z80/asm_w_vector_append.asm"
|
(+f0.0) sel(8) g6<1>F g3<8,8,1>F 0x0F /* 0F */ { align1 };
(-f0.0) sel(8) g2<1>UD g2<8,8,1>UD 0x00000000UD { align1 };
(+f0.0) sel(16) g10<1>F g6<8,8,1>F 0x0F /* 0F */ { align1 compr };
(-f0.0) sel(16) g4<1>UD g6<8,8,1>UD 0x00000000UD { align1 compr };
(+f0... |
%assign score_display_left_x 68
%assign score_display_y 2
%assign score_display_width 5
draw_initial_score:
pusha
mov dl, score_display_left_x
mov dh, score_display_y
mov al, '0'
mov ch, score_display_left_x
mov cl, score_display_left_x
add cl, score_display_width
call print_horizontal_line
sub dh, 1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x59eb, %rsi
lea addresses_D_ht+0xe740, %rdi
nop
nop
nop
nop
nop
inc %r13
mov $71, %rcx
rep movsw
nop
nop
nop
nop
and %r10, %r10
pop %rsi
pop %rdi
pop %rcx
pop %r13
pop %r10
ret
.global s_faulty_load
s... |
Entity start
No options
Constants
0 S start
1 S var1
2 I 10
3 I 1
4 S io.writeln
End
Valid context (always)
No properties
Def start
No parameters
Local variables
0 int var1
End
No results
ldconst 2 --> [10]
stvar 0 --> [var1]
ldvar 0 --> [var1]
ldconst 3 --> [1]
lcall 4 --> [io.writ... |
/*
Original author:
Corey Shay
corey@signalflowtechnologies.com
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-comm... |
; A047300: Numbers that are congruent to {2, 3, 4, 6} mod 7.
; 2,3,4,6,9,10,11,13,16,17,18,20,23,24,25,27,30,31,32,34,37,38,39,41,44,45,46,48,51,52,53,55,58,59,60,62,65,66,67,69,72,73,74,76,79,80,81,83,86,87,88,90,93,94,95,97,100,101,102,104,107,108,109,111
add $0,4
mov $1,$0
div $1,4
mul $1,2
mov $2,$0
lpb $2,1
mov... |
; A157079: 32805000n^2 - 10513800n + 842401.
; 23133601,111034801,264546001,483667201,768398401,1118739601,1534690801,2016252001,2563423201,3176204401,3854595601,4598596801,5408208001,6283429201,7224260401,8230701601,9302752801,10440414001,11643685201,12912566401,14247057601,15647158801,17112870001,18644191201,20241122... |
; variables declared
.segment "ZEROPAGE"
in_nmi: .res 2
temp1: .res 2
temp2: .res 2
temp3: .res 2
temp4: .res 2
temp5: .res 2
temp6: .res 2
.segment "BSS"
PAL_BUFFER: .res 512 ;palette
OAM_BUFFER: .res 512 ;low table
OAM_BUFFER2: .res 32 ;high table
|
// 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... |
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "PlatformFactory.hpp"
// applications
#include <application-bell-alarm/ApplicationBellAlarm.hpp>
#include <application-bell-onboarding/ApplicationBellOnBoarding.hpp>
#includ... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: floor.asm,v 1.3 2015/01/21 10:56:29 stefano Exp $
;
INCLUDE "cpcfirm.def"
INCLUDE "cpcfp.def"
PUBLIC floor
PUBLIC floorc
PUBLIC floorc2
EXTERN get_para
.floor call get_para
call firmware
.floorc defw CP... |
title "Context Swap"
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
; If you do not agree to the terms, do not use the code.
;
;
; Module Name:
;
; ctx... |
SECTION code_clib
SECTION code_fp_am9511
PUBLIC __dtoa_sgnabs
EXTERN asm_am9511__dtoa_sgnabs
; enter : x = dehl' = floating point number
;
; exit : dehl' = |x|
; a = sgn(x) = 1 if negative, 0 otherwise
;
; uses : af
DEFC __dtoa_sgnabs = asm_am9511__dtoa_sgnabs ; enter stack =... |
%include "io.inc"
section .bss
cpuid_info resb 13
section .text
global CMAIN
CMAIN:
;write your code here
xor eax, eax
cpuid
mov [cpuid_info], ebx
mov [cpuid_info ], edx
mov [cpuid_info + 8], ecx
PRINT_STRING cpuid_info
ret |
;*******************************************************************************
;* Tutorial Twenty-Seven Bars and Gauges *
;* *
;* Written By John C. Dale ... |
; A107979: a(n) = 4*a(n-1) + 2*a(n-2) for n>1, with a(0)=2, a(1)=9.
; 2,9,40,178,792,3524,15680,69768,310432,1381264,6145920,27346208,121676672,541399104,2408949760,10718597248,47692288512,212206348544,944209971200,4201252581888,18693430269952,83176226243584
add $0,2
seq $0,90017 ; a(n) = 4*a(n-1) + 2*a(n-2) for n>1, ... |
; A343372: Number of sets in the geometry determined by the Hausdorff metric at each location between two sets defined by a complete bipartite graph K(3,n) (with n at least 4) missing three edges, where exactly two removed edges are incident to the same vertex in the 3-point set and exactly two removed edges are incide... |
#include "UUID.hpp"
namespace Aurora
{
static std::atomic_int32_t GlobalCounter32{0};
static std::atomic_int64_t GlobalCounter64{0};
UUID64::UUID64() : UUID64(0) {}
UUID64::UUID64(uint64_t uuid) : m_UUID(uuid) {}
UUID64::UUID64(const UUID64& other) : m_UUID(other.m_UUID) {}
UUID64 UUID64::Generate()
{
retur... |
; ==================================================================
; MikeOS -- The Mike Operating System kernel
; Copyright (C) 2006 - 2019 MikeOS Developers -- see doc/LICENSE.TXT
;
; COMMAND LINE INTERFACE
; ==================================================================
os_command_line:
call os_clea... |
;
; This file is a part of TTMath Bignum Library
; and is distributed under the (new) BSD licence.
; Author: Christian Kaiser <chk@online.de>
;
;
; Copyright (c) 2009, Christian Kaiser
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided... |
; https://jameshfisher.com/2018/03/10/linux-assembly-hello-world.html
global _start
section .text
_start:
mov rax, 1 ; write(
mov rdi, 1 ; STDOUT_FILENO,
mov rsi, msg ; " Hello, world!\n",
mov rdx, msglen ; sizeof("Hello, world!\n")
syscall ; );
mov ra... |
%ifdef CONFIG
{
"RegData": {
"RAX": ["0"]
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rcx, 0xe0000000
fldz
fst qword [rcx]
mov rax, [rcx]
hlt
|
; float modf(float value, float *iptr) __z88dk_callee
SECTION code_fp_math48
PUBLIC cm48_sdccix_modf_callee, l0_cm48_sdccix_modf_callee
EXTERN cm48_sdccixp_d2m48, am48_modf, cm48_sdccixp_dstore, cm48_sdccixp_m482d
cm48_sdccix_modf_callee:
pop af
pop de
pop hl ; hlde = float value... |
; void *heap_alloc(void *heap, size_t size)
INCLUDE "clib_cfg.asm"
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC heap_alloc
EXTERN asm_heap_alloc
heap_alloc:
pop af
pop hl
pop de
push de
push hl
push af
... |
; A043665: Numbers whose base-14 representation has exactly 4 runs.
; 2758,2760,2761,2762,2763,2764,2765,2766,2767,2768,2769,2770,2771,2772,2773,2775,2776,2777,2778,2779,2780,2781,2782,2783,2784,2785,2786,2787,2788,2790,2791,2792,2793,2794,2795,2796
mov $1,$0
add $0,11
add $1,13
div $1,14
add $0,$1
add $0,2747
|
###############################################################################
# Copyright 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") containe... |
boardTop:
DB "+------------[ RC2014 Conway's Life ]--------------------------------------------+",0
boardBottom:
DB "+----------------------------------------------[2020 James Grimwood @ncot_tech]--+",0
currentGrid: ; Pointer to memory...
DW screenBuf2
otherGrid:
DW screenBuf1
screenBuf1:
... |
PRESERVE8
THUMB
AREA |.text|,CODE,READONLY
EXPORT func
EXTERN func1
func
MOVS R1,#5
BL func1
stop B stop
END
++++++++++++++++++++++++++
PRESERVE8
THUMB
AREA |.text|,CODE,READONLY
EXPORT func1
func1
MOVS R0,#10
BX LR
stop B stop
END
++++++++++++++++++++++++++++++
PRESERVE8
THUMB
AREA |.text|,CODE,REA... |
#include <iostream>
#include <functional>
#include <numeric>
#include <map>
#include "markov.h"
int main(){
//SIMULATE DISCRETE TIME MARKOV CHAIN
std::vector< std::vector<double> > matrix(3,std::vector<double> (3)); //initializes a 3x3 matrix with zeros
//set transition matrix
matrix[0][1] = 1;
matrix[... |
;;
;; 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... |
; A022145: Coordination sequence for root lattice B_3.
; 1,18,74,170,306,482,698,954,1250,1586,1962,2378,2834,3330,3866,4442,5058,5714,6410,7146,7922,8738,9594,10490,11426,12402,13418,14474,15570,16706,17882,19098,20354,21650,22986,24362,25778,27234,28730,30266,31842,33458,35114,36810,38546,40322,42138,43994,45890,4782... |
###############################################################################
# Copyright 2019 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") containe... |
; A253515: Count down from 2*k to 1, then from 2*(k+1) to 1 and so on.
; 2,1,4,3,2,1,6,5,4,3,2,1,8,7,6,5,4,3,2,1,10,9,8,7,6,5,4,3,2,1,12,11,10,9,8,7,6,5,4,3,2,1,14,13,12,11,10,9,8,7,6,5,4,3,2,1,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5... |
// Tencent is pleased to support the open source community by making sluaunreal available.
// Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the BSD 3-Clause License (the "License");
// you may not use this file except in compliance with the License. You may obtain a cop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.