text stringlengths 1 1.05M |
|---|
// Copyright 2014 Open Source Robotics Foundation, 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 appli... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="fd, file, buf, flag"/>
<%docstring>
Invokes the syscall fstatat64. See 'man 2 fstatat64' for more information.
Arguments:
fd(int): fd
file(char): file
buf(stat64): buf
flag(int): flag
</%docstring>
${syscall('SYS_fstatat64'... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xe00a, %rsi
lea addresses_D_ht+0x1b98a, %rdi
nop
add $35033, %rbx
mov $104, %rcx
rep movsq
nop
nop
nop
nop
nop
xor %r15, %r15
lea addresses_WC_ht+0x1824a, %r8
nop
sub $26488, %rax
movb ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1deb1, %rdi
and $53563, %rsi
vmovups (%rdi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %r9
nop
nop
inc %r8
lea addresses_UC_ht+0x28f5, %rsi
lea addresses_A_ht... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x11148, %rdi
nop
nop
nop
nop
nop
cmp $25562, %rax
and $0xffffffffffffffc0, %rdi
vmovaps (%rdi), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r12
and %rbx, %rbx
lea ... |
; lzo1c_s2.asm -- lzo1c_decompress_asm_safe
;
; This file is part of the LZO real-time data compression library.
;
; Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
; Copyright (C) 2008 M... |
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#include <QTime>
#include <QTimer>
#include <QThread>
#include <QTextEdit>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <boost/tokenizer.hpp>
#include <openssl/crypto.h>
//... |
#note: r40 (the exception handler) and r46 (the start of usermode code) must
#be specified in hex (0xwhatever)
#I just don't see any reason not to, and it makes programming the script
#much nicer to deal with...
#load exception handler
lc r40, 0x80000050
leh r40
#enable exceptions
cle
#load TLB ent... |
SECTION code_fp_math16
PUBLIC ___heq_callee
PUBLIC _f16_isunordered_callee
EXTERN cm16_sdcc___eq_callee
defc ___heq_callee = cm16_sdcc___eq_callee
defc _f16_isunordered_callee = cm16_sdcc___eq_callee
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x12341, %rsi
lea addresses_UC_ht+0x7501, %rdi
nop
nop
nop
nop
cmp %r8, %r8
mov $75, %rcx
rep movsl
nop
nop
nop
nop
xor $29915, %rbp
lea addresses_D_ht+0x126e1, %rsi
lea address... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="mqdes, msg_ptr, msg_len, msg_prio, abs_timeout"/>
<%docstring>
Invokes the syscall mq_timedsend. See 'man 2 mq_timedsend' for more information.
Arguments:
mqdes(mqd_t): mqdes
msg_ptr(char): msg_ptr
msg_len(size_t): msg_len
msg_... |
;
; Amstrad CPC specific routines
; by Stefano Bodrato, Fall 2013
; source: www.cpctech.org.uk
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: set_psg_callee.asm,v 1.3 2015/01/19 01:33:04 pauloscustodio Exp $
;
PUBLIC set_psg_callee
PUBLIC ASMDISP_SET_PSG_CALLEE
set_psg_callee:
pop hl
... |
// Copyright 2015, ARM Limited
// 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 a... |
.nds
.relativeinclude on
.erroronwarning on
; This patch adds a text popup if the player tries to enter the Forest of Doom portrait before it's unlocked.
; This is necessary for portrait randomizer when the Forest of Doom portrait isn't in the normal location, since the normal event only works in that sector.
@Overla... |
; Disassembly of "metroid2.gb"
ld_long: MACRO
IF STRLWR("\1") == "a"
; ld a, [$ff40]
db $FA
dw \2
ELSE
IF STRLWR("\2") == "a"
; ld [$ff40], a
db $EA
dw \1
ENDC
ENDC
ENDM
INCLUDE "hardware.inc"
INCLUDE "bank_000.asm"
INCLUDE "bank_... |
#include <iostream>
/*7) Se dă un vector cu n numere naturale. Să se determine câte dintre perechile de elemente
din vector sunt formate din valori cu aceeași sumă a cifrelor.*/
using namespace std;
int main()
{
int i, n, v[100], s[100], suma=0, counter=0, cs;
cout<<"Scrie nr de elem al vectorului: ";
cin>... |
; Program 10.6
; SYSCALL on Linux (NASM 64-bit)
; Copyright (c) 2017 Hall & Slonka
section .data
output: DB "Computer Architecture",0Ah
len: DQ ($ - output)
file_name: DB "output.txt",0
file_handle: DD 0
section .text
global _main
_main:
mov rax, 1 ; system write (1)
mov rdi, 1 ; fi... |
//*******************************************************************
/*!
\file RTOS_MCU.cpp
\author Thomas Breuer (Bonn-Rhein-Sieg University of Applied Sciences)
\date 23.03.2016
This file is released under the MIT License.
*/
//*******************************************************************
#include "RTOS_... |
@
@ mom2.asm
@
@ initiate port D as outport
start: LDR R0, =0x55555555
LDR R1, =0x40020C00
STR R0, [R1]
@ adress to port D out data register to R1
LDR R1, =0x40020C14
@ adress to port E in data register to R2
LDR R2, =0x40021010
main: LDRB R0, [R2]
STRB R0, [R1]
B main
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2007, 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... |
; A227161: Number of n X 2 0,1 arrays indicating 2 X 2 subblocks of some larger (n+1) X 3 binary array having a sum of one or less, with rows and columns of the latter in lexicographically nondecreasing order.
; 1,3,8,18,36,66,113,183,283,421,606,848,1158,1548,2031,2621,3333,4183,5188,6366,7736,9318,11133,13203,15551,1... |
// Copyright (c) 2015-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <checkqueue.h>
#include <key.h>
#include <prevector.h>
#include <pubkey.h>
#include <random... |
_rm: 檔案格式 elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
; int b_array_at(b_array_t *a, size_t idx)
SECTION code_adt_b_array
PUBLIC b_array_at
EXTERN asm_b_array_at
b_array_at:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_b_array_at
|
SFX_Cry0E_2_Ch4:
dutycycle 165
squarenote 4, 14, 1, 1792
squarenote 4, 15, 2, 1920
squarenote 2, 9, 2, 1856
squarenote 8, 14, 1, 1536
endchannel
SFX_Cry0E_2_Ch5:
dutycycle 10
squarenote 4, 11, 1, 1761
squarenote 3, 12, 2, 1761
squarenote 3, 6, 2, 1665
squarenote 8, 11, 1, 1505
endchannel
SFX_Cry0E_2_Ch7... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; LD_F0
;TEST_BEGIN_RECORDING
fldz
;TEST_END_RECORDING
|
title "Zero Page"
;++
;
; 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:
;
... |
; ========================================================================
;
; void sms_copy_mem_to_vram(void *src, unsigned int n)
;
; copy from memory to vram; VRAM addresses are assumed to be stable.
;
; ========================================================================
INCLUDE "config_private.inc"
SECTION ... |
; A045929: Generalized Connell sequence C_{5,3}.
; 1,2,7,12,17,18,23,28,33,38,43,48,49,54,59,64,69,74,79,84,89,94,95,100,105,110,115,120,125,130,135,140,145,150,155,156,161,166,171,176,181,186,191,196,201,206,211,216,221,226,231,232,237,242,247,252,257,262,267,272,277
mov $1,$0
seq $1,122798 ; A P_5-stuttered arithmet... |
;--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
; Life Icon
;------------------------------------------------------------------------------------... |
#include "CheckEventArgs.h"
namespace StiGame
{
CheckEventArgs::CheckEventArgs(bool m_checked, std::string m_caption) : EventArgs()
{
//ctor
checked = m_checked;
caption = m_caption;
}
bool CheckEventArgs::isChecked(void)
{
return checked;
}
std::string CheckEventArgs::getCaption(void)
{
return ca... |
Name: z00_end2.asm
Type: file
Size: 147201
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: 8228B978BFE6FEA66515DAC3A63C5C0BCC48176B
Description: null
|
// push argument 1
@ARG
D=M
@1
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 1
@R4
D=A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop that 0
@THAT
D=M
@0
A=D+A
D=A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop that 1
@... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
//
// This program only... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global aes_hw_encrypt
ALIGN 16
aes_hw_encrypt:
movups xmm2,XMMWORD[rcx]
mov eax,DWORD[240+r8]
movups xmm0,XMMWORD[r8]
movups xmm1,XMMWORD[16+r8]
lea r8,[32+r8]
xorps xmm2,xmm0
$L$oop_enc1_1:
DB 102,1... |
//define LOG_MAPPER_31()
scope Mapper31: {
Init:
addi sp, 16
sw ra, -16 (sp)
// 0x8000-0xa000: 2x4K
jal TLB.AllocateVaddr
lli a0, 0x4000 // align 16k to lave a 8k guard page unmapped
ls_gp(sw a0, mapper_31_vaddrs + 0*4)
ls_gp(sb a1, mapper_31_tlb_indexes + 0)
// 0xa000-0xc000: 2x4K
jal TLB.AllocateVadd... |
;
; z88dk library: Generic VDP support code
;
; FILVRM
;
;
; $Id: gen_ldirvm.asm,v 1.3 2016/06/16 19:30:25 dom Exp $
;
SECTION code_clib
PUBLIC LDIRVM
PUBLIC _LDIRVM
EXTERN SETWRT
INCLUDE "msx/vdp.inc"
LDIRVM:
_LDIRVM:
ex de,hl
call SETWRT
loop: ld a,(de)
out (VDP_DATA),a
inc de
dec bc
ld a,b
... |
; Original address was $B1FF
; World 6 first fortress second part
.word W6F1L ; Alternate level layout
.word W6F1O ; Alternate object layout
.byte LEVEL1_SIZE_04 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_02 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.b... |
//===- FunctionSupport.cpp - Utility types for function-like ops ----------===//
//
// Copyright 2019 The MLIR 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.... |
/* Copyright 2019 Google LLC
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
; A010878: a(n) = n mod 9.
; 0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,0
mod $0,9
|
#include <bits/stdc++.h>
using namespace std;
int a[1010];
int main(){
int n;
cin >> n;
for(int i=1; i<=n; ++i){
cin >> a[i];
}
sort(a + 1, a + n + 1);
for(int i=1; i<=n; ++i){
cout << a[i] << " " ;
}
cout << "\n"
return 0;
}
|
; A140298: a(0)=1; a(3n+1) = a(3n)+1, a(3n+2) = a(3n+1) + a(3n) (=3*A000244), a(3n+3) = a(3n+2) + a(3n) (=A003462(n+2)).
; 1,2,3,4,5,9,13,14,27,40,41,81,121,122,243,364,365,729,1093,1094,2187,3280,3281,6561,9841,9842,19683,29524,29525,59049,88573,88574,177147,265720,265721,531441,797161,797162,1594323,2391484,2391485,4... |
; A139581: a(n) = n*(2*n + 19).
; 0,21,46,75,108,145,186,231,280,333,390,451,516,585,658,735,816,901,990,1083,1180,1281,1386,1495,1608,1725,1846,1971,2100,2233,2370,2511,2656,2805,2958,3115,3276,3441,3610,3783,3960,4141
mov $1,2
mul $1,$0
add $1,19
mul $1,$0
|
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 119
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %70 %100
OpExecutionMode %4 Or... |
; Check if there's an item at the specified location
; In: DE: D = Y, E = X
is_item_at_location:
ld bc,SHEET.ITEMS
jp is_object_at_location
; Remove an item at specified location
; In: DE: D = Y, E = X
remove_item_at_location:
call is_item_at_location
ret z
ld bc,SHEET.ITEMS
... |
; A113968: Series expansion of Farey rational polynomial based on A112627.
; 0,0,1,1,15,17,239,273,3823,4369,61167,69905,978671,1118481,15658735,17895697,250539759,286331153,4008636143,4581298449,64138178287,73300775185,1026210852591,1172812402961,16419373641455,18764998447377
mov $2,$0
mov $5,$0
lpb $2,1
mov $0,$5
... |
; void dzx1_standard(void *src, void *dst)
SECTION code_clib
SECTION code_compress_zx1
PUBLIC _dzx1_standard
EXTERN asm_dzx1_standard
_dzx1_standard:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_dzx1_standard
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x297f, %r9
nop
nop
nop
cmp $62403, %r12
movb $0x61, (%r9)
nop
nop
nop
nop
cmp %r10, %r10
lea addresses_WT_ht+0x9ff, %r11
nop
nop
nop
inc %r9
mov (%r11), %r12
nop
nop
and %r11, ... |
; A015559: Expansion of x/(1 - 7*x - 3*x^2).
; 0,1,7,52,385,2851,21112,156337,1157695,8572876,63483217,470101147,3481157680,25778407201,190892323447,1413581485732,10467747370465,77514976050451,574008074464552,4250601449403217,31476234369216175
lpb $0,1
mov $2,3
lpb $2,1
sub $2,1
add $5,$4
add $3,$5
l... |
; A253903: The characteristic function of square pyramidal numbers.
; 1,1,0,0,0,1,0,0,0,0,0,0,0,0,1,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,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,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
trn $0,1
add $0,1
mov $2,1
lpb $0
trn $0,$3
m... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
// float4x4 WorldViewProjection; // Offset: 0 Size: 64
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements... |
TITLE My First Program (Bubblesort.asm)
INCLUDE Irvine32.inc
.data
inputstr BYTE "Enter integer to calulate its factorial: ", 0
.code
main PROC
mov eax, 0
mov ebx, 0
mov edx, 0
mov ecx, 0
mov esi, 0
mov edx, OFFSET inputstr
call writestring
call readdec
mov ebx, eax
cmp eax, 0
jne funct
mov eax, ... |
;; xOS32
;; Copyright (C) 2016-2017 by Omar Mohammad.
use32
;
; struct task {
; u16 state; // 00
; u16 parent; // 02
; u32 eip; // 04
; u32 esp; // 08
; u32 eflags; // 0C
; u32 pmem_base; // 10
; u32 mem_size; // 14
; u32 reserved1; // 18
; u32 reserved2; // 1C
; };
;
;
; sizeof(task) = 32;
;
TASK_STATE = 0x... |
; A002136: Matrices with 2 rows.
; Submitted by Christian Krause
; 1,2,6,23,109,618,4096,31133,267219,2557502,27011734,312115953,3916844779,53053052462,771450742596,11986779006647,198204672604489,3475110017769282,64396888392712366,1257612452945760503,25815617698822423341,555708180579477963962,12517189538209383465496,29... |
; A256648: 28-gonal pyramidal numbers: a(n) = n*(n+1)*(26*n-23)/6.
; 0,1,29,110,270,535,931,1484,2220,3165,4345,5786,7514,9555,11935,14680,17816,21369,25365,29830,34790,40271,46299,52900,60100,67925,76401,85554,95410,105995,117335,129456,142384,156145,170765,186270,202686,220039,238355,257660,277980,299341,321769,34529... |
#ifndef _THREAD_POOL_H
#define _THREAD_POOL_H
#include <thread>
#include <memory>
#include <deque>
#include <mutex>
#include <condition_variable>
class ThreadPool
{
public:
using Task = std::function<void()>;
explicit ThreadPool(std::size_t poolSize = std::thread::hardware_concurrency())
:shared_src(std:... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC pow_callee
EXTERN cm48_sccz80_pow_callee
defc pow_callee = cm48_sccz80_pow_callee
|
;GEN-ASM
; ===========================================================================
; ---------------------------------------------------------------------------
; Routine for running modulation envelope programs
;
; input:
; d2 - Input frequency
; d4 - Envelope ID
; a1 - Channel to use
; output:
; d2 - Outp... |
; A061007: a(n) = -(n-1)! mod n.
; 0,1,1,2,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0
lpb $0
sub $0,3
mul $0,9
mov $1,4
lpe
seq $0,10051 ; Characteristic function o... |
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; QgemmU8U8KernelAvx2.asm
;
; Abstract:
;
; This module implements the kernels for the quantized integer matrix/matrix
; multiply operation (QGEMM).
;
;--
.xlist
INCLUDE mlasi.inc
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x54da, %rsi
lea addresses_WT_ht+0x1a9aa, %rdi
nop
nop
nop
nop
xor $20699, %rdx
mov $0, %rcx
rep movsl
xor %r10, %r10
lea addresses_D_ht+0x1ca9a, %rsi
clflush (%rsi)
nop
nop
in... |
; hello_world.asm
; prints hello, world! using syscall
; Hudson Schumaker
section .data
msg: db "hello, world!"
len: equ $ - msg
section .text
global _main
_main:
mov rax, 0x02000004 ; 4 - sys_write
mov rdi, 1 ; 1st arg : destination. 1 = STDOUT
mov rsi, msg ; ... |
; A104792: Triangle T(n,k) = A000330(n-k), n>=1, 0<=k<n, read by rows.
; 1,5,1,14,5,1,30,14,5,1,55,30,14,5,1,91,55,30,14,5,1,140,91,55,30,14,5,1,204,140,91,55,30,14,5,1,285,204,140,91,55,30,14,5,1,385,285,204,140,91,55,30,14,5,1,506,385,285,204,140,91,55,30,14,5,1,650,506,385,285
seq $0,212012 ; Triangle read by rows ... |
//
// PaymentAddress.cpp
// CBitcoin
//
// Created by Wolf McNally on 11/5/18.
//
// Copyright © 2018 Blockchain Commons.
//
// 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
//
// htt... |
; A120798: 3^(n^2)+2^n.
; Submitted by Christian Krause
; 2,5,85,19691,43046737,847288609475,150094635296999185,239299329230617529590211,3433683820292512484657849089537,443426488243037769948249630619149893315,515377520732011331036461129765621272702107523025,5391030899743293631239539488528815119194426882613553321251,507... |
; A034491: 7^n + 1.
; 2,8,50,344,2402,16808,117650,823544,5764802,40353608,282475250,1977326744,13841287202,96889010408,678223072850,4747561509944,33232930569602,232630513987208,1628413597910450,11398895185373144,79792266297612002,558545864083284008,3909821048582988050,27368747340080916344,191581231380566414402,1341068... |
; Ti83 Graylib interrupt
;---------------------------------------------------------------------------
;
; Ported by Stefano Bodrato - Mar 2000
;
; Recoded -because of strange problems- by Henk Poley - July 2001
; Based upon vnGrey, a Venus greyscale library (Ti83).
;
; $Id: gray83.asm,v 1.5 2009/... |
title "Cirrus Logic ASM routines"
;
;ONE_64K_BANK equ 1
TWO_32K_BANKS equ 1
;++
;
; Copyright (c) 1992 Microsoft Corporation
;
; Module Name:
;
; vgahard.asm
;
; Abstract:
;
; This module implements the banding code for the Cirrus Logic 6410,6420
; and 542x VGA's.... |
/*
* Copyright 2019 Xilinx, 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... |
; int getc_unlocked(FILE *stream)
SECTION code_stdio
PUBLIC getc_unlocked
EXTERN fgetc_unlocked
defc getc_unlocked = fgetc_unlocked
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xef29, %rsi
nop
cmp %r12, %r12
mov (%rsi), %r14
nop
nop
xor $65200, %rsi
lea addresses_WC_ht+0x33e9, %rsi
lea addresses_D_ht+0x115ad, %rdi
inc %r12
mov $93, %rcx
rep movsb
nop
nop
nop
nop
and $15304, ... |
/*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/core/source/debugger/debugger_l0.h"
#include "shared/source/command_container/cmdcontainer.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/device/device.h"
#includ... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 02
ld d, 03
lbegin_waitm2:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm2
ld a, 08
ldff(c), a
ld a, 02
ldff(ff), a
ei
ld ... |
Name: Pole-p.asm
Type: file
Size: 34206
Last-Modified: '1992-07-29T15:00:00Z'
SHA-1: 7184D5E6B73A3332DA928715B19559CB69939D31
Description: null
|
; loading kernel from hard drive
; load 'dh' sectors from drive 'dl' into ES:BX
disk_load:
pusha
push dx
mov ah, 0x02 ; ah <- int 0x13 function. 0x02 = 'read'
mov al, dh ; al <- number of sectors to read (0x01 .. 0x80)
mov cl, 0x02 ; cl <- sector (0x01... |
/* DEC Alpha division and remainder support.
Copyright (C) 1994, 1999 Free Software Foundation, Inc.
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 ve... |
bits 64
sha1nexte xmm7,xmm13
sha1msg1 xmm7,xmm13
sha1msg2 xmm7,xmm13
sha256rnds2 xmm7,xmm13
sha256msg1 xmm7,xmm13
sha256msg2 xmm7,xmm13
sha1rnds4 xmm7,xmm13,10
sha1nexte xmm7,[rbx]
sha1... |
//===- MVETailPredication.cpp - MVE Tail Predication ------------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
; A227356: Partial sums of A129361.
; Submitted by Christian Krause
; 1,2,5,10,20,36,65,112,193,324,544,900,1489,2442,4005,6534,10660,17336,28193,45760,74273,120408,195200,316216,512257,829458,1343077,2174130,3519412,5696124,9219105,14919408,24144289
mov $6,$0
mov $8,$0
add $8,1
lpb $8
mov $0,$6
mov $1,0
mov $5,... |
section .data
section .text
global _start
_start:
nop ; put your experiment lines in between the two nops
mov ax, 067feh
mov bx, ax
mov cl, bh
mov ch, bl
nop
section .bss |
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2010 Return Infinity -- see LICENSE.TXT
;
; Misc Functions
; =============================================================================
align ... |
dnl SPARC v9 64-bit mpn_mul_1 -- Multiply a limb vector with a limb and store
dnl the result in a second limb vector.
dnl Copyright 1998, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or mod... |
SECTION code_driver
EXTERN asm_i2c_set_speed
PUBLIC _i2c_set_speed_callee
;------------------------------------------------------------------------------
; Set the PCA9665 device speed mode
;
; set the speed mode relevant for the specific device
; input L = desired speed mode, 0, 1, 2, 3
; input A = device a... |
;================================================================================
; Capacity Logic
;================================================================================
!BOMB_UPGRADES = "$7EF370"
!BOMB_CURRENT = "$7EF343"
;--------------------------------------------------------------------------------
Incr... |
TITLE LLKEYS - Keyboard support and mapping routines
;***
; LLKEYS.ASM - keyboard support and mapping routines
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
;******************************************************************************
INCLUDE switch.inc ;switch file [new]
INCLUDE rmacros.inc ;useseg... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
;
; $Id: w_plotpixel.asm $
;
;
; fake w_plotpixel calling a function written in C
;
SECTION code_graphics
PUBLIC w_plotpixel
EXTERN plot
.w_plotpixel
IF !__CPU_INTEL__
push ix
exx
push bc
push ... |
/*
* Copyright (c) 2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
; A282939: Maximum number of straight lines required to draw the boundary of any polyomino with n squares.
; 0,4,4,6,8,12,12,14,16,20,20,22,24,28,28,30,32,36,36,38,40,44,44,46,48,52,52,54,56,60,60,62,64,68,68,70,72,76,76,78,80,84,84,86,88,92,92,94,96,100,100,102,104,108,108,110,112
mov $2,2
add $2,$0
mod $2,4
trn $2,2... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: spreadsheetCutCopy.asm
AUTHOR: Cheng, 5/91
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descri... |
#include "archs/x86_64/kernel/GDT.h"
static TSS64 tss = {
.reserved = 0,
.rsp = {},
.reserved0 = 0,
.ist = {},
.reserved1 = 0,
.reserved2 = 0,
.reserved3 = 0,
.iopb_offset = 0,
};
static GDT64 gdt = {};
static GDTDescriptor64 gdt_descriptor = {
.size = sizeof(GDT64) - 1,
.offs... |
V_Port_3F9 equ 02010h
V_Port_3FB equ 02011h
V_Port_3FC equ 02012h
V_Divisor_LSB equ 02013h
V_Divisor_MSB equ 02014h
V_Port_3F8 equ 02015h
V_Serial_Init:
mov [V_Port_3F9], byte 00h
mov [V_Port_3FB], byte 03h
mov [V_Port_3FC], byte 00h
ret
V_IN... |
; PhoneContacts indexes (see data/phone/phone_contacts.asm)
const_def
const PHONE_00
const PHONE_MOM
const PHONE_OAK
const PHONE_BILL
const PHONE_ELM
const PHONE_SCHOOLBOY_JACK
const PHONE_POKEFAN_BEVERLY
const PHONE_SAILOR_HUEY
const PHONE_08
const PHONE_09
const PHONE_0A
const PHONE_COOLTRAINERM_GAVEN
c... |
SECTION code_driver
PUBLIC fputc_cons_basic
.fputc_cons_basic
ld de,sp+2
ld a,(de)
jp $0008 ; output a character in A
|
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t ba_stack_capacity(ba_stack_t *s)
;
; Return capacity of the stack.
;
; ===============================================================
SECTION code_adt_ba_stack
P... |
; A192333: Numbers that are "unsafe" when playing the game Dollar Nim, which is a Nim game where users can remove 1, 5, 10, or 25 cents from an initial pile of money. The most common version of the game is played with an initial amount of $1, hence the name.
; 0,2,4,6,8,15,17,19,21,23,30,32,34,36,38,45,47,49,51,53,60,6... |
SECTION .text
GLOBAL square_p224
square_p224:
sub rsp, 0xc8 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x98 ], rbx; saving to stack
mov [ rsp + 0xa0 ], rbp; saving to stack
mov [ rsp + 0xa8 ], r12; saving to stack
mov [ rsp + 0xb0 ], r13; saving to stack
mov [ rsp + 0xb8 ], r14; saving to stack
mov [ rsp + 0x... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>inotify_add_watch(fd, name, mask) -> str
Invokes the syscall inotify_add_watch.
See 'man 2 inotify_add_watch' for more information.
Arguments:
fd(int): fd
name(char*): name
mask(uint32_t): m... |
; A262767: Minimum perimeter of a rectangle with area n and integer sides.
; 4,6,8,8,12,10,16,12,12,14,24,14,28,18,16,16,36,18,40,18,20,26,48,20,20,30,24,22,60,22,64,24,28,38,24,24,76,42,32,26,84,26,88,30,28,50,96,28,28,30,40,34,108,30,32,30,44,62,120,32
add $0,1
mov $2,$0
lpb $0
add $1,1
lpb $1
mov $3,$2
... |
; char __fseq_callee(float left, float right)
SECTION code_fp_math48
PUBLIC cm48_sdcciyp_dseq_callee
EXTERN cm48_sdcciyp_dcallee2, am48_deq
cm48_sdcciyp_dseq_callee:
; (left == right)
;
; enter : sdcc_float right, sdcc_float left, ret
;
; exit : HL = 0 and carry reset if false
; HL = 1 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.