text stringlengths 1 1.05M |
|---|
;===============================================================================
; BASIC Loader
*=$0801 ; 10 SYS (2064)
byte $0E, $08, $0A, $00, $9E, $20, $28, $32
byte $30, $36, $34, $29, $00, $00, $00
; Our code starts at $0810 (2064 decimal)
; after the 15 bytes for the BA... |
; A033890: a(n) = Fibonacci(4*n+2).
; 1,8,55,377,2584,17711,121393,832040,5702887,39088169,267914296,1836311903,12586269025,86267571272,591286729879,4052739537881,27777890035288,190392490709135,1304969544928657,8944394323791464,61305790721611591,420196140727489673,2880067194370816120,19740274219868223167,13530185234470... |
// Copyright (c) 2017-2020, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "axom/mint/config.hpp" // for compile-time type
// ... |
; A330395: Number of nontrivial equivalence classes of S_n under the {1234,3412} pattern-replacement equivalence.
; 1,9,26,51,85,129,184,251,331,425,534,659,801,961,1140,1339,1559,1801,2066,2355,2669,3009,3376,3771,4195,4649,5134,5651,6201,6785,7404,8059,8751,9481,10250,11059,11909,12801,13736,14715,15739,16809,17926,1... |
;
; z88dk library: Generic VDP support code
;
;
; $Id: gen_clg.asm,v 1.2 2010/09/15 09:00:39 stefano Exp $
;
XLIB clg
LIB msx_set_mode
LIB msx_color
LIB FILVRM
.clg
ld hl,2 ; set graphics mode
call msx_set_mode
ld hl,15
push hl ; border
push hl ; paper
ld hl,0 ;... |
; A214856: Number of triangular numbers in interval ](n-1)^2, n^2] for n>0, a(0)=1.
; 1,1,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1
mov $7,$0
mov $9,2
lpb $9,1
mov $0,$7
sub $9,1
add $0,$9
sub $0,1
pow $0,2
... |
// Boost.Function library
// Copyright Douglas Gregor 2002-2003. 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.boost.org/LICENSE_1_0.txt)
// For more information, see http://www.boost.org
#d... |
* Sprite cf10
*
* Mode 4
* +|------------+
* - gg ggg g g -
* |g g gg g g|
* |g g g g g|
* |g gg g g g|
* |g g g g g|
* |g g g g g|
* | gg g ggg g |
* +|------------+
*
section sprite
xdef sp_cf10
xref sp_zero
sp_cf10
dc.w $0100,$0000
dc.w 13,7,0,0
dc.l sc4_cf10-*
dc.l sp_zero-*
dc.l 0
sc4_cf10
... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\pmc_exclusiveor.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
msvcjmc SEGMENT
__7B7A869E_ct... |
// Copyright 2020 Tier IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1623, %rsi
lea addresses_UC_ht+0xd7b1, %rdi
clflush (%rdi)
nop
nop
nop
xor %r10, %r10
mov $85, %rcx
rep movsl
nop
sub $31939, %r10
lea addresses_UC_ht+0x1c423, %rdi
cmp %r10,... |
;M328 ADC Recorder
.nolist
.include "m328pdef.inc"
.list
.def TEMP = R16
.def ADCin = R24
.def ButtonInput = R18
.def DBcount = R17
.equ SamplePer = 48
.equ ADCwriteAdd = SRAM_START + $10
.equ ADCreadAdd = SRAM_START + $12
.equ ADCtable = SRAM_START + $20
.equ ADCtableEnd = $07FF
.equ PWmin = 800
... |
TITIE Troubleshoot.asm
INCLUDE Irvine32.asm
rows = 2 * 3
PressKey equ <Press a Key to continue. >
.data
a word ae32h
b dword 015b
c byte 32d
astr byte "this is a string"
anArr word ? , 32, 32h,
word "th", 'is', ah
.code
main PROC
mov eax, 0
mov ebx, eax
mov eax, a; put a in eax
mov ebx, b; put b in ebx
mov a, b; a... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="fd, buf, nbytes, offset"/>
<%docstring>
Invokes the syscall pread. See 'man 2 pread' for more information.
Arguments:
fd(int): fd
buf(void): buf
nbytes(size_t): nbytes
offset(off_t): offset
</%docstring>
${syscall('SYS_pread... |
#include <iostream>
#include <fstream>
#include <cerrno>
#include <cstring>
#include <chrono>
#include <memory>
using namespace std;
// Implemented with a buffer and C style char arrays. Can sometimes be slightly faster than C++ strings.
class totalWithLen {
// container for returning both a total and the size
p... |
// Copyright 2020 The XLS 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 agreed t... |
assume cs:code
code segment
mov ax,0ffffh
mov ds,ax
mov ax,0020h
mov es,ax
mov bx,0 ; EA
mov cx,12 ; loop counter
s: mov ds:[bx],dl ; (dl) <- (ffff:EA)
mov es:[bx],dl ; (0020:EA) <- (dl)
inc bx ; EA++
loop s
mov ax,4c00h
int 21h
code ends
end |
; @author Changlon <changlong.a2@gmail.com>
; @github https://github.com/Changlon
; @date 2022-02-05 15:33:03
; IF 中断标志位,1 ->接受 INTER 中断信号
; cli ->清除IF -> 0
; sti -> 设置IF -> 1
; iret -> pop : ip ,cs ,flags
; test r/m , r/imm 相当于and 但不保存结果,影响 zf,sf,pf
; test al, 0000 1000b 测试al 位3 从而影响 zf
; not r/m 求反... |
// Copyright 2019 The Fuchsia 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 <lib/fidl/coding.h>
#include <lib/fidl/internal.h>
#include <lib/fidl/transformer.h>
#include <cassert>
#include <cinttypes>
#include <cstdio>
#i... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x16d8a, %r9
xor %rsi, %rsi
mov (%r9), %r15d
nop
nop
nop
nop
nop
lfence
lea addresses_UC_ht+0x14c50, %rsi
lea addresses_WC_ht+0x1db3c, %rdi
add $23931, %r15
mov $70, %rcx
rep m... |
# Zeynep Cankara -- 20/02/2019
# isPalindrome.asm -- Takes a string as user input checks isPalindrome
# Registers used:
## Text Section ##
.globl __start
.text
__start:
# prompt the task on screen
li $v0, 4
la $a0, task
syscall
# ask user enter the string
li $v0, 4
la $a0, prompt
syscall
# read the st... |
; A022099: Fibonacci sequence beginning 1, 9.
; 1,9,10,19,29,48,77,125,202,327,529,856,1385,2241,3626,5867,9493,15360,24853,40213,65066,105279,170345,275624,445969,721593,1167562,1889155,3056717,4945872,8002589,12948461,20951050,33899511,54850561,88750072,143600633,232350705
mov $1,4
mov $3,36
lpb $0
sub $0,1
mov ... |
;******************************************************************************
;* x86-SIMD-optimized IDCT for prores
;* this is identical to "simple" IDCT written by Michael Niedermayer
;* except for the clip range
;*
;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* ... |
; Ellipse Workstation 1100 (fictitious computer)
; Ellipse DOS execution/task functions
;
; Copyright (c) 2020 Sampo Hippeläinen (hisahi)
;
; 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 Sof... |
;*****************************************************************************
;* x86inc.asm: x264asm abstraction layer
;*****************************************************************************
;* Copyright (C) 2005-2014 x264 project
;*
;* Authors: Loren Merritt <lorenm@u.washington.edu>
;* Anton Mitrofan... |
; float lgamma(float x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciy_lgamma
EXTERN cm48_sdcciy_lgamma_fastcall
cm48_sdcciy_lgamma:
pop af
pop hl
pop de
push de
push hl
push af
jp cm48_sdcciy_lgamma_fastcall
|
; A011877: [ n(n-1)/24 ].
; 0,0,0,0,0,0,1,1,2,3,3,4,5,6,7,8,10,11,12,14,15,17,19,21,23,25,27,29,31,33,36,38,41,44,46,49,52,55,58,61,65,68,71,75,78,82,86,90,94,98,102,106,110,114,119,123,128,133,137,142,147,152,157,162,168,173,178,184,189
bin $0,2
div $0,12
|
.include "defaults_mod.asm"
table_file_jp equ "exe5-utf8.tbl"
table_file_en equ "bn5-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252424A // BRBJ
game_code_2 equ 0x42524245 // BRBE
game_code_3 equ 0x42524250 // BRBP
card_type equ 1
card_id equ 78
card_no equ "078"
card_sub equ "Mod Card 078"
card_sub_x ... |
; A021953: Decimal expansion of 1/949.
; Submitted by Jamie Morken(s4.)
; 0,0,1,0,5,3,7,4,0,7,7,9,7,6,8,1,7,7,0,2,8,4,5,1,0,0,1,0,5,3,7,4,0,7,7,9,7,6,8,1,7,7,0,2,8,4,5,1,0,0,1,0,5,3,7,4,0,7,7,9,7,6,8,1,7,7,0,2,8,4,5,1,0,0,1,0,5,3,7,4,0,7,7,9,7,6,8,1,7,7,0,2,8,4,5,1,0,0,1
add $0,1
mov $2,10
pow $2,$0
div $2,949
mov $0,... |
/**
* GLOBALS["default.engine.frame"] = number; //default 100.
* GLOBALS["default.net.open"] = bool; //default false.
* GLOBALS["default.net.service"] = bool; //default false.
* GLOBALS["default.net.service_ip"] = string; //default "".
* GLOBALS["default.net.service_port"] = number; //d... |
# Copyright (C) 2001 Free Software Foundation, Inc.
# Written By Nick Clifton
#
# 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 2, or (at your option) any
# later version.
#
# ... |
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2003-2008 Matthias Christian Schabel
// Copyright (C) 2008 Steven Watanabe
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE... |
SafariZoneWest_Script:
jp EnableAutoTextBoxDrawing
SafariZoneWest_TextPointers:
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw SafariZoneWestText5
dw SafariZoneWestText6
dw SafariZoneWestText7
dw SafariZoneWestText8
SafariZoneWestText5:
text_far _SafariZoneWestText5
text_end
Sa... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x4a5e, %rsi
lea addresses_D_ht+0x75ec, %rdi
nop
nop
nop
nop
nop
inc %rdx
mov $2, %rcx
rep movsq
nop
nop
nop
sub $58742, %r9
lea addresses_WT_ht+0x2f9e, %rsi
lea addresses_UC_ht+0x1ca5e, %rdi
... |
;-----------------------------;
; FIBONACCI GENERATOR FOR PIC ;
; ;
; Por: Prof. Carlo Requiao ;
; 31/Jul/2020 ;
;-----------------------------;
list p = 16f877a
org 0x00
goto INICIO
INICIO: movlw 0x05 ; cnt = 5
movwf 0x23
... |
; A157444: a(n) = 1331*n - 209.
; 1122,2453,3784,5115,6446,7777,9108,10439,11770,13101,14432,15763,17094,18425,19756,21087,22418,23749,25080,26411,27742,29073,30404,31735,33066,34397,35728,37059,38390,39721,41052,42383,43714,45045,46376,47707,49038,50369,51700,53031,54362,55693,57024,58355,59686,61017,62348,63679,65010... |
// File doc/quickbook/oglplus/quickref/enums/framebuffer_target.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/framebuffer_target.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 Matus Chochlik.
// Distributed under the ... |
; A132720: Sequence is identical to its second differences in absolute values.
; 1,2,4,8,8,16,32,32,64,128,128,256,512,512,1024,2048,2048,4096,8192,8192,16384,32768,32768,65536,131072,131072,262144,524288,524288,1048576,2097152,2097152,4194304,8388608,8388608,16777216,33554432,33554432,67108864,134217728,134217728,2684... |
%include "../UltimaPatcher.asm"
%include "include/uw1.asm"
%include "include/uw1-eop.asm"
[bits 16]
startPatch EXE_LENGTH, \
call eop enqueueGridCoords to flip drawing of geometry behind player
%macro callEopEnqueueGridCoordsAt 2
startBlockAt %1, %2
callFromLoadModule byCallSiteEopDispatcher
endBlockOfL... |
@localsize 16, 1, 1
@buf 16 ; g[0]
@invocationid(r0.x) ; r0.xyz
@branchstack 1
cmps.u.gt p0.x, r0.x, 0
mov.u32u32 r1.x, 0x87654321
(rpt5)nop
br !p0.x, #endif
mov.u32u32 r1.x, 0x12345678
endif:
(jp)(rpt5)nop
stib.b.untyped.1d.u32.1.imm r1.x, r0.x, 0
end
nop
|
// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s
// The object declared in an exception-declaration or, if the
// exception-declaration does not specify a name, a temporary (12.2)
// is copy-initialized (8.5) from the exception object.
//
template<typename T>
class X {
T* ptr;
public:
X(c... |
BikeShop_h:
db CLUB ; tileset
db BIKE_SHOP_HEIGHT, BIKE_SHOP_WIDTH ; dimensions (y, x)
dw BikeShopBlocks, BikeShopTextPointers, BikeShopScript ; blocks, texts, scripts
db $00 ; connections
dw BikeShopObject ; objects
|
; A054554: a(n) = 4n^2 - 10n + 7.
; 1,3,13,31,57,91,133,183,241,307,381,463,553,651,757,871,993,1123,1261,1407,1561,1723,1893,2071,2257,2451,2653,2863,3081,3307,3541,3783,4033,4291,4557,4831,5113,5403,5701,6007,6321,6643,6973,7311,7657,8011,8373,8743,9121,9507,9901,10303,10713,11131,11557,11991,12433,12883,13341,13807,... |
; CRT0 for the Mattel Aquarius
;
; Stefano Bodrato Dec. 2000
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: aquarius_crt0.asm,v 1.8 2009/06/22 21:20:05 dom Exp $
;
MODULE aquarius_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
... |
; void SMS_loadPSGaidencompressedTiles(void *src, unsigned int tilefrom)
SECTION code_clib
SECTION code_SMSlib
PUBLIC SMS_loadPSGaidencompressedTiles
EXTERN SMS_loadPSGaidencompressedTiles_callee_0
SMS_loadPSGaidencompressedTiles:
pop af
pop hl
pop de
push de
push hl
push af
jp SMS_loadPSGaidencompre... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>vfork() -> str
Invokes the syscall vfork.
See 'man 2 vfork' for more information.
Arguments:
Returns:
pid_t
</%docstring>
<%page args=""/>
<%
abi = pwnlib.abi.ABI.syscall()
stack = abi.stack
regs ... |
// Copyright 2017 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 "gin/gin_features.h"
#include "base/metrics/field_trial_params.h"
namespace features {
// Enables optimization of JavaScript in V8.
const base:... |
; A170377: Number of reduced words of length n in Coxeter group on 32 generators S_i with relations (S_i)^2 = (S_i S_j)^43 = I.
; 1,32,992,30752,953312,29552672,916132832,28400117792,880403651552,27292513198112,846067909141472,26228105183385632,813071260684954592,25205209081233592352,781361481518241362912,2422220592706... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x432b, %r10
nop
nop
cmp $44460, %rbp
and $0xffffffffffffffc0, %r10
vmovntdqa (%r10), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %r8
nop
nop
nop
nop
n... |
.text
getMin:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -24(%rbp)
movl %esi, -28(%rbp)
movl $0, -4(%rbp)
movss .FL0(%rip), %xmm0
movss %xmm0, -84(%rbp)
movl $999999, -8(%rbp)
jmp .L2
.L3:
movl -4(%rbp), %eax
movl -8(%rbp), %eax
cmpl %eax, -8(%rbp)
jge .L4
movl -4(%rbp), %eax
cltq
leaq 0(,%rax,4), %r... |
; A052794: E.g.f.: -x^5*log(1-x).
; 0,0,0,0,0,0,720,2520,13440,90720,725760,6652800,68428800,778377600,9686476800,130767436800,1902071808000,29640619008000,492490285056000,8688935743488000,162193467211776000,3193183885731840000,66117689869271040000,1436223152160276480000,32655179038591549440000,775560502166549299200000... |
song364restored_pri equ 100
song364restored_rev equ 0
song364restored_mvl equ 127
song364restored_key equ 0
song364restored_tbs equ 1
song364restored_exg equ 0
song364restored_cmp equ 1
.align 4
;**************** Track 1 (Midi-Chn.7) ****************;
@song364restored_1:
.byte KEYSH , song364restored_key+... |
aLine 0
nNew newNodePtr, {0:D}
gNewVPtr temp
gMoveNext temp, Root
nMoveAbs newNodePtr, 1380, 435.455
aLine 1
gBne temp, null, 4
aLine 2
gMove Rear, newNodePtr
Jmp 3
aLine 5
pSetPrev temp, newNodePtr
aLine 7
pSetNext newNodePtr, temp
aLine 8
pSetNext Root, newNodePtr
aLine 9
pSetPrev newNodePtr, Root
aLine 10
aSt... |
BITS 64
pre_test:
dec edi
jnz near pre_test ; translates to a DWORD
; -- Test finished at this point --
rdtsc
mov [rsi + 8], eax ; __TEST_SETTINGS.ts2_l
mov [rsi + 12], edx ; __TEST_SETTINGS.ts2_h
ret |
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2016 Return Infinity -- see LICENSE.TXT
;
; Initialization Includes
; =============================================================================
%in... |
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2018-2020, The Regents of the University of California
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that... |
;
;
; Z88 Maths Routines
;
; C Interface for Small C+ Compiler
;
; 7/12/98 djm
;double sqrt(double)
;Number in FA..
INCLUDE "fpp.def"
PUBLIC sqrt
EXTERN fsetup
EXTERN stkequ2
.sqrt
call fsetup
fpp(FP_SQR)
... |
; A238768: Number of n X 1 0..3 arrays with no element equal to the sum modulo 4 of elements to its left or elements above it.
; Submitted by Jamie Morken(s1)
; 3,6,14,32,72,164,372,844,1916,4348,9868,22396,50828,115356,261804,594172,1348492,3060444,6945772,15763644,35776076,81194908,184274348,418216316,949154828,21541... |
AREA SBCS, CODE, READONLY
ENTRY
LDR R0,=0X40000000
LDR R10,=0X40000050
LDR R4, #32
LDR R5, [R0], #04 ; N (no. of numbers)
LDR R2, [R0], #04
SUB R5, R5, #01 ; counter
OUTER
START
MOVS R3, R2, LSL #01
BCC FINE
BCS BREAK
SUBS R4, R4, #01
BNE START
FIN... |
;
;
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2019 Broadcom Inc. All rights reserved.
;
;
; This is the default program for Greyhound SKUs:
; BCM53422
;
; To start it, use the following commands from ... |
; A118649: Row sums for A106597.
; 1,2,5,12,30,74,184,456,1132,2808,6968,17288,42896,106432,264080,655232,1625760,4033824,10008704,24833536,61616832,152883328,379333248,941199488,2335298816,5794330112,14376858880,35671780352,88508618240
add $0,1
seq $0,52987 ; Expansion of (1-2x^2)/(1-2x-2x^2+2x^3).
div $0,2
|
; A284403: Binary representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 913", based on the 5-celled von Neumann neighborhood.
; 1,0,101,1110,11111,111111,1111111,11111111,111111111,1111111111,11111111111,111111111111,111111... |
global test_case
extern std.outdln
section .text
test_case:
mov rax, 2 ; value
call std.outdln ; print value
ret
|
;; Copyright (c) Microsoft Corporation. All rights reserved.
;; Licensed under the MIT License.
include ksamd64.inc
extern __oe_dispatch_ocall:proc
;;==============================================================================
;;
;; void oe_enter_sim(
;; [IN] void* tcs,
;; [IN] void (*aep)(),
;; [IN] u... |
;==============================================================
; WLA-DX banking setup
;==============================================================
.memorymap
defaultslot 0
slotsize $8000
slot 0 $0000
.endme
.rombankmap
bankstotal 1
banksize $8000
banks 1
.endro
;===================================================... |
SECTION code_fp_math32
PUBLIC l_f32_lt
EXTERN m32_compare_callee
.l_f32_lt
call m32_compare_callee
ret C
dec hl
ret
|
%ifdef CONFIG
{
"RegData": {
"MM7": ["0x8000000000000000", "0x3FFE"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov eax, 2
mov [rdx + 8 * 1], eax
fld qword [rdx + 8 * 0]
fidiv dword [rdx + 8 * 1]
hlt
|
; A085478: Triangle read by rows: T(n, k) = binomial(n + k, 2*k).
; Submitted by Jamie Morken(s2)
; 1,1,1,1,3,1,1,6,5,1,1,10,15,7,1,1,15,35,28,9,1,1,21,70,84,45,11,1,1,28,126,210,165,66,13,1,1,36,210,462,495,286,91,15,1,1,45,330,924,1287,1001,455,120,17,1,1,55,495,1716,3003,3003,1820,680,153,19,1,1,66,715,3003,6435,800... |
org $15C72D ; Routine to hack
; First canal row
skip 9 ; Skip to $15C736
CMP #$A4 ; Check if map is on row A4
skip 2 ; Skip to $15C73A
LDA #$1A ; Load 1A (middle right sea coast)
STA $7F5CD6,x ; Store new tile into 7F:65A4
LDA #$16 ; Load 16 (grass field)
STA $7F5CD7,x ... |
#pragma once
// Define VTUNE_PATH to use vtune for profiling
// #define VTUNE_PATH "/opt/intel/oneapi/vtune/2021.2.0/bin64/vtune"
|
/*
*
* Copyright (c) 2021 Project CHIP 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 requir... |
global _main
default rel
section .text
_main:
call print_question
call read_input
call print_answer
call exit
print_question:
; print question message
mov rax, syscall_write ; write
mov rdi, stdout ; stdout
mov rsi,... |
00000000
00000001
10100000
00000000
11010000
00000001
10100000
00000001
11010000
00000010
10110000
00000010
11010000
00000000
01010000
00000001
11010000
00000010
10110000
00000000
11010000
00000001
10000000
00011101
00100000
00000000
11100000
00001010
00000000
11101001
11100000
00011100 |
; A134142: List of quadruples: 2*(-4)^n, -3*(-4)^n, 2*(-4^n), 2*(-4)^n, n >= 0.
; 2,-3,2,2,-8,12,-8,-8,32,-48,32,32,-128,192,-128,-128,512,-768,512,512,-2048,3072,-2048,-2048,8192,-12288,8192,8192,-32768,49152,-32768,-32768,131072,-196608,131072,131072,-524288,786432,-524288,-524288,2097152,-3145728,2097152,2097152,-83... |
; CRT0 for the ZX80
;
; Stefano Bodrato Dec. 2012
;
; If an error occurs (eg. out if screen) we just drop back to BASIC
;
; ZX80 works in FAST mode only, thus the screen is visible only
; during a PAUSE or waiting for a keypress.
;
;
; - - - - - - -
;
; $Id: zx80_crt0.asm,v 1.15 2016-07-1... |
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(int argc, const char * argv[]) {
int N, K, l;
vector<int> v;
int sum;
//初期化
sum = 0;
//入力
cin >> N >> K;
for (int i = 0; i < N; i++) {
cin >> l;
v.push_back(l);
}
/... |
83_Header:
sHeaderInit ; Z80 offset is $CD96
sHeaderPatch 83_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 83_FM5, $15, $05
83_FM5:
sPatFM $00
ssModZ80 $01, $01, $20, $85
dc.b nD0, $03, nB0, $1E
sStop
83_Patches:
; Patch $00
; $35
; $02, $FD, $01, $F6, $0F, $16, $14, $11
; $06, $04, $... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#includ... |
; void *bsearch(const void *key, const void *base,
; size_t nmemb, size_t size,
; int (*compar)(const void *, const void *))
SECTION code_clib
SECTION code_stdlib
PUBLIC bsearch
EXTERN asm_bsearch
bsearch:
pop af
pop ix
pop de
pop hl
pop bc
exx
pop bc
push b... |
;
; Copyright (c) 2022 Phillip Stevens
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
; feilipu, January 2022
;
;----------------------------------------------... |
; A174112: After correction, duplicate of A111490.
; 1,2,4,5,9,9,15,16,21,23,33,29,41,45,51,52,68,65,83,81,91,99,121,109,128,138,152,152,180,168,198,199,217,231,253,234,270,286,308,298,338,326,368
mov $2,$0
lpb $0,1
add $1,1
mov $3,$0
sub $0,1
sub $1,1
add $4,1
mod $3,$4
add $1,$3
lpe
add $1,1
add $1,$2
|
; Program 4.4
; Array - MASM (64-bit)
; Copyright (c) 2020 Hall & Slonka
extrn ExitProcess : proc
.data
array QWORD 1, 2, 3, 4
.code
_main PROC
; Load using byte offsets
lea rsi, array
mov rax, QWORD PTR [rsi]
mov rbx, QWORD PTR [rsi + 8]
; Save using indices
mov rdx, 2
mov QWORD PTR [rsi+rdx*8], 1... |
; A249852: a(n) is the total number of pentagons on the left or the right of the vertical symmetry axis of a pentagon expansion (vertex to vertex) after n iterations.
; 0,2,7,14,23,35,50,67,86,108,133,160,189,221,256,293,332,374,419,466,515,567,622,679,738,800,865,932,1001,1073,1148,1225,1304,1386,1471,1558,1647,1739,1... |
Function f0
-closures 1
PushNull
PushString "Test"
Require
StoreClosure 0
PushFunction f1
Store 0
Grab 0
CallFunctionNoReturn 0
Function f1
-closures 1
PushNull
PushFunction f2
StoreClosure 0
PushString "Recursive Fibonacci"
PushString "begin"
LoadClosure 1
LoadElement
CallFunctionNoReturn 1
PushUnsignedInteger 35
Load... |
SECTION "Undocumented Registers", ROMX
UndocumentedRegistersTest::
; Test register $FF72
ldh a, [$FF72]
and a
jr z, .validInitFF72
ld de, strInvalidInit
ld b, "2"
jr ReturnFailString
.validInitFF72
dec a
ldh [$FF72], a
ldh a, [$FF72]
cp $FF
jr z, .validWriteFF72
ld de... |
#include "Platform.inc"
#include "TailCalls.inc"
#include "Lcd/Isr.inc"
#include "PowerManagement/Isr.inc"
#include "Clock.inc"
#include "Motor/Isr.inc"
#include "InitialisationChain.inc"
radix decimal
extern INITIALISE_AFTER_ISR
MOTOR_ADC_CHANNEL equ b'00011100'
MOTOR_LOAD_FLAGS_MASK equ (1 << MOTOR_FLAG_N... |
//
// VoxelTree.cpp
// libraries/voxels/src
//
// Created by Stephen Birarda on 3/13/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <algorithm>
#include <QDebug... |
; r0: timer 0 owerflov counter
; r1: timer 1 owerflov counter
; r2: error code
; r3: timer high expected value
; r4: timer low expected value
; r5: owerflov counter expected value
ajmp start;
org 03h ;external interrupt 0
reti;
org 0bh ;t/c 0 interrupt
inc r0;
nop;
nop;
nop;
nop;
reti;
org 13h ;extern... |
###############################################################################
# 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... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.24.28316.0
TITLE C:\Users\Anubis\Desktop\UA\UAADCProjects\Individual\Parte1\EjerciciosEnsamblador\Ejemplo1\Suma.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
msvcjmc SEGMENT
__D9A2886B_corecrt_stdio_conf... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "ne... |
; A327582: a(n) = (17 * 7^(2*n+1) + 1)/24. Sequence related to the properties of the partition function A000041 modulo a power of 7.
; 5,243,11905,583343,28583805,1400606443,68629715705,3362856069543,164779947407605,8074217422972643,395636653725659505,19386196032557315743,949923605595308471405,46546256674170115098843,2... |
;
; file: asm_main.asm
%include "asm_io.inc"
;
; initialized data is put in the .data segment
;
segment .data
; uninitialized data is put in the .bss segment
;
segment .bss
;
; code is put in the .text segment
;
segment .text
global asm_main
asm_main:
enter 0,0 ; setup routine
... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1c62, %rdx
nop
nop
nop
sub $23144, %rcx
mov (%rdx), %edi
nop
nop
nop
nop
xor $20958, %r14
lea addresses_A_ht+0x1b062, %r11
nop
xor %r13, %r13
mov (%r11), %r15d
nop
inc %r13
... |
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x20
.word 0x74
.word 0xc8
.word 0x11c
.word 0x170
.word 0x1c4
.word 0x218
.word 0x26c
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0... |
/******************************************************************************
*
* Project: GDAL Core
* Purpose: Read metadata from EROS imagery.
* Author: Alexander Lisovenko
* Author: Dmitry Baryshnikov, polimax@mail.ru
*
******************************************************************************
* ... |
; A172486: Number of prime knots up to nine crossings with determinant 2n+1 and signature 6.
; 0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1
add $0,28
mov $1,1
mov $2,$0
gcd $2,120
bin $1,$2
|
dnl Intel Pentium-III mpn_popcount, mpn_hamdist -- population count and
dnl hamming distance.
dnl Copyright 2000, 2002, 2004 Free Software Foundation, Inc.
dnl
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
dnl modify it under the terms of... |
; A103644: Expansion of g.f. (3x+1)/(1+2x-6x^2-27x^3).
; Submitted by Jamie Morken(s1)
; 1,1,4,25,1,256,169,1225,5476,961,64009,25600,358801,1164241,515524,15642025,3243601,101284096,239228089,216825625,3736387876,287336401,27697946329,47210598400,79524564001,872059013281,7715514244,7364086279225,8863713885601,26665408... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.