text stringlengths 1 1.05M |
|---|
MEM_LOC1 = 0x200 # Example of using variable
add(r0, r2, r3)
sub(r2, r4, r4)
load(r2, MEM_LOC1)
label("L1")
move(r2, r7)
jmp(L1)
|
; A164429: Number of binary strings of length n with no substrings equal to 0000, 0011, or 1011.
; 1,2,4,8,13,21,33,50,75,112,166,245,361,531,780,1145,1680,2464,3613,5297,7765,11382,16683,24452,35838,52525,76981,112823,165352,242337,355164,520520,762861,1118029,1638553,2401418,3519451,5158008,7559430,11078885,16236897,... |
%ifdef CONFIG
{
"RegData": {
"MM6": ["0x8000000000000000", "0x3FFF"],
"MM7": ["0x8000000000000000", "0x3FFF"]
},
"Mode": "32BIT"
}
%endif
lea edx, [data]
fld tword [edx + 8 * 0]
lea edx, [data2]
fld tword [edx + 8 * 0]
fst st1
hlt
align 8
data:
dt 2.0
dq 0
data2:
dt 1.0
dq 0
|
CanLearnTMHMMove:
ld a, [wCurPartySpecies]
ld [wCurSpecies], a
call GetBaseData
ld hl, wBaseTMHM
push hl
ld a, [wPutativeTMHMMove]
ld b, a
ld c, 0
ld hl, TMHMMoves
.loop
ld a, [hli]
and a
jr z, .end
cp b
jr z, .asm_11659
inc c
jr .loop
.asm_11659
pop hl
ld b, CHECK_FLAG
push de
ld d, 0
predef Sma... |
; A152090: a(n) = 2^n*Product_{k=1..floor((n-1)/2)} (1 + 2*cos(k*Pi/n)^2 + 4*cos(k*Pi/n)^4).
; Submitted by Christian Krause
; 1,1,1,3,7,16,39,91,217,513,1216,2881,6825,16171,38311,90768,215047,509491,1207089,2859841,6775552,16052673,38032081,90105811,213479175,505776016,1198287271,2838988683,6726147337,15935624641,377... |
; A074503: a(n) = 1^n + 2^n + 7^n.
; 3,10,54,352,2418,16840,117714,823672,5765058,40354120,282476274,1977328792,13841291298,96889018600,678223089234,4747561542712,33232930635138,232630514118280,1628413598172594,11398895185897432
mov $2,2
pow $2,$0
add $2,2
mov $3,7
pow $3,$0
add $2,$3
mov $4,$2
add $4,2
mul $4,2
gcd $... |
#Código mínimo. Soma 2 números fixos, imprime o resultado e sai
addi $t0, $zero, 3
addi $t1, $zero, 4
add $s0, $t0, $t1 # $s0 = 3 + 4
# Imprime resultado
addi $v0, $zero, 1 # print_int syscall code = 1
add $a0, $zero, $s0
syscall
# Sai do programa
addi $v0, $zero, 1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x4b87, %rsi
nop
nop
nop
nop
cmp %r12, %r12
mov (%rsi), %rdi
nop
and %r8, %r8
lea addresses_WT_ht+0x53a7, %rsi
lea addresses_normal_ht+0xdb87, %rdi
add $4707, %r11
mov $49, %rc... |
.orig x3000
START
; first show initial strings before modification
; print all three strings on one line
LEA R0, LF ; print newline
PUTS
LEA R0, S1 ; print the strings
PUTS
LEA R0, S2
PUTS
LEA R0, S3
PUTS
LEA R0, LF ; print newline
PUTS
TEST1 ; first test
LEA R1, S2
LEA R2, S3
JSR S... |
# =========================================================================
#
# NAME:
# DATE: June 06, 2001
# ASSIGNMENT: Example #3, CSC-201-01
# OBJECTIVE: Print "Hello World!" once then create a for loop starting
# from 0 to 99. Every 8th integer (0, 8, 16, 24, ... ) should
# be... |
// Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: Paul Koch <code@koch.ninja>
#ifndef EBM_STATS_HPP
#define EBM_STATS_HPP
#include <cmath> // log, exp, etc
#include <stddef.h> // size_t, ptrdiff_t
#include "ebm_native.h"
#include "logging.h"
#include "zones.h"
#include "ebm_i... |
; A004517: Generalized nim sum n + n in base 7.
; Submitted by Jamie Morken(s3)
; 0,2,4,6,1,3,5,14,16,18,20,15,17,19,28,30,32,34,29,31,33,42,44,46,48,43,45,47,7,9,11,13,8,10,12,21,23,25,27,22,24,26,35,37,39,41,36,38,40,98,100,102,104,99,101,103,112
mov $3,1
lpb $0
mov $2,$0
div $0,7
mul $2,9
mod $2,7
mul $2,... |
; A316627: a(1)=2, a(2)=3; a(n) = a(n+1-a(n-1))+a(n-a(n-2)) for n > 2.
; Submitted by Jamie Morken(w4)
; 2,3,4,4,5,6,6,7,8,8,8,9,10,10,11,12,12,12,13,14,14,15,16,16,16,16,17,18,18,19,20,20,20,21,22,22,23,24,24,24,24,25,26,26,27,28,28,28,29,30,30,31,32,32,32,32,32,33,34,34,35,36,36,36,37,38,38,39,40,40,40,40,41,42,42,43... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SMS_01_OUTPUT_TERMINAL_TTY_Z88DK
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Windowed output terminal for fixed width fonts.
; Implements tty_z88dk terminal emulation.
;
; ;;;;;;;;;;;;;;;;;;;;
; DRIVER CLASS DIAGRAM
; ;;;;;;;;;;;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1005, %r11
and $4662, %r13
movw $0x6162, (%r11)
nop
nop
nop
nop
nop
sub $58321, %r15
lea addresses_D_ht+0x5925, %r10
nop
nop
nop
nop
and $54072, %r15
vmovups (%r10), %ymm1
v... |
; A133878: n modulo 8 repeated 8 times.
; 1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5
add $0,8
div $0,8
mod $0,8
|
; A313116: Coordination sequence Gal.5.116.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,4,9,14,19,24,29,34,39,44,48,52,57,62,67,72,77,82,87,92,96,100,105,110,115,120,125,130,135,140,144,148,153,158,163,168,173,178,183,188,192,... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "jitpch.h"
#include "ssaconfig.h"
#include "ssarenamestate.h"
#include "ssabuilder.h"
namespace
{
/**
* M... |
SECTION code_fp_math48
PUBLIC _islessgreater_callee
EXTERN cm48_sdcciy_islessgreater_callee
defc _islessgreater_callee = cm48_sdcciy_islessgreater_callee
|
/*
* Copyright 2018-2021 Mahdi Khanalizadeh
*
* 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 o... |
BITS 32
extern main
global start
start:
call main
jmp 0
|
; A096023: Numbers congruent to {63, 123, 183, 243, 303, 363} mod 420.
; 63,123,183,243,303,363,483,543,603,663,723,783,903,963,1023,1083,1143,1203,1323,1383,1443,1503,1563,1623,1743,1803,1863,1923,1983,2043,2163,2223,2283,2343,2403,2463,2583,2643,2703,2763,2823,2883,3003,3063,3123
mul $0,7
div $0,6
mov $1,$0
mul $1,6... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xbfae, %rbx
nop
nop
nop
nop
nop
xor $38182, %r8
mov (%rbx), %r11d
nop
nop
cmp %r13, %r13
lea addresses_WC_ht+0xd5f4, %r9
nop
nop
nop
add %rdi, %rdi
mov (%r9), %esi
nop
nop
... |
; A143580: Duplicate of A010059.
; 1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0
lpb $0,1
add $1,$0
div $0,2
lpe
gcd $1,2
sub $1,1
|
; A022100: Fibonacci sequence beginning 1, 10.
; 1,10,11,21,32,53,85,138,223,361,584,945,1529,2474,4003,6477,10480,16957,27437,44394,71831,116225,188056,304281,492337,796618,1288955,2085573,3374528,5460101,8834629,14294730,23129359,37424089,60553448,97977537,158530985
mov $1,1
mov $2,9
lpb $0
sub $0,1
mov $3,$2
... |
//****************************************************************************
// (c) 2008, 2009 by the openOR Team
//****************************************************************************
// The contents of this file are available under the GPL v2.0 license
// or under the openOR comercial license. see
// /Doc... |
*=$0801 ; basic start
!WORD +
!WORD 10
!BYTE $9E
!TEXT "2061"
!BYTE 0
+ !WORD 0
jmp main
waitborder
; lda $d011
; bmi ok
;wait
; lda $d012
; cmp #30
; bcs wait
;ok
wait
lda $d011
... |
; Pisq (c)2000 Stepan Roh
IDEAL
P386
MODEL small, C
STACK 200h
DATASEG
; informacni text
info db 'Pisq (c)2000 SR',13,10
db '(_|brain1.exe) (_|brain2.exe)',13,10
db '$'
; vypisy do stavove (prvni) radky
; format: cislo_tahu body_pro_O O kdo_je_na_tahu_-_sipka X body_pro_X text
str_human db '000... |
# 'div' test case code
# modifying this code with cause tests to fail!
mov r0, #12
mov r1, #4
div r2, r0, r1
mov r0, #56
mov r1, #8
div r3, r0, r1
mov q0, #12.0
mov q1, #4.0
div q2, q0, q1
mov q0, #56.0
mov q1, #8.0
div q3, q0, q1 |
/*
6.5 LAB: Exception handling to detect input string vs. int The
given program reads a list of single-word first names and ages
(ending with -1), and outputs that list with the age incremented.
The program fails and throws an exception if the second input on a
line is a string rather than an int. At FIXME in the c... |
#include "EventFilter/CastorRawToDigi/interface/CastorCtdcUnpacker.h"
#include "EventFilter/CastorRawToDigi/interface/CastorCTDCHeader.h"
#include "EventFilter/CastorRawToDigi/interface/CastorCORData.h"
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"
#include "DataFormats/HcalDigi/interface/HcalQIESample.h"... |
#INCLUDE "FUNCTIONS.inc"
; Initialize the stack pointer and the base pointer
MOV XL, 0xFF
MOV XH, 0xFF
MOV SP, X
MOV XL, 0
MOV XH, 0
MOV BP, X
CALL :_MAIN
HLT
:_MAIN
ENTER 4
; ========================
; Begin 1st function call
; ========================
; Push the function arguments onto the stack
PUSH 00010010b ;... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>write(fd, buf, n) -> str
Invokes the syscall write.
See 'man 2 write' for more information.
Arguments:
fd(int): fd
buf(void*): buf
n(size_t): n
Returns:
ssize_t
</%docstring>
<%page args... |
Route42EcruteakGate_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
Route42EcruteakGate_MapEvents:
db 0, 0 ; filler
db 0 ; warp events
db 0 ; coord events
db 0 ; bg events
db 0 ; object events
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Copyright (c) 2013 Manolis Agkopian ;
;See the file LICENCE for copying permission. ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PROCESSOR 16F84A
INCLUDE <P16F84A.INC>
__config _XT_OSC & _WDT_OFF & _PWRTE_OFF & _CP_OFF
CNT_0 EQU 0x20 ;DEFI... |
#include <benchmark/benchmark.h>
#include "csb/benches/capnp.h"
#include "csb/benches/cereal.h"
#include "csb/benches/cista_offset.h"
#include "csb/benches/cista_offset_slim.h"
#include "csb/benches/cista_raw.h"
#include "csb/benches/fbs.h"
#include "csb/benches/zpp_bits.h"
using namespace csb;
template <typename Be... |
; *****************************************************************************
; *****************************************************************************
;
; Name: repeat.asm
; Purpose: Repeat/Until
; Created: 10th March 2020
; Reviewed: 16th March 2020
; Author: Paul Robson (paul@robsons.org.uk)
;
; ****... |
; A061241: Prime numbers == 7 (mod 9).
; Submitted by Jon Maiga
; 7,43,61,79,97,151,223,241,277,313,331,349,367,421,439,457,547,601,619,673,691,709,727,853,907,997,1033,1051,1069,1087,1123,1213,1231,1249,1303,1321,1429,1447,1483,1609,1627,1663,1699,1753,1789,1861,1879,1933,1951,1987,2113,2131,2203,2221,2239,2293,2311,2... |
/*
* Copyright 2013-present Facebook, 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 a... |
INCLUDE "macros/asm_macros.asm"
INCLUDE "macros/data_macros.asm"
INCLUDE "macros/text_macros.asm"
INCLUDE "macros/audio_macros.asm"
INCLUDE "macros/event_macros.asm"
|
.text 0x00003000
li $s0, 0x00007f00
li $t0, 0x00000010
li $t1, 0x00000009
sw $t0, 4($s0)
sw $t1, 0($s0)
li $s0, 0x00007f10
li $t0, 0x00000111
li $t1, 0x0000000b
sw $t0, 4($s0)
sw $t1, 0($s0)
ori $v0, $0, 0xff11
mtc0 $v0, $12
go:
beq $0, $0, go
nop
.ktext 0x00004180
mfc0 $k0, $13
mfc0 $k1, $14
srl $k0, $k0, 2
andi $k0... |
; A180724: a(n) = n^2 + largest prime < n^2.
; 7,16,29,48,67,96,125,160,197,234,283,336,389,448,507,572,641,720,797,880,963,1052,1147,1244,1349,1456,1557,1680,1787,1914,2045,2176,2309,2448,2587,2736,2883,3032,3197,3350,3523,3696,3869,4042,4229,4416,4601
mov $5,$0
cal $0,56927 ; Difference between n^2 and largest prime... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2012 ARM Limited
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... |
copyright zengfr site:http://github.com/zengfr/romhack
006D9C move.b ($1,A4), D0
006DA0 bne $6dcc
006EC0 move.b ($1,A4), D1 [base+47D, base+48D, base+49D]
006EC4 bra $6edc
008314 move.b ($1,A4), D1 [base+47D, base+48D]
008318 bra $8344
09D09C move.b ($47b,A5), D0
09D0A0 add.b ($48b,A5), D... |
;
; Z88dk Generic Floating Point Math Library
;
;
; $Id: div1.asm,v 1.4 2016-06-21 21:16:49 dom Exp $
SECTION code_fp
PUBLIC div1
EXTERN fdiv
.div1 POP BC
POP IX
POP DE
jp fdiv
|
SECTION code_clib
SECTION code_stdio
PUBLIC __stdio_scanf_ld
EXTERN __stdio_scanf_sm_decimal, __stdio_scanf_number_head
EXTERN l_inc_sp, asm_strtol, __stdio_scanf_number_tail_long
__stdio_scanf_ld:
; %ld converter called from vfscanf()
;
; enter : ix = FILE *
; de = void *buffer
; bc... |
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <dos.h>
#include <io.h>
#include <string.h>
#include <errno.h>
#ifdef WIN32
#include <direct.h>
#endif
#include "inistuff.h"
#include "resource.h"
#include "Resources.h"
extern HINSTANCE hInst;
FILE *glLogFile;
unsigned int glL... |
#include<iostream>
using namespace std;
void bonapetite(int *arr, int n,int k,int cost)
{
int sum=0;
for (int i = 0; i < n; i++)
{
if (i == k)
{
continue;
}
else
{
sum+=arr[i];
}
}
int z=sum/2;
if (z == cost... |
.target "appleii"
printc = $FDF0
.org $801
; Prints all characters
LDA #0
main_loop:
; X = A; X++; A = X
TAX
INX
TXA
; Wait for a lil bit
LDY #0
inner_loop:
INY
BNE inner_loop
JSR printc
JMP main_loop
|
MODULE set_tiles
PUBLIC set_tiles
PUBLIC _set_tiles
GLOBAL set_xy_tt
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; void __LIB__ set_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, unsigned char *vram_addr, unsigned char *tiles) __smallc NONBANKED;
se... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2019-2019 The Ctdcoin developers
//
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
bnToHex proc uses edi esi ebx bn:DWORD,ptrStr:DWORD
mov esi,bn
mov edi,ptrStr
.if BN_IS_ZERO(esi)
mov dword ptr [edi],'00'
mov eax,2
ret
.endif
.if [esi].BN.bSigned
mov byte ptr [edi],'-'
inc edi
.endif
mov ea... |
; this file is part of Release, written by Malban in 2017
;
HIGH_SCORE_ZERO_POS = $7090
X_STEP_LETTERS = 20
;
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
display_highscore
clr demo_mode
jsr init_objects
jsr ... |
//--------------------------------------------------------------------
// Copyright 2020. Bioinformatic and Genomics Lab.
// Hanyang University, Seoul, Korea
// Coded by Jang-il Sohn (sohnjangil@gmail.com)
//--------------------------------------------------------------------
#ifndef ETCHING_CALLER_HPP
#define ETCHING... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xafc9, %rsi
lea addresses_normal_ht+0x1984d, %rdi
nop
nop
and $55937, %r15
mov $30, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x14989, %r14
nop
n... |
; A156087: One ninth of the sum of the squares of the first n Fibonacci numbers with index divisible by 4.
; 0,1,50,2354,110595,5195620,244083556,11466731525,538692298134,25307071280790,1188893657899015,55852694849972936,2623887764290829000,123266872226818990089,5790919106896201705210,272049931151894661154810
lpb $0
... |
// Copyright (c) 2012-2013 The Crowncoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "leveldbwrapper.h"
#include "util.h"
#include <leveldb/env.h>
#include <leveldb/cache.h>
#include <leveldb/filter_... |
;
; jcclrmmx.asm - colorspace conversion (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assem... |
#include "kun.h"
#include "engine.h"
#include <chrono>
int main ()
{
Engine* const engine = new Engine ();
std::chrono::steady_clock::time_point time_begin = std::chrono::steady_clock::now ();
double current_time = 0.0f;
double accumulator = 0.0f;
bool want_exit = false;
while (!want_exit)
{... |
; A023969: a(n) = round(sqrt(n)) - floor(sqrt(n)).
; 0,0,0,1,0,0,0,1,1,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1... |
bits 64 ; set architecture
global strpbrk:function ; export strpbrk / RDI RSI parameters
strpbrk:
xor RAX, RAX ; set result to 0 in case of non-match
cmp RDI, 0 ; check if pointer null
je .end
.loop: ; loop label
... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... |
TITLE("Array processing functions")
REF("Calc$CaddAA")
REF("Calc$CarrayIndex")
REF("Calc$CcountA")
REF("Calc$CleftAN")
REF("Calc$CmidAN")
REF("Calc$CmidANN")
REF("Calc$CrightAN")
REF("Calc$CsumA")
REF("Calc$CsumASC")
TOPIC_TEXT(
"[2 $$0,0#00000000000000000000000000000000:Default][b100;a50;K* $$1,0#230460254154941014279... |
#include <node.h>
#include <nan.h>
namespace function_arg
{
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
using v8::Context;
using v8::Number;
void Add(const FunctionCallbackInfo<Value> &args)
{
... |
bits 16
org 0x7c00
boot:
mov ax, 0x2401
int 0x15
mov ax, 0x3
int 0x10
cli
lgdt [gdt_pointer]
mov eax, cr0
or eax,0x1
mov cr0, eax
jmp CODE_SEG:boot2
gdt_start:
dq 0x0
gdt_code:
dw 0xFFFF
dw 0x0
db 0x0
db 10011010b
db 11001111b
db 0x0
gdt_data:
dw 0xFFFF
dw 0x0
db 0x0
db 10010010b
db 11001111b
db... |
; void *z80_indr(void *dst, uint16_t port)
SECTION code_z80
PUBLIC z80_indr
EXTERN asm_z80_indr
z80_indr:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_z80_indr
|
INCLUDE "clib_cfg.asm"
SECTION code_stdio
PUBLIC __stdio_verify_valid
EXTERN __p_forward_list_locate_item, error_ebadf_mc
EXTERN __stdio_open_file_list
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $04
EXTERN __stdio_lock_file_list, __stdio_unlock_file_list
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
__... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
;*****************************************************... |
; A158961: Numerator of Hermite(n, 2/5).
; Submitted by Jamie Morken(s4)
; 1,4,-34,-536,2956,119024,-262904,-36758816,-55018864,14483450944,82692292576,-6910956301696,-73124586123584,3854075436523264,62947282726422656,-2446063674660594176,-56994716743459368704,1728872072754637865984,55360997522959014862336,-13345408753... |
Music_BattleTowerTheme:
musicheader 4, 1, Music_BattleTowerTheme_Ch1
musicheader 1, 2, Music_BattleTowerTheme_Ch2
musicheader 1, 3, Music_BattleTowerTheme_Ch3
musicheader 1, 4, Music_BattleTowerTheme_Ch4
Music_BattleTowerTheme_Ch1:
tempo 141
volume $77
tone $0001
vibrato $12, $34
stereopanning $f
notetype $6... |
// anyop.cpp,v 1.6 2001/05/19 22:26:32 schmidt Exp
// ============================================================================
//
// = LIBRARY
// TAO/tests/Param_Test
//
// = FILENAME
// anyop.cpp
//
// = DESCRIPTION
//
// = AUTHORS
// Carlos O'Ryan
//
// ======================================... |
//===----------------------- algorithm.cpp --------------------------------===//
//
// 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
//
//===---------------------------... |
;------------------------------------------------------------------------------
;
; 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... |
; A190995: Fibonacci sequence beginning 9, 7.
; 9,7,16,23,39,62,101,163,264,427,691,1118,1809,2927,4736,7663,12399,20062,32461,52523,84984,137507,222491,359998,582489,942487,1524976,2467463,3992439,6459902,10452341,16912243,27364584,44276827,71641411,115918238,187559649,303477887,491037536,794515423,1285552959,20800683... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="algorithm"/>
<%docstring>
Invokes the syscall sched_get_priority_max. See 'man 2 sched_get_priority_max' for more information.
Arguments:
algorithm(int): algorithm
</%docstring>
${syscall('SYS_sched_get_priority_max', algorithm)}
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1771a, %rsi
lea addresses_normal_ht+0x1d85a, %rdi
nop
nop
nop
nop
dec %r12
mov $14, %rcx
rep movsw
nop
nop
nop
nop
nop
xor $14703, %r14
pop %rsi
pop %rdi
pop %rcx
pop %r14
pop %r12
ret
.global s_faul... |
[ORG 0x100]
[BITS 16]
start: xor ebx,ebx
mov bx,ds ; BX=segment
shl ebx,4 ; BX="linear" address of segment base
mov eax,ebx
mov [gdt2 + 2],ax ; set base address of 32-bit segments
mov [gdt3 + 2],ax
mov [gdt4 + 2],ax ; set base address... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1a260, %r8
nop
sub $14020, %rbx
mov $0x6162636465666768, %rsi
movq %rsi, (%r8)
nop
nop
inc %rdx
lea addresses_D_ht+0x16c60, %rbx
clflush (%rbx)
and $62625, %rsi
movb... |
; A144876: Maximal number of distinct polyominoes into which an n X n square can be divided.
; Submitted by Jon Maiga
; 1,2,4,5,8,10,13,16,19,22,26,30,34,38
mov $2,$0
mul $0,2
mov $1,$0
lpb $1
pow $0,2
mul $1,2
mov $3,$1
mov $1,1
mul $3,2
lpe
add $0,$3
mul $0,2
div $0,63
add $0,$2
add $0,1
|
START:
NOP
LI R1 0XBF
SLL R1 R1 0X00
LI R3 0XBF
SLL R3 R3 0X00
ADDIU R3 0X02
MFPC R7
ADDIU R7 0X02
B TESTR
NOP
LW R3 R2 0x00
MFPC R7
ADDIU R7 0X02
B TESTW
NOP
SW R1 R2 0x00
B START
NOP
;测试8251是否能写
TESTW:
LI R6 0x00BF
SLL R6 R6 0x0000
ADDIU R6 0x0001
LW R6 R0 0x0000
LI R6 0x0001
AND R0 ... |
; A225007: Number of n X 5 0..1 arrays with rows unimodal and columns nondecreasing.
; 16,86,296,791,1792,3612,6672,11517,18832,29458,44408,64883,92288,128248,174624,233529,307344,398734,510664,646415,809600,1004180,1234480,1505205,1821456,2188746,2613016,3100651,3658496,4293872,5014592,5828977
mov $2,$0
mov $3,$0
add... |
MOV E, 00000001b
ADD D, E |
importbin k9.bin 0 5400 k0
importbin k8.bin 0 5400 k1
importbin k7.bin 0 5400 k2
importbin k6.bin 0 5400 k3
importbin k5.bin 0 5400 k4
importbin k4.bin 0 5400 k5
importbin k3.bin 0 5400 k6
importbin k2.bin 0 5400 k7
importbin k1.bin 0 5400 k8
importbin k0.bin 0 5400 k9
init:
cls
spr 0x5A3C ; 120x90
... |
Name: zel_chra.asm
Type: file
Size: 53641
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: A8F804975C1F2FBEFDA28299E02E38345F0015AF
Description: null
|
SECTION code_clib
PUBLIC generic_console_cls
PUBLIC generic_console_printc
PUBLIC generic_console_scrollup
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
PUBLIC generic_console_set_a... |
; A122512: Expansion of 1/(1 - x^2 - 2 x^3 + x^4).
; Submitted by Christian Krause
; 1,0,1,2,0,4,3,2,11,4,12,24,9,44,45,38,124,84,155,294,199,520,632,624,1473,1368,2089,3690,3352,6500,8643,9514,18291,20300,28676,47368,50985,84420,117045,139022,234900,288692,395899,619470,738383,1122576,1581424
mov $1,1
lpb $0
sub $0... |
; A245328: Denominators in recursive bijection from positive integers to positive rationals (the bijection is f(1) = 1, f(2n) = 1/(f(n)+1), f(2n+1) = f(n)+1).
; Submitted by Jamie Morken(s4)
; 1,2,1,3,2,3,1,5,3,5,2,4,3,4,1,8,5,8,3,7,5,7,2,7,4,7,3,5,4,5,1,13,8,13,5,11,8,11,3,12,7,12,5,9,7,9,2,11,7,11,4,10,7,10,3,9,5,9,4... |
; THIS PROGRAM IS TO CALCULATE WEIGHTED SUM
; WHEN A VALUE IS 2 AND WEIGHT IS 6 THEN
; WEIGHTED SUM IS 2*6 = 12
; TOTAL SUM MUST BE LESS THAN 10 TO SEE OUTPUT CORRECTLY
.MODEL SMALL
.STACK 100H
.DATA
VALUE DB ?
DATA1 DB ?
MSG DB 0AH, 0DH, "WEIGHTED SUM: $",
SUM DW ?
.CODE
MAIN PROC
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x152ed, %r12
nop
add $45369, %rax
mov $0x6162636465666768, %r13
movq %r13, (%r12)
nop
add %r14, %r14
lea addresses_normal_ht+0x1d71d, %r12
nop
nop
nop
inc %r14
movb (%r12)... |
; A177756: Number of ways to place 3 nonattacking bishops on an n X n toroidal board.
; 0,0,6,128,600,2688,7350,19968,42336,89600,163350,297600,490776,809088,1242150,1906688,2774400,4036608,5633766,7862400,10613400,14326400,18818646,24718848,31740000,40754688,51333750,64658048,80110296,99254400,121230150,148070400,1786... |
SECTION code_clib
PUBLIC pixeladdress
EXTERN base_graphics
;
; $Id: pixladdr.asm,v 1.7 2016/04/23 21:05:46 dom Exp $
;
; ******************************************************************
;
; Get absolute pixel address in map of virtual (x,y) coordinate.
;
; Design & programming by Gunther Strube, Copyrigh... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <type_traits>
#include <boost/preprocessor/punctuation/remove_parens.hpp>
#define GT_META_DELEGATE_TO_LA... |
; A305889: a(n) = 3*a(n-2) + a(n-4), a(0)=a(1)=0, a(2)=1, a(3)=2.
; Submitted by Jamie Morken(s4)
; 0,0,1,2,3,6,10,20,33,66,109,218,360,720,1189,2378,3927,7854,12970,25940,42837,85674,141481,282962,467280,934560,1543321,3086642,5097243,10194486,16835050,33670100,55602393,111204786,183642229,367284458,606529080,12130581... |
; A203476: v(n+1)/v(n), where v=A203475.
; Submitted by Christian Krause
; 5,130,8500,1051076,211255200,62840245000,25959932960000,14224928867370000,9986120745657472000,8740787543400204500000,9333385482079885824000000,11942338721669302523305000000,18038821394494464638896640000000
add $0,1
mov $3,$0
add $0,1
pow $0,2
m... |
; A136691: Final nonzero digit of n! in base 4.
; Submitted by Jon Maiga
; 1,1,2,2,2,2,1,3,2,2,3,1,3,3,2,2,2,2,3,1,1,1,2,2,3,3,2,2,2,2,1,3,2,2,3,1,1,1,2,2,1,1,2,2,2,2,3,1,3,3,2,2,2,2,3,1,2,2,3,1,3,3,2,2,2,2,3,1,1,1,2,2,1,1,2,2,2,2,3,1,1,1,2,2,2,2,1,3,2,2,1,3,1,1,2,2,3,3,2,2
trn $0,1
seq $0,55204 ; Squarefree part of n... |
; A168992: Number of reduced words of length n in Coxeter group on 27 generators S_i with relations (S_i)^2 = (S_i S_j)^23 = I.
; 1,27,702,18252,474552,12338352,320797152,8340725952,216858874752,5638330743552,146596599332352,3811511582641152,99099301148669952,2576581829865418752,66991127576500887552,1741769316989023076... |
/*
* false_driven_enumerator.hpp
*
* Copyright (c) 2018, Ueda Laboratory LMNtal Group
* <lmntal@ueda.info.waseda.ac.jp> 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. ... |
# ------------------------------------------------------------------------------
# Gnu Assembler "Hello World!"
# Writes "Hello, World" to the console using only system calls. Runs on 64-bit
# Linux only. To assemble and run:
#
# gcc -c hello.s && ld hello.o && ./a.out
#
# or
#
# gcc -nostdlib hello.s && ./a.ou... |
; Copyright © 2021, VideoLAN and dav1d authors
; Copyright © 2021, Two Orioles, LLC
; 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 copy... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.