text stringlengths 1 1.05M |
|---|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: fades
FILE: fades.asm
AUTHOR: Gene Anderson, Sep 11, 1991
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 9/11/91 Initi... |
// N64 Exception Test
arch n64.cpu
endian msb
output "ExceptionTest.N64", create
// 1024 KB + 4 KB = 1028 KB
fill $0010'1000 // Set ROM Size
origin $00000000
base $80000000
include "../LIB/N64.INC"
include "../LIB/A64.INC"
include "N64_Header.asm"
insert "../LIB/N64_BOOTCODE.BIN"
constant fb1($A010'0000)
Start: ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1a609, %rcx
clflush (%rcx)
nop
nop
nop
xor $12716, %rbp
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
nop
add $59137, %rdi
lea addresses_WC_ht+0x14ec9, %rsi
lea addresses_WC_ht+0... |
//===--- ModernizeTidyModule.cpp - clang-tidy -----------------------------===//
//
// 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
//
//===---------------------------... |
#include "CGameExporter.h"
#include "CGameInfo.h"
#include "CResourceIterator.h"
#include "CResourceStore.h"
#include "Core/CompressionUtil.h"
#include "Core/Resource/CWorld.h"
#include "Core/Resource/Script/CGameTemplate.h"
#include <Common/Macros.h>
#include <Common/CScopedTimer.h>
#include <Common/FileIO.h>
#include... |
.size 8000
.text@49
inc a
ldff(45), a
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 41
.text@1000
lstatint:
xor a, a
ldff(c), a
ldff(0f), a
.text@1... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
; A016742: Even squares: a(n) = (2*n)^2.
; 0,4,16,36,64,100,144,196,256,324,400,484,576,676,784,900,1024,1156,1296,1444,1600,1764,1936,2116,2304,2500,2704,2916,3136,3364,3600,3844,4096,4356,4624,4900,5184,5476,5776,6084,6400,6724,7056,7396,7744,8100,8464,8836,9216,9604,10000,10404,10816,11236,11664,12100,12544,12996,13... |
/******************************************************************************
* $Id: ogrwfslayer.cpp 27044 2014-03-16 23:41:27Z rouault $
*
* Project: WFS Translator
* Purpose: Implements OGRWFSLayer class.
* Author: Even Rouault, <even dot rouault at mines dash paris dot org>
*
***************************... |
; A182241: a(n) = A161151(2*n)/2
; 3,10,7,36,11,26,15,136,19,42,23,100,27,58,31,528,35,74,39,164,43,90,47,392,51,106,55,228,59,122,63,2080,67,138,71,292,75,154,79,648,83,170,87,356,91,186,95,1552,99
mov $3,10
mov $7,1
add $7,$0
mov $5,$7
add $5,$0
mov $0,2
add $3,$5
mov $2,$3
mov $5,9
mov $6,5
mov $9,9
sub $9,$7
add $... |
// This file is here only to bring in the parts of Reflection.mm that apply
// when not using an objc runtime.
#include "swift/Runtime/Config.h"
#if !SWIFT_OBJC_INTEROP
#include "Reflection.mm"
#endif
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: spreadsheetChart.asm
AUTHOR: John Wedgwood, Sep 16, 1991
METHODS:
Name Description
---- -----------
MSG_SPREADSHEET_CHART_RANGE ... |
TITLE QUICK - Copyright (c) SLR Systems 1994
INCLUDE MACROS
INCLUDE SYMBOLS
INCLUDE MODULES
if fg_segm
INCLUDE SEGMSYMS
endif
if fg_pe
INCLUDE RESSTRUC
endif
PUBLIC TQUICK_NUMERIC,TQUICK_ALPHA,TQUICK_ALPHA_XREF
.DATA
EXTERNDEF XR_CURNMOD_GINDEX:DWORD
EXTERNDEF FIRST_IMPMOD_GINDEX:DWORD,FIRST_M... |
/*
* Copyright 2020 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/effects/SkImageFilters.h"
#include "modules/svg/include/SkSVGFe.h"
#include "modules/svg/include/SkSVGFilter.h"
#include "modules/svg/include/SkSVGFilterCont... |
stage_pit_palette_data:
; Background
.byt $09,$08,$18,$28, $09,$0d,$1a,$28, $09,$0d,$16,$25, $09,$01,$11,$21
; Sprites
.byt $09,$08,$1a,$20, $09,$08,$10,$37, $09,$08,$16,$10, $09,$08,$28,$37
nametable_stage_pit:
.byt $00,$26
.byt $01, $00,$14, ... |
%macro read 2
mov rax,0
mov rdi,0
mov rsi,%1
mov rdx,%2
syscall
%endmacro
%macro display 2
mov rax,1
mov rdi,1
mov rsi,%1
mov rdx,%2
syscall
%endmacro
%macro fopen 1
mov rax,2
mov rdi,%1
mov rsi,2
mov rdx,0777o
syscall
%endmacro
%macro fread 3
mov rax,0
mov rdi,%1
mov rsi,%2
mov rdx,%3
syscall
%endmacro
%macro fwri... |
;@DOES HL+=A
;@INPUT HL number
;@INPUT A increment
;@OUTPUT HL number+increment
;@DESTROYS AF
sys_AddHLAndA:
push bc
ld bc,0
ld c,a
add hl,bc
pop bc
ret
|
// Copyright 2020 Emelkhovsky Ekaterina
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <algorithm>
#include <vector>
#include "./shell_sort.h"
TEST(shell_sort, Test_1) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
std::vector<int> list = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
std::ve... |
;
; STNP lib
;
STNP_CLI_MSG_TYPE_CONNECTION = 0
STNP_CLI_MSG_TYPE_CONTROLLER_STATE = 1
STNP_SRV_MSG_TYPE_CONNECTED = 0
STNP_SRV_MSG_TYPE_START_GAME = 1
STNP_SRV_MSG_TYPE_NEWSTATE = 2
STNP_SRV_MSG_TYPE_GAMEOVER = 3
STNP_SRV_MSG_TYPE_DISCONNECTED = 4
STNP_START_GAME_FIELD_STAGE = 1
STNP_START_GAME_FIELD_STOCK = 2
STNP... |
SafariZoneEastRestHouse_Object:
db $a ; border block
db 2 ; warps
warp 2, 7, 4, SAFARI_ZONE_EAST
warp 3, 7, 4, SAFARI_ZONE_EAST
db 0 ; signs
db 3 ; objects
object SPRITE_OAK_AIDE, 1, 3, WALK, 1, 1 ; person
object SPRITE_ROCKER, 4, 2, STAY, NONE, 2 ; person
object SPRITE_LAPRAS_GIVER, 5, 2, STAY, NONE, 3 ; p... |
; size_t b_vector_push_back(b_vector_t *v, int c)
SECTION code_adt_b_vector
PUBLIC b_vector_push_back
EXTERN b_vector_append
defc b_vector_push_back = b_vector_append
|
; A334085: GCD of n and the product of all primes < n.
; 1,1,1,2,1,6,1,2,3,10,1,6,1,14,15,2,1,6,1,10,21,22,1,6,5,26,3,14,1,30,1,2,33,34,35,6,1,38,39,10,1,42,1,22,15,46,1,6,7,10,51,26,1,6,55,14,57,58,1,30,1,62,21,2,65,66,1,34,69,70,1,6,1,74,15,38,77,78,1,10,3,82,1,42,85,86,87,22,1,30,91,46,93,94,95,6,1,14,33,10
add $0,... |
; A063886: Number of n-step walks on a line starting from the origin but not returning to it.
; 1,2,2,4,6,12,20,40,70,140,252,504,924,1848,3432,6864,12870,25740,48620,97240,184756,369512,705432,1410864,2704156,5408312,10400600,20801200,40116600,80233200,155117520,310235040,601080390,1202160780,2333606220,4667212440,907... |
; A319658: a(n) is the minimal number of successive ON cells that appears in n-th generation of rule-30 1D cellular automaton started from a single ON cell.
; 1,3,1,2,1,2,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1... |
; A121470: Expansion of x*(1+5*x+2*x^2+x^3)/((1+x)*(1-x)^3).
; 1,7,16,31,49,73,100,133,169,211,256,307,361,421,484,553,625,703,784,871,961,1057,1156,1261,1369,1483,1600,1723,1849,1981,2116,2257,2401,2551,2704,2863,3025,3193,3364,3541,3721,3907,4096,4291,4489,4693,4900
mul $0,6
add $0,4
pow $0,2
mov $1,$0
div $1,48
mul... |
; A091957: a(1)=0, a(2)=1, a(n)=A000217(a(n-1)) + A000217(a(n-2)).
; Submitted by Christian Krause
; 0,1,1,2,4,13,101,5242,13747054,94490767454888,4464252567107002358694986701,9964775491460730298984873909049635615687553262572198767
lpb $0
sub $0,1
mov $2,$3
mul $2,$3
bin $3,2
add $3,$1
add $1,$2
add $3,1... |
; A176393: a(n) = A176100(n) + 1 = 2*A141468(n) + 1.
; 1,3,9,13,17,19,21,25,29,31,33,37,41,43,45,49,51,53,55,57,61,65,67,69,71,73,77,79,81,85,89,91,93,97,99,101,103,105,109,111,113,115,117,121,125,127,129,131,133,137,139,141,145,149,151,153,155,157,161,163,165
add $0,1
mov $1,100
lpb $1,36
mov $2,$0
mov $3,130665
... |
/*!
* Copyright 2014-2019 by Contributors
* \file updater_histmaker.cc
* \brief use histogram counting to construct a tree
* \author Tianqi Chen
*/
#include <rabit/rabit.h>
#include <vector>
#include <algorithm>
#include "xgboost/tree_updater.h"
#include "xgboost/base.h"
#include "xgboost/logging.h"
#include "..... |
;
; Startup Code for Z88 applications
;
; The entry point is a dummy function in the DOR which then
; jumps to routine in this file
;
; 1/4/99 djm
;
; 7/4/99 djm Added function to handle commands - this requires
; the user to do something for it!
;
; 4/5/99 djm Added in functionality to re... |
; A105133: Numbers n such that 8n + 5 is prime.
; 0,1,3,4,6,7,12,13,18,19,21,22,24,28,33,34,36,39,43,46,48,49,52,57,63,67,69,76,81,82,84,87,88,91,94,96,99,102,103,106,109,117,124,126,127,132,133,136,138,139,147,151,153,154,159,162,171,172,178,181,186,193,199,201,202,204,208,211,213,216,217,223,232,234,237,241,243,246,2... |
; A003314: Binary entropy function: a(1)=0; for n > 1, a(n) = n + min { a(k)+a(n-k) : 1 <= k <= n-1 }.
; 0,2,5,8,12,16,20,24,29,34,39,44,49,54,59,64,70,76,82,88,94,100,106,112,118,124,130,136,142,148,154,160,167,174,181,188,195,202,209,216,223,230,237,244,251,258,265,272,279,286,293,300,307,314,321,328,335,342,349,356,... |
;;----------------------------------------------------------------------------;;
;; Change filter ATTR1 to select the correct files from server by language.
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in co... |
.386
STACK segment USE16 STACK
DB 200 DUP(0)
STACK ENDS
;数据段
DATA SEGMENT USE16
TIP DB 'ENROLLED $'
DATA ENDS
;代码段
CODE SEGMENT USE16
ASSUME CS:CODE,DS:CODE,SS:STACK
COUNT DB 18
HOUR DB ?,?,':'
MIN db ?,?,':'
SEC DB ?,?
BUF_LEN = $ - HOUR
CURSOR DW ?
OLDBX DW 00E0H
OLDES DW 0F100H
OLD_IN... |
; A195034: Vertex number of a square spiral in which the length of the first two edges are the legs of the primitive Pythagorean triple [21, 20, 29]. The edges of the spiral have length A195033.
; 0,21,41,83,123,186,246,330,410,515,615,741,861,1008,1148,1316,1476,1665,1845,2055,2255,2486,2706,2958,3198,3471,3731,4025,4... |
; A173044: Product plus sum of five consecutive nonnegative numbers.
; 10,135,740,2545,6750,15155,30280,55485,95090,154495,240300,360425,524230,742635,1028240,1395445,1860570,2441975,3160180,4037985,5100590,6375715,7893720,9687725,11793730,14250735,17100860,20389465,24165270,28480475,33390880,38956005,45239210,52307815... |
; A104474: a(n) = binomial(n+3,3)*binomial(n+7,3).
; Submitted by Christian Krause, https://github.com/ckrause
; 35,224,840,2400,5775,12320,24024,43680,75075,123200,194480,297024,440895,638400,904400,1256640,1716099,2307360,3059000,4004000,5180175,6630624,8404200,10556000,13147875,16248960,19936224,24295040,29419775
a... |
; A173316: 6*n! - 1.
; 5,5,11,35,143,719,4319,30239,241919,2177279,21772799,239500799,2874009599,37362124799,523069747199,7846046207999,125536739327999,2134124568575999
gcd $1,$0
cal $1,142
mul $1,6
sub $1,1
|
; A342423: a(n) = Sum_{k=1..n} gcd(k,n)^gcd(k,n).
; Submitted by Jamie Morken(s1.)
; 1,5,29,262,3129,46693,823549,16777484,387420549,10000003145,285311670621,8916100495490,302875106592265,11112006826381589,437893890380865741,18446744073726329368,827240261886336764193,39346408075296925089309,1978419655660313589123997,10... |
IDEAL
P386
SEGMENT lerssicode
ASSUME cs:lerssicode,ds:nothing,es:nothing
LABEL body BYTE
INCLUDE 'exebody.inc'
LABEL header BYTE
INCLUDE 'exehead.inc'
PROC start NEAR
mov ax, cs
add [word cs:header+0eh], ax
add [word cs:header+16h], ax
sub ax, 10h
mov es, a... |
// Copyright 2013 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/autofill/core/browser/autofill_field.h"
#include "base/logging.h"
#include "base/sha1.h"
#include "base/strings/string_number_conver... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ie_format_parser.h"
#include "ie_layer_validators.hpp"
#include <fstream>
#include <set>
#include <sstream>
#include <unordered_set>
#include "ie_blob_proxy.hpp"
#include "ie_layer_parsers.h"
#include "xml_parse_utils.h"... |
; A102785: G.f.: (x-1)/(-2*x^2 + 3*x^3 + 2*x - 1).
; Submitted by Jon Maiga
; 1,1,0,1,5,8,9,17,40,73,117,208,401,737,1296,2321,4261,7768,13977,25201,45752,83033,150165,271520,491809,891073,1613088,2919457,5285957,9572264,17330985,31375313,56805448
mov $1,3
lpb $0
sub $0,1
add $3,$1
add $1,$2
sub $3,1
sub $1,... |
; A075871: Numbers n such that 13*n^2 + 1 is a square.
; 0,180,233640,303264540,393637139280,510940703520900,663200639532988920,860833919173116097260,1117361763886065161254560,1450334708690193406192321620,1882533334518107155172472208200,2443526817869794397220462733921980
mul $0,6
seq $0,52991 ; Expansion of (1-x-x^2)/... |
; ===============================================================
; Jun 2007
; ===============================================================
;
; uint zx_saddr2py(void *saddr)
;
; Pixel y coordinate corresponding to screen address.
;
; ===============================================================
SECTION code_clib... |
.include "vc4.qinc"
.func gvpm_wr_setup(stride, addr)
# Ignored, Horizontal, Laned (ignored), 32-bit
gvpm_setup(0, stride, 1, 0, 2, addr)
.endf
.func gvpm_rd_setup(num, stride, addr)
# Horizontal, Laned (ignored), 32-bit
gvpm_setup(num, stride, 1, 0, 2, addr)
.endf
.func gvpm_setup(num, stride, horiz... |
C x86_64/fat/aes-encrypt-internal.asm
ifelse(<
Copyright (C) 2015 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundati... |
; This file contains the Global Descriptor Table that will tell
; - the CPU about the available memory segments.
; I don't see the point of having both userland and kernel code and data segments.
; - When in our kernel we really don't have the paradigm of a kernel vs. a user.
[bits 16] ; Tell our assembler to ... |
; =============================================
; Модуль обслуживания клавиатуры в ROM1
; =============================================
; ---------------------------------------------
;Статус клавиатуры
; ---------------------------------------------
STTS IN A,(0x0)
AND 0x4
JR Z,STTS1
... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
; A178222: Partial sums of floor(3^n/4).
; 0,2,8,28,88,270,816,2456,7376,22138,66424,199284,597864,1793606,5380832,16142512,48427552,145282674,435848040,1307544140,3922632440,11767897342,35303692048,105911076168,317733228528,953199685610,2859599056856,8578797170596,25736391511816,77209174535478,231627523606464,69488257... |
; Program values
spc .BYT 32
ret .BYT 10
EOT .BYT 3 ; End of text
LTUE .INT -42
; Program strings
facmsg1 .BYT 'F'
.BYT 'a'
.BYT 'c'
.BYT 't'
.BYT 'o'
.BYT 'r'
.BYT 'i'
.BYT 'a'
.BYT 'l... |
###############################################################################
# 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... |
; A162669: a(n) = n*(n+1)*(n+2)*(n+3)*(n+4)*(n+5)/5.
; 0,144,1008,4032,12096,30240,66528,133056,247104,432432,720720,1153152,1782144,2673216,3907008,5581440,7814016,10744272,14536368,19381824,25502400,33153120,42625440,54250560,68402880,85503600,106024464,130491648,159489792,193666176,233735040,280482048,334768896,3975... |
; 4.6
; Use a loop with indirect or indexed addressing to reverse the elements of an integer array in
; place. Do not copy the elements to any other array. Use the SIZEOF, TYPE, and LENGTHOF
; operators to make the program as flexible as possible if the array size and type should be
; changed in the future.
.386
.mode... |
#include <bits/stdc++.h>
#include <time.h>
#define int long long int
#define pb push_back
#define all(a) a.begin(), a.end()
#define scnarr(a, n) for (int i = 0; i < n; ++i) cin >> a[i]
#define vi vector<int>
#define si set<int>
#define pii pair <int, int>
#define sii set<pii>
#define vii vector<pii>
#define mii map <in... |
// Test declarations of variables without definition
// Commodore 64 PRG executable file
.file [name="cstyle-decl-var.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Bas... |
#include "sample_application.h"
#ifdef WIN32
#include <windows.h>
#endif
#include <GL/gl.h>
#include <cmath>
using namespace std;
using namespace cgv::gui;
point::point(int _x, int _y) : x(_x), y(_y)
{
}
line::line(int x0, int y0, int x1, int y1) : p0(x0,y0), p1(x1,y1)
{
}
void drawing::add_poin... |
#ifndef ORG_EEROS_HAL_XBOX_HPP_
#define ORG_EEROS_HAL_XBOX_HPP_
#include <string>
#include <functional>
#include <linux/joystick.h>
#include <eeros/hal/Input.hpp>
#include <eeros/core/Thread.hpp>
#define XBOX_BUTTON_COUNT (8)
#define XBOX_AXIS_COUNT (8)
namespace eeros {
namespace hal {
struct XBoxState {
doub... |
; A016756: a(n) = (2*n+1)^4.
; 1,81,625,2401,6561,14641,28561,50625,83521,130321,194481,279841,390625,531441,707281,923521,1185921,1500625,1874161,2313441,2825761,3418801,4100625,4879681,5764801,6765201,7890481,9150625,10556001,12117361,13845841,15752961,17850625,20151121,22667121,25411681,28398241,31640625,35153041,38... |
; A117667: a(n) = n^n-n^(n-1)-n^(n-2)-n^(n-3)-...-n^3-n^2-n.
; 1,2,15,172,2345,37326,686287,14380472,338992929,8888888890,256780503551,8105545862052,277635514376233,10257237069745862,406615755353655135,17216961135462248176,775537745518440716417,37031913482632035365106,1868507452568073945283759,9933877894736842105263158... |
/*
* 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... |
; A016930: a(n) = (6*n + 1)^10.
; 1,282475249,137858491849,6131066257801,95367431640625,819628286980801,4808584372417849,21611482313284249,79792266297612001,253295162119140625,713342911662882601,1822837804551761449,4297625829703557649,9468276082626847201,19687440434072265625,38941611811810745401,73742412689492826049,13... |
/*
* 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 <dirent.h>
#include <sys/stat.h>
#include <fstream>
#include <AzFramework/IO/LocalFileIO.h>
... |
; A077118: Nearest integer square to n^3.
; 0,1,9,25,64,121,225,361,529,729,1024,1296,1764,2209,2704,3364,4096,4900,5776,6889,7921,9216,10609,12100,13924,15625,17689,19600,21904,24336,26896,29929,32761,36100,39204,42849,46656,50625,54756,59536
seq $0,2821 ; a(n) = nearest integer to n^(3/2).
add $1,$0
pow $1,2
mov $0,... |
#include <iostream>
#include <fstream>
// #define CGAL_USE_BASIC_VIEWER
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/IO/OBJ_reader.h>
#include <CGAL/Surface_mesh_simplification/edge_collapse.h>
#include <CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Count_ratio_s... |
.text
main:
# Same sign
li $t0, 300
li $t1, 200
blt $t0, $t1, branch
li $a0, 0
li $v0, 1
syscall
j next
branch:
li $a0, 1
li $v0, 1
syscall
next:
# Diff sign
li $t0, 300
li $t1, -200
blt $t0, $t1, branch_2
li $a0, 0
li $v0, 1
syscall
j next_2
branch_2:
li $a0, 1
li $v0, 1
syscall
next_2:
# Same sign
li $t0, ... |
SECTION code_clib
SECTION code_string
PUBLIC __str_locate_nul
__str_locate_nul:
; enter : hl = char *s
;
; exit : hl = ptr in s to terminating 0
; bc = -(strlen + 1)
; a = 0
; carry reset
;
; uses : af, bc, hl
xor a
ld c,a
ld b,a
IF __CPU_INTEL__ || __CP... |
/*=============================================================================
Copyright (c) 2003 Hartmut Kaiser
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boo... |
; A246172: a(n) = (n^2+9*n-8)/2.
; 1,7,14,22,31,41,52,64,77,91,106,122,139,157,176,196,217,239,262,286,311,337,364,392,421,451,482,514,547,581,616,652,689,727,766,806,847,889,932,976,1021,1067,1114,1162,1211,1261,1312,1364,1417,1471,1526,1582,1639,1697,1756,1816,1877,1939,2002,2066,2131,2197,2264,2332,2401,2471,2542,26... |
;[]-----------------------------------------------------------------[]
;| CONSTRUC.ASM -- string constructors |
;[]-----------------------------------------------------------------[]
;
; $Copyright: 2005$
; $Revision: 1.1.1.1 $
;
;
;AnsiString& __fastcall operator =(const AnsiString& rhs);
;static Ans... |
; A331147: Triangle read by rows: T(n,k) (n>=k>=1) = floor((n/k)*floor(n/k)).
; Submitted by Christian Krause
; 1,4,1,9,1,1,16,4,1,1,25,5,1,1,1,36,9,4,1,1,1,49,10,4,1,1,1,1,64,16,5,4,1,1,1,1,81,18,9,4,1,1,1,1,1,100,25,10,5,4,1,1,1,1,1,121,27,11,5,4,1,1,1,1,1,1,144,36,16,9,4,4,1,1,1,1,1,1,169,39,17,9,5,4,1,1,1,1,1,1,1
... |
; A304833: a(n) = 3*n^2 + 38*n - 76 (n>=2).
; 12,65,124,189,260,337,420,509,604,705,812,925,1044,1169,1300,1437,1580,1729,1884,2045,2212,2385,2564,2749,2940,3137,3340,3549,3764,3985,4212,4445,4684,4929,5180,5437,5700,5969,6244,6525,6812,7105,7404,7709,8020,8337,8660,8989,9324,9665,10012,10365,10724,11089,11460,11837,12... |
; A170383: Number of reduced words of length n in Coxeter group on 38 generators S_i with relations (S_i)^2 = (S_i S_j)^43 = I.
; 1,38,1406,52022,1924814,71218118,2635070366,97497603542,3607411331054,133474219248998,4938546112212926,182726206151878262,6760869627619495694,250152176221921340678,9255630520211089605086
ad... |
//
// Created by Haoyu Huang on 2/12/20.
// Copyright (c) 2020 University of Southern California. All rights reserved.
//
#include <fmt/core.h>
#include "rdma_write_server_worker.h"
namespace nova {
void RDMAWRITEServerWorker::AddCompleteTasks(
const std::vector<nova::ServerWorkerCompleteTask> &task... |
; A253472: Square Pairs: Numbers n such that 1, 2, ..., 2n can be partitioned into n pairs, where each pair adds up to a perfect square.
; 4,7,8,9,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,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69... |
// Copyright 2022 Tulkina Olga
#include <gtest/gtest.h>
#include "../../modules/task_3/tulkina_o_labeling/labeling.h"
TEST(TBB, Test_1x1) {
std::vector<std::vector<int>> binary_image = {{0}};
binary_image = labeling(binary_image);
std::vector<std::vector<int>> expected = {{0}};
int a = binary_image.size();... |
BITS 16
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
BITS 32
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
BITS 64
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
|
section .data
msg1 : db 'debug here --',10
l1 : equ $-msg1
msg2 : db 'enter the size of array 1 (n1): '
l2 : equ $-msg2
msg3 : db 'enter the sorted array 1 (ascending) : ',10
l3 : equ $-msg3
msg4 : db 'enter the size of array 2 (n2): '
l4: equ $-msg4
msg5 : db 'enter the sorted array 2 (decending) : ',10... |
CSEG SEGMENT
ASSUME CS:CSEG
START PROC FAR
PUSH CS
POP DS
MOV AX,351CH
INT 21H
MOV CS:WORD PTR OLD1C,BX
MOV CS:WORD PTR OLD1C+2,ES
MOV DX,OFFSET INT1C
MOV AX,251CH
INT 21H
WAITN: MOV AH,1
INT 16H
JZ WAITN... |
SPECTRUM: LD HL,L15AF
LD DE,(CHANS)
LD BC,$15
RST $30
DEFW LDIRR
RES 4,(IY+FLAGS-ERR_NR) ; SPECTRUM mode
LD A,$80
OUT ($FF),A ; SPECTRUM video mode
RST $10
|
PokemonTower7Script:
call EnableAutoTextBoxDrawing
ld hl, PokemonTower7ScriptPointers
ld a, [wPokemonTower7CurScript]
call JumpTable
ret
PokemonTower7Script_60d01:
xor a
ld [wJoyIgnore], a
PokemonTower7Script_60d05:
ld [wPokemonTower7CurScript], a
ret
PokemonTower7ScriptPointers:
dw PokemonTower7Script0
dw... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xcb97, %rbp
nop
nop
nop
cmp $57000, %r11
movl $0x61626364, (%rbp)
nop
nop
xor $36756, %rax
lea addresses_D_ht+0x13e97, %rsi
lea addresses_WC_ht+0x18f4f, %rdi
nop
nop
add $39751... |
; A010963: Binomial coefficient C(47,n).
; 1,47,1081,16215,178365,1533939,10737573,62891499,314457495,1362649145,5178066751,17417133617,52251400851,140676848445,341643774795,751616304549,1503232609098,2741188875414,4568648125690,6973199770790,9762479679106,12551759587422,14833897694226,16123801841550,16123801841550,148... |
;
; 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... |
; A097482: a(1) = 1, a(2) = 1, a(n) = floor(sqrt(a(n-2)*a(n-1))) + 3 for n > 2.
; 1,1,4,5,7,8,10,11,13,14,16,17,19,20,22,23,25,26,28,29,31,32,34,35,37,38,40,41,43,44,46,47,49,50,52,53,55,56,58,59,61,62,64,65,67,68,70,71,73,74,76,77,79,80,82,83,85,86,88,89,91,92,94,95,97,98,100
mul $0,3
lpb $0
bin $0,4
lpe
div $0,2
m... |
lda #0
sta {m1}
lda {m2}
asl
sta {m1}+1
lda {m2}+1
rol
sta {m1}+2
lda {m2}+2
rol
sta {m1}+3
|
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;;
;;; ASM Source code for Red GBC, by Evan Bowman, 2021
;;;
;;;
;;; The following licence covers the source code included in this file. The
;;; game's characters and artwork belong to Evan Bowman, and should not be used
;;; without permi... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the ... |
SafariZoneSecretHouseObject:
db $17 ; border block
db $2 ; warps
db $7, $2, $6, SAFARI_ZONE_WEST
db $7, $3, $6, SAFARI_ZONE_WEST
db $0 ; signs
db $1 ; objects
object SPRITE_FISHER, $3, $3, STAY, DOWN, $1 ; person
; warp-to
EVENT_DISP SAFARI_ZONE_SECRET_HOUSE_WIDTH, $7, $2 ; SAFARI_ZONE_WEST
EVENT_DISP SAF... |
include uXmx86asm.inc
option casemap:none
ifndef __X64__
.686P
.xmm
.model flat, c
else
.X64P
.xmm
option win64:11
option stackbase:rsp
endif
option frame:auto
.code
align 16
uXm_has_CMPXCHG8B proto VECCALL (byte)
align 16
uXm_has_CMPXCHG8B proc VECCALL (byte)
mov eax,... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
; A052540: Expansion of (1-x)/(1-2*x-x^3+x^4).
; Submitted by Christian Krause
; 1,1,2,5,10,21,45,95,201,426,902,1910,4045,8566,18140,38415,81351,172276,364827,772590,1636105,3464761,7337285,15538085,32904826,69682176,147565152,312497045,661771440,1401425856,2967783605,6284841605,13309337626,28185033001,59687124002,126... |
INCLUDE "sdk/hardware.inc"
; use this for inspiration :)
; https://codepen.io/MillerTime/pen/XgpNwb
RSRESET
DEF FIREWORK_YPOS RB 2 ; 8.8 fixed point
DEF FIREWORK_YVEL RB 2 ; int part is first byte, fraction part second byte
DEF FIREWORK_XPOS RB 2
DEF FIREWORK_XVEL RB 2
DEF FIREWORK_SIZE RB 0
DEF FIREWORK_STARTY EQU ... |
; OUT: EAX: upper Memory / 1024
kernel_paging_get_memory:
push ebx
mov ebx, [kernel_multiboot_info_pointer]
mov eax, [ebx]
; EAX has flags
and eax, 1
; If it's zero then it means that the bootloader didn't tell us the memory
; Crash the system if that is the case
jz kernel_exception_f... |
%define MOD_PMEM
; module: PMem
%include "hal/pmem.inc"
%include "lib/bitmap.inc"
%include "defs/multiboot.inc"
%include "debug/debug.inc"
struc region_t
; Bookkeeping for this region
prev resq 1 ; list of all regions (replace with tree?)
next resq 1
lock resq 1 ; for multiprocessor use
basePageAddr resq... |
/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ... |
device zxspectrum48
org $C000 ; must be in last 16k as I'm using all-RAM mapping for Layer2
INCLUDE "../../Constants.asm"
INCLUDE "../../Macros.asm"
INCLUDE "../../TestFunctions.asm"
INCLUDE "../../TestData.asm"
INCLUDE "../../OutputFunctions.asm"
INCLUDE "../../timing.i.asm"... |
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... |
; 1 - Iterar una string en memoria y desplegar caracter por caracter
.Model small
.Stack 64
.Data
num db "123"
len equ $ - num ; Añadir (- 1) en caso de \r\n
.Code
MAIN PROC
mov ax,@Data
mov ds,ax
mov bx,offset num
mov cx,len
PRINT_CHAR:
mov dx,[bx]
mov ah,02h
int 21h
inc bx
dec... |
BITS 32
; XOR [ESP], ESI and XOR ESI, [ESP] can be encoded in two ways, one of which is
; alphanumeric. NASM chooses the wrong one, which is why we have these:
%define xor_esp_esi db 0x31, 0x34, 0x64
%define xor_esi_esp db 0x33, 0x34, 0x64
start:
XOR [EDX], ESI ; [ESI] = base address ^ ESI
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.