text stringlengths 1 1.05M |
|---|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; Monitor.Asm
;
; Abstract:
;
; AsmMonitor function
;
; Notes:
;
;---------------------... |
; A078922: a(n) = 11*a(n-1) - a(n-2) with a(1)=1, a(2) = 10.
; Submitted by Jon Maiga
; 1,10,109,1189,12970,141481,1543321,16835050,183642229,2003229469,21851881930,238367471761,2600190307441,28363725910090,309400794703549,3375045015828949,36816094379414890,401601993157734841,4380805830355668361,47787262140754617130,52... |
; A299262: Partial sums of A299256.
; 1,7,25,65,137,249,411,631,919,1283,1733,2277,2925,3685,4567,5579,6731,8031,9489,11113,12913,14897,17075,19455,22047,24859,27901,31181,34709,38493,42543,46867,51475,56375,61577,67089,72921,79081,85579,92423,99623,107187,115125,123445,132157,141269,150791,160731,171099,181903,193153,... |
; A097629: a(n) = 2*(2n)^(n-2).
; 1,2,12,128,2000,41472,1075648,33554432,1224440064,51200000000,2414538435584,126806761930752,7340688973975552,464436530178424832,31886460000000000000,2361183241434822606848,187591757103747287810048,15917322219892801768783872,1436650532447139184230793216,137438953472000000000000000000,13... |
// Concord
//
// Copyright (c) 2020-2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0
// License.
//
// This product may include a number of subcomponents with separate copyr... |
; A110026: Minimal number of times a rectangular grid of n X n+1 elements can be slid along a 45-degree line before a rotated version of the initial grid appears.
; Submitted by Jamie Morken(w1)
; 1,1,3,5,21,45,231,585,1155,9945,21945,69615,504735,348075,4542615,10094175,140821065,111035925,140821065,4108329225,1830673... |
adc a, ixh ; Error
adc a, ixl ; Error
adc a, iyh ; Error
adc a, iyl ; Error
adc ixh ; Error
adc ixl ; Error
adc iyh ; Error
adc iyl ; Error
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x12ca2, %r11
clflush (%r11)
nop
nop
nop
nop
cmp %r13, %r13
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
and $0xffffffffffffffc0, %r11
movaps %xmm4, (%r11)
add %r13, %r13
lea ... |
###############################################################################
# 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... |
MOV D, 00000100b
MOV E, 00000001b
:START
SUB D, E
; Conditional Jump if the Zero-Flag from the ALU is 1
JNZ :START
; Stops the CPU execution
HLT |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1ccba, %rsi
lea addresses_D_ht+0x13681, %rdi
nop
add $10328, %r8
mov $123, %rcx
rep movsl
nop
nop
xor $15477, %rax
lea addresses_A_ht+0x1a301, %r9
sub %r11, %r11
movb $0x61, (... |
LDA 204FH ; store value of N in accumulator
MOV C,A ; copy N in register C to use as counter
LXI H,2050H ; set up HL to point to address of first byte
LXI D,2100H ; set up DL to point to address 2100H to store the even numbers
MVI B,00H ; clear register B to count no of eve... |
dnl mpn_karaadd
dnl Copyright 2011 The Code Cavern
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the ... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
; normal.s
;
; Copyright (C) Advanced RISC Machines Li... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="ruid, euid, suid"/>
<%docstring>
Invokes the syscall setresuid. See 'man 2 setresuid' for more information.
Arguments:
ruid(uid_t): ruid
euid(uid_t): euid
suid(uid_t): suid
</%docstring>
${syscall('SYS_setresuid', ruid, euid, ... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="fd, mode"/>
<%docstring>
Invokes the syscall fchmod. See 'man 2 fchmod' for more information.
Arguments:
fd(int): fd
mode(mode_t): mode
</%docstring>
${syscall('SYS_fchmod', fd, mode)}
|
// Copyright 2016 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <bits.h>
#include <err.h>
#include <lib/acpi_lite.h>
#include <lib/acpi_lite/structures.h>
#include <lib/affine/ratio.h>
... |
; A039712: a(n) = n-th prime modulo 14.
; Submitted by Jon Maiga
; 2,3,5,7,11,13,3,5,9,1,3,9,13,1,5,11,3,5,11,1,3,9,13,5,13,3,5,9,11,1,1,5,11,13,9,11,3,9,13,5,11,13,9,11,1,3,1,13,3,5,9,1,3,13,5,11,3,5,11,1,3,13,13,3,5,9,9,1,11,13,3,9,3,9,1,5,11,5,9,3,13,1,11,13,5,9,1,9,13,1,5,3,11,1,9,13,5,3,5,9
mul $0,2
max $0,1
seq ... |
.n64
.relativeinclude on
.create "../roms/patched.z64", 0
.incbin "../roms/base.z64"
;==================================================================================================
; Base game editing region
;=================================================================================================... |
; A088821: a(n) is the sum of smallest prime factors of numbers from 1 to n.
; 0,2,5,7,12,14,21,23,26,28,39,41,54,56,59,61,78,80,99,101,104,106,129,131,136,138,141,143,172,174,205,207,210,212,217,219,256,258,261,263,304,306,349,351,354,356,403,405,412,414,417,419,472,474,479,481,484,486,545,547,608,610,613,615,620,622,... |
#include "UserTerminalRouter.hpp"
#include "ETerminal.pb.h"
namespace et {
UserTerminalRouter::UserTerminalRouter(
shared_ptr<PipeSocketHandler> _socketHandler,
const SocketEndpoint &_routerEndpoint)
: socketHandler(_socketHandler) {
serverFd = *(socketHandler->listen(_routerEndpoint).begin());
FATAL_... |
; A163590: Odd part of the swinging factorial A056040.
; 1,1,1,3,3,15,5,35,35,315,63,693,231,3003,429,6435,6435,109395,12155,230945,46189,969969,88179,2028117,676039,16900975,1300075,35102025,5014575,145422675,9694845,300540195,300540195,9917826435,583401555,20419054425,2268783825,83945001525,4418157975,172308161025,34... |
; ---------------------------------------------------------------------------
; Animation script - waterfall (LZ)
; ---------------------------------------------------------------------------
Ani_WFall: dc.w @splash-Ani_WFall
@splash: dc.b 5, 9, $A, $B, afEnd
even |
; A037717: Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1,3.
; Submitted by Jamie Morken(s1.)
; 2,10,51,258,1292,6460,32301,161508,807542,4037710,20188551,100942758,504713792,2523568960,12617844801,63089224008,315446120042,1577230600210,7886153001051,39430765005258,197... |
#include <fingera/hash/btc.h>
#include <stdlib.h>
#include <time.h>
#include <gtest/gtest.h>
#include "test_utility.h"
TEST(btc, normal) {
// bitcoin
test_btc_hash256(
"cea946542b91ca50e2afecba73cf546ce1383d82668ecb6265f79ffaa07daa49abb43e21"
"a19c6b2b15c8882b4bc01085a8a5b00168139dcb8f4b2bbe22929ce1... |
org 100h
jmp start
var1 db 50D
var2 db ?
start:
MOV CL, var1
MOV AL, 09D
IMUL CL
MOV CL, 05D
IDIV CL
ADD AL, 032D
MOV var2, AL
ret
|
; A017487: a(n) = (11*n + 8)^3.
; 512,6859,27000,68921,140608,250047,405224,614125,884736,1225043,1643032,2146689,2744000,3442951,4251528,5177717,6229504,7414875,8741816,10218313,11852352,13651919,15625000,17779581,20123648,22665187,25412184,28372625,31554496,34965783,38614472,42508549,46656000,51064811,55742968,606984... |
; A163434: Number of different fixed (possibly) disconnected tetrominoes bounded tightly by an n X n square.
; 0,1,70,425,1426,3577,7526,14065,24130,38801,59302,87001,123410,170185,229126,302177,391426,499105,627590,779401,957202,1163801,1402150,1675345,1986626,2339377,2737126,3183545,3682450,4237801,4853702,5534401,62... |
; these are all of the structs used
;;;;;;;;;;;;;;;;;;;;
; hash and table structures
;;;;;;;;;;;;;;;;;;;;
struct MainHash
table rq 1
clusterCount rq 1
lpSize rq 1 ; 0 if large pages are not in use, otherwise the allocation size
date rb 1
rb 7
ends
struct MainHashEntry ; 8 bytes
genBound rb 1 ;
depth ... |
// Turbulence Code
// Version: Beta 1
// Author: TJL
// Initial Create: 03/13/04
// Revision Date:
//
#include "stdhdr.h"
#include "AirFrame.h"
#include "simbase.h"
#include "aircrft.h"
#include "limiters.h"
#include "Graphics/Include/tmap.h"
#include "otwdrive.h"
#include "dofsnswitches.h"
#include "fakerand.h"
#inclu... |
; A198276: 19*2^n-1.
; 18,37,75,151,303,607,1215,2431,4863,9727,19455,38911,77823,155647,311295,622591,1245183,2490367,4980735,9961471,19922943,39845887,79691775,159383551,318767103,637534207,1275068415,2550136831,5100273663,10200547327,20401094655,40802189311,81604378623,163208757247,326417514495,652835028991,13056700... |
.data
hw: .asciiz "Hello World"
.text
main:
la $a0, hw
li $v0, 4
syscall
li $v0, 10
syscall
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r8
push %rbp
push %rcx
push %rsi
// Store
lea addresses_normal+0xcadc, %r10
clflush (%r10)
nop
nop
sub $46594, %rcx
mov $0x5152535455565758, %r11
movq %r11, (%r10)
nop
nop
and $22918, %rcx
//... |
; A170881: a(0)=0; thereafter a(n) = (3*n+1)*2^(n-2)+1.
; 1,3,8,21,53,129,305,705,1601,3585,7937,17409,37889,81921,176129,376833,802817,1703937,3604481,7602177,15990785,33554433,70254593,146800641,306184193,637534209,1325400065,2751463425,5704253441,11811160065,24427626497,50465865729
mov $1,$0
mul $1,3
add $1,1
mov $... |
; BEGIN_LEGAL
; Intel Open Source License
;
; Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
;
; 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 reta... |
#include "dataObjCreate.h"
#include "dataObjOpr.hpp"
#include "dataObjPhymv.h"
#include "dataObjRepl.h"
#include "fileClose.h"
#include "getRemoteZoneResc.h"
#include "getRescQuota.h"
#include "icatDefines.h"
#include "objMetaOpr.hpp"
#include "physPath.hpp"
#include "rodsLog.h"
#include "rsDataObjClose.hpp"
#include "... |
; ---------------------------------------------------------------------------
; Object 24 - buzz bomber missile vanishing (unused?)
; ---------------------------------------------------------------------------
MissileDissolve:
moveq #0,d0
move.b obRoutine(a0),d0
move.w MDis_Index(pc,d0.w),d1
jmp MDis_Index(pc,... |
; A153229: a(0) = 0, a(1) = 1, and for n>=2, a(n) = (n-1) * a(n-2) + (n-2) * a(n-1).
; 0,1,0,2,4,20,100,620,4420,35900,326980,3301820,36614980,442386620,5784634180,81393657020,1226280710980,19696509177020,335990918918980,6066382786809020,115578717622022980,2317323290554617020,48773618881154822980,1075227108896452857020... |
; A296953: Number of bisymmetric, quasitrivial, and order-preserving binary operations on the n-element set {1,...,n}.
; 0,1,4,10,22,46,94,190,382,766,1534,3070,6142,12286,24574,49150,98302,196606,393214,786430,1572862,3145726,6291454,12582910,25165822,50331646,100663294,201326590,402653182,805306366,1610612734,3221225... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1817b, %rsi
lea addresses_normal_ht+0x269b, %rdi
nop
dec %rbx
mov $94, %rcx
rep movsb
nop
nop
nop
nop
nop
inc %r14
lea addresses_A_ht+0x119e3, %rsi
lea addresses_UC_ht+0x18a9b, %rdi
n... |
;====---------------------------------------------------------------------====
; NULL cell for Unununium OE (c)2001 Lukas Demetz
; Driver for easy NULL device Distributed under BSD License
;====---------------------------------------------------------------------====
[bits 32]
sec... |
; A010001: a(0) = 1, a(n) = 5*n^2 + 2 for n>0.
; 1,7,22,47,82,127,182,247,322,407,502,607,722,847,982,1127,1282,1447,1622,1807,2002,2207,2422,2647,2882,3127,3382,3647,3922,4207,4502,4807,5122,5447,5782,6127,6482,6847,7222,7607,8002,8407,8822,9247,9682,10127,10582,11047,11522,12007,12502,13007,13522,14047,14582,15127,15... |
; entries correspond to constants/move_constants.asm
; negative entries first (see the constants file for details)
dw BattleAnim_ThrowPokeBall
dw BattleAnim_SendOutMon
dw BattleAnim_ReturnMon
dw BattleAnim_Confused
dw BattleAnim_Slp
dw BattleAnim_Brn
dw BattleAnim_Psn
dw BattleAnim_Sap
dw BattleAnim_Frz
dw Ba... |
#include "CommandLineInterface.hpp"
#include <iostream>
#include <unordered_map>
#include "Logger.hpp"
CommandLineInterface::CommandLineInterface(std::istream& is, std::ostream& os)
: input_stream{is}, output_stream{os} {}
void CommandLineInterface::welcome() const {
output_stream << "\n\nWelcome in Rock-Pape... |
; A105134: Numbers n such that 16n+9 is prime.
; 2,4,5,8,14,17,19,25,28,32,35,37,38,47,50,53,58,59,64,65,68,70,74,80,82,89,92,100,103,107,109,112,119,124,130,133,134,142,143,148,149,152,154,157,163,164,169,170,173,178,184,185,187,190,200,203,214,215,220,224,229,235,239,242,245,253,254,259,262,263,268,275,277,278,290,29... |
inventory_check:
andi a0, a0, 0xFF
li t0, SAVE_CONTEXT
beq a0, 0x8C, @@return ; Deku Nuts (5)
lbu v0, 0x75 (t0)
beq a0, 0x8D, @@return ; Deku Nuts (10)
lbu v0, 0x75 (t0)
beq a0, 0x00, @@return ; Deku Stick
lbu v0, 0x74 (t0)
beq a0, 0x8A, @@retu... |
; *********************************************************************************
; *********************************************************************************
;
; File: keyboard.asm
; Purpose: Spectrum Keyboard Interface
; Date : 27th December 2018
; Author: paul@robsons.org.uk
;
; ********************... |
; A182112: Number of ordered triples (w,x,y) with all terms in {-n,...,0,...,n} and (w+n)^2=x+y+w.
; 1,4,7,10,13,16,20,24,28,32,36,40,45,50,55,60,65,70,75,80,86,92,98,104,110,116,122,128,134,140,147,154,161,168,175,182,189,196,203,210,217,224,232,240,248,256,264,272,280,288,296,304,312,320,328,336
add $0,1
mov $2,$0
l... |
SECTION rodata_font_fzx
PUBLIC _ff_ao_Hiroshi
_ff_ao_Hiroshi:
BINARY "font/fzx/fonts/ao/Hiroshi/Hiroshi.fzx"
|
; A186813: a(n) = n if n odd, a(2n) = 3n if n odd, a(4n) = 2n.
; 0,1,3,3,2,5,9,7,4,9,15,11,6,13,21,15,8,17,27,19,10,21,33,23,12,25,39,27,14,29,45,31,16,33,51,35,18,37,57,39,20,41,63,43,22,45,69,47,24,49,75,51,26,53,81,55,28,57,87,59,30,61,93,63,32,65,99,67,34,69,105,71,36,73,111,75,38,77,117,79,40,81,123,83,42,85,129,8... |
#To be inserted at 800586a8
#############################################
##FPSHack_08_STControl_CheckUpTrigger_LowHz##
#############################################
lis r17, 0x817F
lwz r17, 0x0000 (r17) #Load LowHzFuncsRunThisFrame into r0
cmpwi r17, 1 #Check if LowHzFuncsRunThisFrame == true
#####
beq- 0x000C
##Fa... |
! crtn.s for Solaris 2, x86.
! Copyright (C) 1993, 2008, 2009 Free Software Foundation, Inc.
! Written By Fred Fish, Nov 1992
!
! This file 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 ... |
;==============================================================================
; Contents of this file are copyright Phillip Stevens
;
; You have permission to use this for NON COMMERCIAL USE ONLY
; If you wish to use it elsewhere, please include an acknowledgement to myself.
;
; https://github.com/feilipu/
;
; https:... |
; A080872: a(n)*a(n+3) - a(n+1)*a(n+2) = 4, given a(0)=a(1)=1, a(2)=5.
; Submitted by Jamie Morken(s1)
; 1,1,5,9,49,89,485,881,4801,8721,47525,86329,470449,854569,4656965,8459361,46099201,83739041,456335045,828931049,4517251249,8205571449,44716177445,81226783441,442644523201,804062262961,4381729054565,7959395846169,433... |
%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 "isom", "iso2", "mp41" ; error: no 'mif1'
ftyp_end:
; vim: syntax=nasm
|
; A064808: a(n) is the (n+1)st (n+2)-gonal number.
; 1,3,9,22,45,81,133,204,297,415,561,738,949,1197,1485,1816,2193,2619,3097,3630,4221,4873,5589,6372,7225,8151,9153,10234,11397,12645,13981,15408,16929,18547,20265,22086,24013,26049,28197,30460,32841,35343,37969,40722,43605,46621,49773,53064,56497,60075,63801,67678,7170... |
;TEST - ZMENA BARVY VSECH PIXELU
;push rbx
;mov rbx, [R9 + 4]
;xor rax, rax
;mov rax, rdx ; i
;mul rbx ; XP * i
;add eax, ecx ; XP * i + j
;mov [ rsi + rax ], byte 130
;pop rbx
bits 64
section .data
triCtvrtiny dd 0.75
maxIteraci dq 500
minPosun dd 0.002
section .text
extern sqrtf
gl... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2016 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
@256
D=A
@SP
M=D
@RETURN_LABEL0
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@0
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Sys.init
0;JMP
(RETURN_LABEL0)
(Sys.init)
@6
D=A
@SP
A=M
M=D
@SP
M=M+1
@8
D=A
@SP
A... |
object_const_def ; object_event constants
const DRAGONSDENB1F_POKE_BALL1
const DRAGONSDENB1F_CLAIR
const DRAGONSDENB1F_SILVER
const DRAGONSDENB1F_COOLTRAINER_M
const DRAGONSDENB1F_COOLTRAINER_F
const DRAGONSDENB1F_TWIN1
const DRAGONSDENB1F_TWIN2
const DRAGONSDENB1F_POKE_BALL2
const DRAGONSDENB1F_POKE_BALL3
D... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xbfd6, %rsi
lea addresses_WT_ht+0x23d6, %rdi
nop
nop
nop
nop
nop
sub %rbx, %rbx
mov $97, %rcx
rep movsl
nop
cmp $1551, %r15
lea addresses_A_ht+0x15056, %rdx
nop
and $5302, %rd... |
lw $t0, 1000
addi $t0, $t0, 1
lw $t0, 1000
lw $t0, 1008
lw $t0, 1008
lw $t0, 1044 |
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2020 Return Infinity -- see LICENSE.TXT
;
; Disk Block Storage Functions
; =============================================================================
... |
.686
.model flat
.xmm
.code
_test proc
push ebp
mov ebp,esp
sub esp,16
push edi
push esi
mov edi,0
mov esi,0
label0001:
cmp esi,8
jge label0002
cmp esi,4
jne label0003
... |
; A033676: Largest divisor of n <= sqrt(n).
; 1,1,1,2,1,2,1,2,3,2,1,3,1,2,3,4,1,3,1,4,3,2,1,4,5,2,3,4,1,5,1,4,3,2,5,6,1,2,3,5,1,6,1,4,5,2,1,6,7,5,3,4,1,6,5,7,3,2,1,6,1,2,7,8,5,6,1,4,3,7,1,8,1,2,5,4,7,6,1,8,9,2,1,7,5,2,3,8,1,9,7,4,3,2,5,8,1,7,9,10
mov $1,$0
seq $1,33677 ; Smallest divisor of n >= sqrt(n).
div $0,$1
add... |
SECTION code_fp
PUBLIC ldexp
PUBLIC __ldexp_on_fa
EXTERN dload
EXTERN fa
IF FORz88
INCLUDE "target/z88/def/fpp.def"
ELSE
INCLUDE "fpp.def"
ENDIF
;
; double ldexp (double x, int exp);
; Generate value from significand and exponent
; Returns the result of multiplying x (the sign... |
//
// Created by YANG Zehai on 2021/11/11.
//
#include "AST/Break.h"
using namespace pur;
using namespace pur::ast;
Break::Break(const pars::Location& loc): Stmt(ASTNodeType::kBreak, loc) {
/* empty */
}
void Break::Accept(Visitor& visitor) {
visitor.VisitBreak(*this);
}
|
; int compare_dostm(struct dos_tm *a, struct dos_tm *b)
SECTION code_time
PUBLIC compare_dostm
EXTERN asm_compare_dostm
compare_dostm:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_compare_dostm
|
; A047861: a(n) = T(4,n), array T given by A047858.
; 1,6,17,41,93,205,445,957,2045,4349,9213,19453,40957,86013,180221,376829,786429,1638397,3407869,7077885,14680061,30408701,62914557,130023421,268435453,553648125,1140850685,2348810237,4831838205,9932111869,20401094653,41875931133,85899345917,176093659133,360777252861,... |
#!/usr/local/bin/zasm -o original/
title 'Preliminary Z80 tests'
; prelim.z80 - Preliminary Z80 tests
; Copyright (C) 1994 Frank D. Cringle
;
; 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 Found... |
// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
// reserved. See file COPYRIGHT for details.
//
// This file is part of the MFEM library. For more information and source code
// availability see http://mfem.org.
//... |
XDEF _IntServer
CODE
R_EVENTS_ADDRESS equ 12
R_ENABLE_ADDRESS equ 13
A_EVENTS_ADDRESS equ 14
A_ENABLE_ADDRESS equ 15
A_EVENT_R2A_TAIL equ 1
A_EVENT_A2R_HEAD equ 2
INTENA equ $dff09a
CLOCK_PORT equ $dc0000
SIGB_INT equ 14
SIGF_INT equ (1 << SIGB_INT)
; a1 points to driver task
_IntServer: lea.l C... |
TrainerPalettes:
; entries correspond to trainer classes
; Each .gbcpal is generated from the corresponding .png, and
; only the middle two colors are included, not black or white.
PlayerPalette: ; Chris uses the same colors as Cal
INCBIN "gfx/trainers/cal.gbcpal", middle_colors
KrisPalette: ; Kris shares Falkner's p... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2011 Eric Niebler
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)
====... |
; A026396: Sum_{T(i,j)}, 0<=j<=i, 0<=i<=n, where T is the array in A026386.
; Submitted by Jamie Morken(s4)
; 3,7,17,37,87,187,437,937,2187,4687,10937,23437,54687,117187,273437,585937,1367187,2929687,6835937,14648437,34179687,73242187,170898437,366210937,854492187,1831054687,4272460937,9155273437,21362304687,4577636718... |
; ****************************************************************************************************************
; ****************************************************************************************************************
;
; IF command
;
; ***********************************************************... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. *
* All rights reserved. Email: russ@q12.org Web: www.q12.org *
* ... |
; A047536: Numbers that are congruent to {0, 4, 7} mod 8.
; 0,4,7,8,12,15,16,20,23,24,28,31,32,36,39,40,44,47,48,52,55,56,60,63,64,68,71,72,76,79,80,84,87,88,92,95,96,100,103,104,108,111,112,116,119,120,124,127,128,132,135,136,140,143,144,148,151,152,156,159,160,164,167,168,172,175,176,180,183,184,188,191,192,196,199,2... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x8cb9, %r15
nop
nop
nop
nop
add $36368, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, (%r15)
nop
nop
nop
add %rbp, %rbp
lea addresses_WT_ht+0x1a1b5, %r10
nop
nop
nop
nop
inc ... |
section BANK_7
binary "mainmenu.scr"
|
; void dzx7_agile_rcs_back(void *src, void *dst)
SECTION code_clib
SECTION code_compress_zx7
PUBLIC _dzx7_agile_rcs_back
EXTERN asm_dzx7_agile_rcs_back
_dzx7_agile_rcs_back:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_dzx7_agile_rcs_back
|
#include "graph_widget/layouters/standard_graph_layouter.h"
#include "netlist/gate.h"
#include "netlist/module.h"
#include "netlist/net.h"
#include "gui/graph_widget/contexts/graph_context.h"
#include "gui/graph_widget/graphics_items/global_graphics_net.h"
#include "gui/graph_widget/graphics_items/separated_graphics_... |
; A033905: Sort then Add!.
; Submitted by Jon Maiga
; 31,44,88,176,343,677,1354,2699,5398,8987,16876,33554,67009,67688,134476,268943,503632,526988,783877,1161665,2277331,3500708,3504286,3738854,7084642,7329320,7552699,10109498,10224397,11447876,22894654,45340343,48674788,93352676,116709355,128065034,129299602,141526601... |
// Copyright 2007, Google Inc.
// All rights reserved.
//
// 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 ... |
; A118455: a(1)=1, a(n) = Product_{k=2..n} P(k), where P(k) is the largest prime <= k.
; Submitted by Jamie Morken(w1)
; 1,2,6,18,90,450,3150,22050,154350,1080450,11884950,130734450,1699547850,22094122050,287223586650,3733906626450,63476412649650,1079099015044050,20502881285836950,389554744430902050,7401540144187138950... |
// Copyright (c) 2012 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 <tuple>
#include "base/bind.h"
#include "base/macros.h"
#include "base/run_loop.h"
#include "base/time/time.h"
#include "chrome/common/chrom... |
//===- unittests/AST/StmtPrinterTest.cpp --- Statement printer tests ------===//
//
// 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
//
//===---------------------------... |
;/** @file
;
; This code provides low level routines that support the Virtual Machine.
; for option ROMs.
;
; Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the B... |
; A329845: Beatty sequence for (3+sqrt(29))/5.
; 1,3,5,6,8,10,11,13,15,16,18,20,21,23,25,26,28,30,31,33,35,36,38,40,41,43,45,46,48,50,51,53,55,57,58,60,62,63,65,67,68,70,72,73,75,77,78,80,82,83,85,87,88,90,92,93,95,97,98,100,102,103,105,107
add $0,1
mov $3,1
mov $5,$0
mov $0,8
mul $5,52
sub $5,1
mov $6,1
lpb $5,2
mo... |
dnl X86-64 mpn_mul_basecase optimised for Intel Nehalem/Westmere.
dnl It also seems good for Conroe/Wolfdale.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2008, 2011-2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free sof... |
#include "GeneralHandlers.h"
// TODO: Implement
|
/*
* Copyright 2009, 2017, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* Michael Lotz <mmlr@mlotz.ch>
*/
#include "NetReceiver.h"
#include "RemoteMessage.h"
#include "StreamingRingBuffer.h"
#include <NetEndpoint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#de... |
.model small
.stack 100h
.data
.code
Main proc
mov ah,1
int 21h
mov dl,al
add dl,32
mov ah,2
int 21h
mov ah, 4ch
int 21h
main endp
end main
|
# Compute several Fibonacci numbers and put in array, then print
.data
fibs: .word 0 : 19 # "array" of words to contain fib values
size: .word 19 # size of "array" (agrees with array declaration)
prompt: .asciiz "How many Fibonacci numbers to generate? (2 <= x <= 19)"
space: .asciiz " " # spac... |
;------------------------------------------------------------------------------
;
; 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... |
// (C) Copyright Gennadiy Rozental 2001.
// (C) Copyright Beman Dawes 1995-2001.
// 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)
// See http://www.boost.org/libs/test for the library home page.
//
// File... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xc801, %rax
nop
nop
nop
nop
inc %rsi
mov $0x6162636465666768, %r13
movq %r13, %xmm2
vmovups %ymm2, (%rax)
nop
and %r12, %r12
lea addresses_D_ht+0x15c11, %r8
nop
nop
nop
no... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1369, %r11
nop
nop
cmp %rdx, %rdx
movups (%r11), %xmm1
vpextrq $1, %xmm1, %rbp
nop
nop
nop
inc %r15
lea addresses_UC_ht+0x1dd69, %rsi
lea addresses_UC_ht+0x2b69, %rdi
and $5... |
.CODE
PUBLIC rollbackStack
rollbackStack PROC
; add esp, 1024;
mov EBP, ESP
rollbackStack ENDP
END
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.