text stringlengths 1 1.05M |
|---|
//===--- LookupVisibleDecls - Swift Name Lookup Routines ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
; F-Zero Climax Translation by Normmatt
.align 4
Profile13_CharacterProfile:
.sjis "F-ZERO最多出",TextNL,"場記録保持者。",TextNL,"「鉄人シルバー」と",TextNL,"呼ばれているが、",TextNL,"ここ数年は勝利に見",TextNL,"放されている。",TextNL,"他のパイロットから",TextNL,"は口うるさい老人だ",TextNL,"とけむたがられてい",TextNL,"るが、キャプテン",TextNL,"ファルコンは彼のこ",TextNL,"とを尊敬している。",TextNL,""
.align 4... |
; A290680: Binary representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 929", based on the 5-celled von Neumann neighborhood.
; Submitted by Christian Krause
; 1,10,111,1110,11111,111111,1111111,11111111,111111111,1111111111,1... |
title "I386 PCR"
;++
;
; 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:
;
; i386pcr... |
; A060557: Row sums of triangle A060556.
; 1,3,10,33,108,352,1145,3721,12087,39254,127469,413908,1343980,4363921,14169633,46008619,149389218,485064009,1574993356,5113971944,16604963593,53915979657,175064088671,568429529006,1845679092661,5992882377940,19458766862740,63182219138721,205151376895105,666122336505939,2162885... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
009614 move.l D2, (A0)+ [base+ 3C, base+ 4C, base+ 4E, base+ 5C, base+ 5E, base+ EC, base+ EE, base+ FC, base+ FE, base+16C, base+16E, base+17C, base+17E, base+20C, base+20E, base+21C, base+21E, base+28C, base... |
; ---------------------------------------------------------------------------
; Sprite mappings - springs
; ---------------------------------------------------------------------------
dc.w byte_DD26-Map_obj41
dc.w byte_DD31-Map_obj41
dc.w byte_DD37-Map_obj41
dc.w byte_DD47-Map_obj41
dc.w byte_DD4D-Map_obj41
... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... |
; A239678: Least numbers k such that k*2^n+1 is a square.
; 3,4,2,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215,33554431,67108863,134217727,268435455,536870911,1073741823,2147483647,4294967295,8589934591,17179869183,34359738367,68719476735... |
/*
*
* Copyright 2017 gRPC authors.
*
* 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 agree... |
/**
* Copyright 2021 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... |
; A040789: Continued fraction for sqrt(818).
; 28,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1,56,1,1,1,1
add $0,1
mul $0,6
mov $1,4
mov $2,$0
mov $4,2
mov $5,$2
mov $6,4
lpb $5,1
add $5,$1... |
; RC2014 related functions
;
; theoretically, all of the bare-hardware interface stuff that is
; specific to the RC2014 and RC2014LL are in this one file.
;
; These use the ACIA at $80 for IO
; Also emulation interface at $EE
.module RC2014HW
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Output
; Print
; output ... |
; A076483: n! * Sum_k{1<=k<=n}(k-1)^k/k!.
; Submitted by Christian Krause
; 0,0,1,11,125,1649,25519,458569,9433353,219117905,5677963451,162457597961,5087919552253,173136159558361,6361282619516343,250987334850557369,10584205713321808529,475079402305823570849
lpb $0
sub $0,1
mov $2,$1
add $1,1
pow $2,$1
mul $3... |
//
// Created by huangkun on 2018/8/14.
//
#include "LoadModel.h"
TEST_NODE_IMP_BEGIN
LoadModel::LoadModel() {
modelObject = new Model();
modelObject->setCustomLoad(true);
modelObject->load("../res/nanosuit/nanosuit.obj");
}
// pitch and yaw
void LoadModel::draw(const mat4 &t... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01
TITLE C:\Work\daspirum\Source\src\LGN.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
ORG $+2
$SG-54708 DB 'get|daspirum|version', 0dH, 0aH, 00H
ORG $+1
$SG-54709 DB 'LGN::GetVersion', 00H
$SG-54710 DB '..\src... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Kernel Input Manager
FILE: imMonitors.asm
AUTHOR: Adam de Boor, Jan 28, 1991
ROUTINES:
Name Description
---- -----------
REVISION HIST... |
;---------------------------------------------------------------
; Keyboard Input Module
;
; The keyboard hardward interface is compatible with a PS/2
; keyboard. The interface consists of a shift register and
; supporting logic to read 8-bit keyboard scan codes and
... |
// 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 may... |
#include <bits/stdc++.h>
// #include <algorithm>
// #include <bitset>
// #include <deque>
// #include <iostream>
// #include <cfloat>
// #include <cmath>
// #include <cstdarg>
// #include <cstdio>
// #include <cstdlib>
// #include <cstring>
// #include <map>
// #include <numeric>
// #include <queue>
// #include <set>
/... |
; A335310: a(n) = Sum_{k=0..n} binomial(n,k) * binomial(n+k,k) * (-n)^(n-k).
; Submitted by Christian Krause
; 1,1,-2,11,-74,477,-804,-84425,3315334,-102211207,3005297956,-88338323709,2627003399164,-78764141488043,2341929797646648,-66394419743289105,1609460569459689286,-18001777147777896975,-1625299659961386724524,1960... |
STRUCT MENU_T
addr DW
items DB
height DB
y_row DB
y_pixel DB
width DB
x DB
x_logo DB
ENDS
STRUCT MENUENTRY_T
text_addr DW
value_cb_addr DW
callback DW
reserved DW
ENDS
MACRO MENU_DEF width
MENU_T {
($+MENU_T)
(((.end-$)/MENUENTRY_T-1))
(((.end-$)/MENUENT... |
; A010052: Characteristic function of squares: a(n) = 1 if n is a square, otherwise 0.
; 1,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "CommandProfiling.h"
#if defined(__unix__) || defined(__APPLE__)
#include <signal.h>
#include <sys/wait.h>
#include <unis... |
;; LBA-28 mode
;; set sector count of reading
;; port: 0x1f2
;; 8 bit mode
;; @param: sector count, 1 byte
;; if count=0, means 256 sectors
;; i.e. we can access 256*512/1024=128GB
%macro set_read_sector_count 1
mov dx, 0x1f2
mov al, %1
out dx, al ;; 0x1f2
%endmacro
;;====================... |
//@doc
/******************************************************
**
** @module EFFECT.CPP | InternalEffect implementation file
**
** Description:
**
** History:
** Created 1/05/98 Matthew L. Coill (mlc)
**
** 23-Mar-99 waltw IsReallyPlaying now uses data returned by
** Transmit instead of obsolete GetS... |
;
; Database Call for REX6000
;
; DbUpdateField
;
; $Id: DbUpdateField.asm,v 1.3 2017/01/03 00:11:31 aralbrec Exp $
PUBLIC DbUpdateField
PUBLIC _DbUpdateField
.DbUpdateField
._DbUpdateField
sub 2 ;except 1st 2 params
ld b,a
ld ix,2
add ix,sp
ld hl,0
push hl ; probably page address
.DbUpdate... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective o... |
/*
MultiWiiCopter by Alexandre Dubus
www.multiwii.com
March 2015 V2.4
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version. see <http://www.gn... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xa17c, %r14
clflush (%r14)
and $43448, %rsi
vmovups (%r14), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %r13
sub %rbp, %rbp
lea addresses_D_ht+0x11924, %rsi
lea add... |
;Copyright (c) 1987, 1990, 1993, 2005 Vrije Universiteit, Amsterdam, The Netherlands.
;All rights reserved.
;
;Redistribution and use of the Amsterdam Compiler Kit in source and
;binary forms, with or without modification, are permitted provided
;that the following conditions are met:
;
; * Redistributions of source ... |
;=============================================================================
; @file memset.asm
; @brief Fill a region of memory with a single byte value.
;
; Copyright 2016 Brett Vickers.
; Use of this source code is governed by a BSD-style license that can
; be found in the MonkOS LICENSE file.
;============... |
device zxspectrum128
label=#1234
label defl #5432
label=#4321
dw label
|
;================================================================================
;--------------------------------------------------------------------------------
AssignKiki:
LDA.b #$00 : STA $7EF3D3 ; defuse bomb
LDA.b #$0A : STA $7EF3CC ; assign kiki as follower
RTL
;----------------------------------------... |
.data
PI: .float 3.14159
.text
li $v0,2
lwc1 $f12,PI
syscall |
; A016790: a(n) = (3n+2)^2.
; 1,4,25,64,121,196,289,400,529,676,841,1024,1225,1444,1681,1936,2209,2500,2809,3136,3481,3844,4225,4624,5041,5476,5929,6400,6889,7396,7921,8464,9025,9604,10201,10816,11449,12100,12769,13456,14161,14884,15625,16384,17161,17956,18769,19600,20449,21316,22201,23104,24025,24964,25921,26896,27889... |
;===============================================================================
; Constants
Black = 0
White = 1
Red = 2
Cyan = 3
Purple = 4
Green = 5
Blue = 6
Yellow = 7
Orange = 8
Brown = 9
LightRed = 10
Dark... |
#define NB_OPTIONS 3
default_config:
.(
lda #MAX_STOCKS
sta config_initial_stocks
lda #$01
sta config_ai_level
sta config_player_b_character
lda #$00
sta config_selected_stage
sta config_player_a_character_palette
sta config_player_a_weapon_palette
sta config_player_a_character
sta config_player_b_character... |
; Internal routine to write int at far pointer
; 31/3/00 GWL
; Entry: E'H'L'=far pointer
; HL=word
;
; $Id: lp_pint.asm,v 1.3 2015/01/19 01:32:43 pauloscustodio Exp $
;
PUBLIC lp_pint
EXTERN farseg1,incfar
.lp_pint
ld a,($04d1)
ex af,af'
push hl
pop ... |
;--- Win64 console application, uses WinInc v2+
;--- assemble:
;--- jwasm -c -win64 -Zp8 -I\WinInc\Include Win64_4.asm
;--- link:
;--- JWlink: jwlink format win pe f Win64_4.obj Libpath \WinInc\Lib64
;--- MS link: link /subsystem:console /Libpath:\WinInc\Lib64 Win64_4.obj
option casemap:none
option frame:a... |
; A288038: Number of independent vertex sets in the n-Andrasfai graph.
; 3,11,33,89,225,545,1281,2945,6657,14849,32769,71681,155649,335873,720897,1540097,3276801,6946817,14680065,30932993,65011713,136314881,285212673,595591169,1241513985,2583691265,5368709121,11140071425,23085449217,47781511169,98784247809,204010946561... |
//
// Created by Dawid Drozd aka Gelldur on 07.03.16.
//
#include "Component.h"
#include <component/Nodect.h>
Component::~Component()
{
_owner = nullptr;
}
Context* Component::getContext() const
{
return getOwner()->getContext();
}
|
.importonce
// multiply short(8) routine
// in:
// memory (byte) sub_mul_short_val1: val1
// memory (byte) sub_mul_short_val2: val2
// out:
// A: result
// changes: A, X
sub_mul_short: lda #0 // write 0 to A
ldx sub_mul_short_val2 // use X as counter (val... |
void TdApi::OnFrontConnected()
{
Task task = Task();
task.task_name = ONFRONTCONNECTED;
this->task_queue.push(task);
};
void TdApi::OnFrontDisconnected(int nReason)
{
Task task = Task();
task.task_name = ONFRONTDISCONNECTED;
task.task_id = nReason;
this->task_queue.push(task);
};
void TdApi::OnHeartBeatWarning... |
; 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... |
; Assembly Level Program 12a
; Write an Assembly Level Program to delete an existing file
.model SMALL
.data
FNAME dB 'SampleFile.txt', 00h
SUCCESS dB 10, 13, 'File has been deleted successfully!$'
FAILURE dB 10, 13, 'An Error Occured during File Deletion!$'
.code
; Initialize Data Segment
MOV AX, @DATA
MOV D... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x7a37, %rbp
nop
nop
nop
nop
cmp %r9, %r9
mov (%rbp), %rax
nop
nop
nop
nop
nop
sub $62594, %rbp
lea addresses_UC_ht+0x17637, %rsi
dec %r8
movw $0x6162, (%rsi)
nop
and $54578, %r... |
section .text
global sha1_block_asm_data_order
align 10h
sha1_block_asm_data_order:
push rdi
push rsi
push rbx
push rbp
push r12
push r13
push r14
push r15
mov r9,rcx
; c = rcx
; p = rdx
; num = r8
shl r8, 6
mov r11,rdx
add r8, r11
mov rbp, rcx
mov edx, DWORD 12[rbp]
sub ... |
; A116218: If X_1,...,X_n is a partition of a 2n-set X into 2-blocks (or pairs) then a(n) is equal to the number of permutations f of X such that f(X_i) != X_i for all i=1,...n.
; Submitted by Christian Krause
; 0,20,592,35088,3252608,437765440,80766186240,19580003614976,6038002429456384,2308538525796209664,10718582410... |
; z80ctrl (https://github.com/jblang/z80ctrl)
; Copyright 2018 J.B. Langston
;
; 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... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC Initialize_BitwiseOr
PUBLIC PMC_BitwiseOr_I_X
PUBLIC PMC_BitwiseOr_L_X
PUBLIC PMC_BitwiseOr_X_I
PUBLIC PMC_BitwiseOr_X_L
PUBLIC PMC_BitwiseOr_X_X
EXTRN CheckBlockLight:PROC... |
/*
Program to sort a linked list containing zeros, ones and twos.
The given approach counts the number of ones, twos and zeros and makes the
required changes in the linked list
*/
#include<bits/stdc++.h>
using namespace std;
struct node {
int info;
node* next;
};
node* head = NULL;
// Function to insert... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r8
push %rbp
push %rcx
push %rdi
lea addresses_D_ht+0x12c33, %r8
nop
nop
nop
nop
nop
add $41720, %rbp
movl $0x61626364, (%r8)
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_UC_ht+0x172b3, %r12
nop
nop
add $545, %r11
mov $0x61626364656667... |
;
; Timex 2068 specific routines
; by Stefano Bodrato, Fall 2013
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: set_psg.asm,v 1.3 2016-06-10 21:13:58 dom Exp $
;
SECTION code_clib
PUBLIC set_psg
PUBLIC _set_psg
EXTERN asm_set_psg
set_psg:
_set_psg:
pop bc
pop de
pop hl
push hl
push... |
#include "duckdb/common/limits.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/common/windows_undefs.hpp"
#include <limits>
namespace duckdb {
using std::numeric_limits;
int8_t NumericLimits<int8_t>::Minimum() {
return numeric_limits<int8_t>::lowest();
}
int8_t NumericLimits<int8_t>::Maximum() {
ret... |
; A228320: The Wiener index of the graph obtained by applying Mycielski's construction to the cycle graph C(n).
; 203,280,369,470,583,708,845,994,1155,1328,1513,1710,1919,2140,2373,2618,2875,3144,3425,3718,4023,4340,4669,5010,5363,5728,6105,6494,6895,7308,7733,8170,8619,9080,9553,10038,10535,11044,11565
add $0,6
mul $... |
; A128634: Number of parallel permutations of length n.
; 0,2,8,26,82,262,856,2858,9722,33590,117570,416022,1485798,5348878,19389688,70715338,259289578,955277398,3534526378,13128240838,48932534038,182965127278,686119227298,2579808294646,9723892802902,36734706144302,139067101832006,527495903500718,2004484433302734,76299... |
[WiiULauncher0US]
moduleMatches = 0x90DAC5CE
; Skip flag override in BRB_HUDManager::HUD_Enable if second argument is not zero
0x306E9AC = nop
; Skip BigRedButton::subtitle_show
0x307C290 = blr
; Skip CBrbAICompanion::show_picon
0x31FECB4 = blr
; Skip CbrbObjectiveMarker::Enable
0x331B88C = blr
[WiiULauncher0EU]
m... |
; A076113: a(n) = n^(n*(n-1)/2).
; Submitted by Christian Krause
; 1,2,27,4096,9765625,470184984576,558545864083284007,19342813113834066795298816,22528399544939174411840147874772641,1000000000000000000000000000000000000000000000
sub $1,$0
add $0,1
bin $1,2
pow $0,$1
|
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434411514748",
"RBX": "0x51525354155595D6",
"RCX": "0x00000000185898D9"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mo... |
dnl AMD64 mpn_addlsh_n -- rp[] = up[] + (vp[] << k)
dnl AMD64 mpn_rsblsh_n -- rp[] = (vp[] << k) - up[]
dnl Optimised for Nehalem.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Li... |
SECTION code_clib
PUBLIC res_MODE0
.res_MODE0
ld a,l
cp 16
ret nc
ld a,h
cp 32
ret nc
defc NEEDunplot = 1
INCLUDE "graphics/generic_console/pixel1.asm"
|
# $Id: 07_and_2.asm,v 1.3 2001/03/22 00:38:59 ellard Exp $
#
# Copyright 1999-2001 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ tests bitwise and
# OK
lc r2, 0b11100100
lc r3, 0b00011011
lc r4, 0b10101010
lc r5, 0b01010101
and r2, r2, r3
add r7, r1, r0
and r... |
; A266975: Binary representation of the n-th iteration of the "Rule 78" elementary cellular automaton starting with a single ON (black) cell.
; Submitted by Jon Maiga
; 1,110,11100,1101000,111010000,11010100000,1110101000000,110101010000000,11101010100000000,1101010101000000000,111010101010000000000,1101010101010000000... |
; ---------------------------------------------------------------
; Check which step we are up, and jump to the required routine using a
; jump table.
_TX_JUMPTBL:
movlw tx_step ; Load the step we are up to
addwf pcl ; White PCL can't jump!
bra _LOAD_PREAMBLE ; Step 0: INIT: Load the preamble byte.
bra ... |
; A009230: a(n) = lcm(n, d(n)).
; 1,2,6,12,10,12,14,8,9,20,22,12,26,28,60,80,34,18,38,60,84,44,46,24,75,52,108,84,58,120,62,96,132,68,140,36,74,76,156,40,82,168,86,132,90,92,94,240,147,150,204,156,106,216,220,56,228,116,118,60,122,124,126,448,260,264,134,204,276,280,142,72,146,148,150,228,308,312,158,80,405,164,166,84,... |
_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: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 20 sub $0x20,%esp
int... |
; BSD 3-Clause License
; Copyright (c) 2021, AtieP
; All rights reserved.
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
; 1. Redistributions of source code must retain the above copyright notice, this
; list of co... |
.data
# .align 2
FIB_START: .asciiz "fib("
# .align 2
FIB_MID: .asciiz ") = "
# .align 2
LINE_END: .asciiz "\n"
.text
addi $v0, $zero, 5
syscall
add $s1, $zero, $v0
lui $at, 80
ori $a0, $at, 0
addi $v0, $zero, 4
syscall
addu $a0, $s1, $zero
addi $v0, $zero, 1
syscall
lui $at, 80
ori $a0, $at, 8
addi $v0, $zero, 4
s... |
/*
Copyright 2016 Google 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 in writing, softwar... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xf0a8, %rax
nop
nop
nop
nop
nop
dec %rbp
movw $0x6162, (%rax)
nop
nop
nop
nop
and %r13, %r13
lea addresses_normal_ht+0x13152, %rsi
lea addresses_WC_ht+0x1b972, %rdi
nop
nop
nop
and %r1... |
/*
* ArxelBuffer.cpp
*
* Copyright (C) 2018 by VISUS (Universitaet Stuttgart).
* Alle Rechte vorbehalten.
*/
#include "ArxelBuffer.h"
#include "vislib/memutils.h"
#include <climits>
namespace megamol {
namespace demos_gl {
/*
* ArxelBuffer::Initialize
*/
void ArxelBuffer::Initialize(ArxelBuffer& buffer, int&... |
list p=18f4550 ;modelo del procesador
#include<p18f4550.inc> ;libreria de nombres de registros
;Detalle de los bits de configuracion modificados
CONFIG FOSC = XT_XT ; Oscillator Selection bits (XT oscillator (XT))
CONFIG PWRT = ON ; Power-up Timer Enable bit (PWRT enable... |
;;
;; 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... |
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* 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 appl... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int vprintf(const char *format, void *arg)
;
; See C11 specification.
;
; ===============================================================
INCLUDE "config_private.inc"
SE... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xf14a, %rsi
nop
nop
nop
nop
lfence
mov $0x6162636465666768, %r15
movq %r15, %xmm5
movups %xmm5, (%rsi)
nop
nop
nop
nop
xor $35117, %r10
lea addresses_A_ht+0xdc1a, %r9
dec %rdi... |
; A054779: 6n*(6n-1)*(6n-2)*(6n-3)*(6n-4)*(6n-5).
; 0,720,665280,13366080,96909120,427518000,1402410240,3776965920,8835488640,18595558800,36045979200,65418312960,112492013760,184933148400,292666711680,448282533600,667474778880,969515038800,1377759015360,1920186797760,2629976731200
mul $0,6
bin $0,6
mul $0,720
|
[org 0x7c00]
; Boot drive, sector = 1, cylinder = 0, head = 0
mov [boot_drive], dl
; Setting stack at 0x8000
; bp is the base pointer
; sp is the pointer to the `top` of the stack (stack grows downwards)
mov bp, 0x8000
mov sp, bp
mov bx, 0x9000
mov dh, 2
mov dl, [boot_drive]
call disk_load
; Query second sector
m... |
Include "p16F84A.inc"
; ----------------------------------------------------------
; General Purpose RAM Assignments
; ----------------------------------------------------------
cblock 0x0C
Endc
; ----------------------------------------------------------
; Macro Definitions
; --------------------------------------... |
; A158573: Numbers k such that 30*k + 7 is prime.
; 0,1,2,3,4,5,9,10,11,12,13,15,16,18,19,20,24,25,26,29,30,31,32,33,36,37,41,43,44,48,52,53,54,55,58,59,62,66,67,71,76,78,79,81,82,85,87,88,89,90,92,93,95,96,97,101,102,106,107,110,115,117,118,120,121,123,124,128
mov $2,$0
add $2,1
pow $2,2
lpb $2
add $1,6
sub $2,2
... |
.MODEL SMALL
.STACK 100H
.DATA
A DB 0
B DB 0
.CODE
MAIN PROC
MOV CX,256 ; setting the max loop value
MOV AH,2 ; single character print function
TOP:
CMP B,9 ; after 10 data this will print a new line
JG PRINT ; jump to PRINT function if b=10
MOV DL,A ; preparing for printing A
INT 21H ; print A
INC A ... |
// Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_PARSE_JSON_NULL_FWD_HPP_INCLUDED
#define SGE_PARSE_JSON_NULL_FWD_HPP_INCLUDED
namespac... |
;Este es un comentario
;Programa hecho por Kalun Lau
;UPC San Miguel
;16 de agosto del 2019
list p=18f4550 ;Modelo del microcontrolador
#include <p18f4550.inc> ;Libreria de nombre de registros
;Aqui deben de declararse los bits de configuracion (directivas de preprocesador)
CONFIG FOS... |
; A152017: a(n) = n^5-n^4-n^3-n^2-n.
; 0,-3,2,123,684,2345,6222,14007,28088,51669,88890,144947,226212,340353,496454,705135,978672,1331117,1778418,2338539,3031580,3879897,4908222,6143783,7616424,9358725,11406122,13797027,16572948,19778609,23462070,27674847,32472032,37912413,44058594,50977115,58738572,67417737,77093678,8... |
; A006138: a(n) = a(n-1) + 3*a(n-2).
; Submitted by Jon Maiga
; 1,2,5,11,26,59,137,314,725,1667,3842,8843,20369,46898,108005,248699,572714,1318811,3036953,6993386,16104245,37084403,85397138,196650347,452841761,1042792802,2401318085,5529696491,12733650746,29322740219,67523692457,155491913114,358062990485,824538729827,18... |
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
// funkcja zwracajaca wartosc odpowiadajaca dlugosci najdluzszego bloku skladajacego sie z samych zer
int biggestZeroBlock(string line)
{
int currentZeros, maxZeros = 0;
for (int i = 0; i < line.... |
; A164356: Expansion of (1 - x^2)^4 / ((1 - x)^4 * (1 - x^4)) in powers of x.
; 1,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4,2,4,6,4
mov $2,$0
mul $2,5
div $2,2
pow $2,3
lp... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: ALICE Offline. *
* Contributors ... |
; National Computer Camps Sound Assembly Program
; Written by Rick Astley (Mike Curry) 2012
; Final Assembler Project Example
; === STACK SEGMENT ===
MyStack segment stack
DB 64 dup('12345678')
MyStack endS
; === DATA SEGMENT ===
MyData Segment
; --- Declare Varibles here ---
never DB "Never $"
gonna DB "gonna $"... |
_Route22GateText_1e704::
text "Only truly skilled"
line "trainers are"
cont "allowed through."
para "You don't have the"
line "BOULDERBADGE yet!@@"
_Route22GateText_1e715::
db $0
para "The rules are"
line "rules. I can't"
cont "let you pass."
done
_Route22GateText_1e71a::
text "Oh! That is the"
line "BOU... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xb07f, %rsi
lea addresses_UC_ht+0x8cbf, %rdi
nop
dec %r8
mov $35, %rcx
rep movsb
inc %rbx
lea addresses_WT_ht+0x7d4b, %r14
nop
nop
nop
nop
nop
and %rbx, %rbx
movl $0x616263... |
db 0 ; species ID placeholder
db 95, 85, 85, 35, 65, 65
; hp atk def spd sat sdf
db WATER, GROUND ; type
db 90 ; catch rate
db 137 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/quagsire/front.dimensions"
db GROWTH_MEDIUM_FA... |
; void *z80_otir(void *src, uint16_t port)
SECTION code_clib
SECTION code_z80
PUBLIC z80_otir_callee
EXTERN asm_z80_otir
z80_otir_callee:
pop hl
pop bc
ex (sp),hl
jp asm_z80_otir
|
; A173777: Infinite sequence gradually builds a triangle plus another more widely spaced triangle on top of it, or overlapping, if you will.
; 2,2,2,2,3,3,4,5,5,6,7,8,9,10,11,12,14,15,16,18,19,21,23,24,26,28,30,32,34,36,38,41,43,45,48,50,53,56,58,61,64,67,70,73,76,79,83,86,89,93,96,100,104,107,111,115,119,123,127,131,1... |
; A032378: Noncubes such that n is divisible by floor(n^(1/3)).
; 2,3,4,5,6,7,10,12,14,16,18,20,22,24,26,30,33,36,39,42,45,48,51,54,57,60,63,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,130,135,140,145,150,155,160,165,170,175,180,185,190,195,200,205,210,215,222,228,234,240,246,252,258,264,270,276,282,288,294,300... |
; A082139: A transform of binomial(n,5).
; 1,6,42,224,1008,4032,14784,50688,164736,512512,1537536,4472832,12673024,35094528,95256576,254017536,666796032,1725825024,4410441728,11142168576,27855421440,68975329280,169303080960,412216197120,996189143040,2390853943296,5701267095552,13514114596864,31854698692608,746937762447... |
; A040813: Continued fraction for sqrt(843).
; Submitted by Christian Krause
; 29,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58,29,58
trn $0,1
mod $0,2
add $0,1
mul $0,29
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x4245, %rsi
lea addresses_UC_ht+0x11b2d, %rdi
nop
nop
and %r10, %r10
mov $23, %rcx
rep movsb
nop
nop
and %rcx, %rcx
lea addresses_A_ht+0x1ef2d, %r11
sub $36713, %r15
mov (%r11... |
/**
* @file
* @brief Monsters' starting equipment.
**/
#include "AppHdr.h"
#include "mon-gear.h"
#include <algorithm>
#include "artefact.h"
#include "art-enum.h"
#include "dungeon.h"
#include "item-name.h"
#include "item-prop.h"
#include "item-status-flag-type.h"
#include "items.h"
#include "libutil.h" // map_fin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.