text stringlengths 1 1.05M |
|---|
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Process.h>
#include <Kernel/Sections.h>
#include <Kernel/Tasks/FinalizerTask.h>
namespace Kernel {
static void finalizer_task(void*)
{
Thread::current()->set_priority(THREAD_PRIORITY_LO... |
; A134226: Triangle T(n, k) = 3*n - 4 if k = n-1 otherwise k, read by rows.
; Submitted by Christian Krause
; 1,2,2,1,5,3,1,2,8,4,1,2,3,11,5,1,2,3,4,14,6,1,2,3,4,5,17,7,1,2,3,4,5,6,20,8,1,2,3,4,5,6,7,23,9,1,2,3,4,5,6,7,8,26,10,1,2,3,4,5,6,7,8,9,29,11,1,2,3,4,5,6,7,8,9,10,32,12,1,2,3,4,5,6,7,8,9,10,11,35,13,1,2,3,4,5,6,... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434445466748"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
or byte [rdx + 8 * 0 + 1], 0x61
mov rax, [rdx + 8 * 0]
hlt
|
LDI R27, 0
LDI R20, 140
LDI R26, 110
ADD R26, R20
INC R26
ADIW R27:R26, 60
NOP |
SFX_Cry20_3_Ch1:
dutycycle 240
unknownsfx0x20 13, 241, 17, 5
unknownsfx0x20 13, 225, 21, 5
unknownsfx0x20 13, 225, 17, 5
unknownsfx0x20 8, 209, 17, 5
endchannel
SFX_Cry20_3_Ch2:
dutycycle 21
unknownsfx0x20 12, 225, 12, 5
unknownsfx0x20 12, 209, 16, 5
unknownsfx0x20 14, 193, 12, 5
unknownsfx0x20 8, 193, 10,... |
/* Copyright 2013-present Barefoot Networks, 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 la... |
; A329845: Beatty sequence for (3+sqrt(29))/5.
; Submitted by Jamie Morken(s2)
; 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 $1,57
mul $1,$0
div $1,34
mov $0,... |
; A147656: The arithmetic mean of the n-th and (n+1)-st cubes, rounded down.
; 0,4,17,45,94,170,279,427,620,864,1165,1529,1962,2470,3059,3735,4504,5372,6345,7429,8630,9954,11407,12995,14724,16600,18629,20817,23170,25694,28395,31279,34352,37620,41089,44765,48654,52762,57095,61659,66460,71504,76797,82345,88154,94230,1005... |
.386p
Kernel Segment public para use32
assume cs:Kernel
__kScsiProc proc
pushad
push ds
push es
mov ax,rwData32Seg
mov ds,ax
mov es,ax
mov ebp,esp
add ebp,32
push dword ptr ICW2_SLAVE_INT_NO + 3
push dword ptr 0
push dword ptr [ebp]
push dword ptr [ebp + 4]
push dword ptr [ebp + 8]
test d... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0148F2 move.w (A1)+, D1
0148F4 add.w D5, D1 [base+6004, base+6024, base+602C, base+610C, base+6114, base+611C, base+6184, base+618C, base+6194, base+619C, base+61A4, base+61AC, base+6224, base+622C, base+6... |
; ====================== ZagrOS ======================
; Zagros Open Source Operating System
; Saeid Bostandoust (ssbostan@linuxmail.org)
; Bostandoust.IR
; ====================== ZagrOS ======================
; ==================== tools_time ====================
tools_time:
push ax
push c... |
/** @file dji_circular_buffer.cpp
* @version 3.3
* @date Jun 2017
*
* @brief Circular buffer class for the DJI OSDK
*
* @Copyright (c) 2017 DJI
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... |
; A116738: Number of permutations of length n which avoid the patterns 3214, 4123, 4132.
; 1,2,6,21,74,260,913,3206,11258,39533,138822,487480,1711809,6011098,21108254,74122629,260285106,914003420,3209566097,11270542654,39577041842,138976648157,488023051598,1713715951920,6017794352641
mov $2,1
lpb $0
sub $0,1
add $... |
// UABReplacer.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include "Utils.h"
bool shapingUAB(unsigned int option, char* targetpath, char* outputpath)
{
ifstream ifs(targetpath, ios::in | ios::binary);
if (!ifs) {
system("cls");
printf_s("File: %s\n", targetpath);
prin... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE NIRVANA ENGINE - by Einar Saukas
;
; See "nirvana-.h" for further details
; ----------------------------------------------------------------
; void NIRVANAM_paintC(unsigned char *attrs, unsigned int lin, unsigned int c... |
; CRT0 stub for the Old School Computer Architecture (FLOS)
;
; Stefano Bodrato - Jul. 2011
;
;
; EXTRA OPTIONS:
;
; At C source level:
; #pragma output osca_bank=(0..14) set the memory bank for locations > 32768 before loading program
; #pragma output REGISTER_SP=<value> put the stack in a di... |
; A098534: Mod 3 analog of Stern's diatomic series.
; Submitted by Jamie Morken(s3)
; 0,1,1,2,3,2,2,4,3,4,7,5,6,5,5,4,6,4,4,8,6,8,8,7,6,10,7,8,15,11,14,10,12,10,13,11,12,11,11,10,12,10,10,11,9,8,14,10,12,10,10,8,12,8,8,16,12,16,13,14,12,17,14,16,18,16,16,17,15,14,17,13,12,22,16,20,18,17,14,22,15,16,31,23,30,20,26,22,27... |
#include <iostream>
#include <string>
#include "Constants.h"
#include "DemoBackground.h"
#include "Enemy.h"
#include "Game.h"
#include "GameOverState.h"
#include "InputHandler.h"
#include "PlayState.h"
#include "PauseState.h"
#include "Vector2D.h"
const std::string PlayState::sStateId = "PLAY";
void PlayState::update... |
Route19_h:
db OVERWORLD ; tileset
db ROUTE_19_HEIGHT, ROUTE_19_WIDTH ; dimensions (y, x)
dw Route19_Blocks ; blocks
dw Route19_TextPointers ; texts
dw Route19_Script ; scripts
db NORTH | WEST ; connections
NORTH_MAP_CONNECTION ROUTE_19, FUCHSIA_CITY, -3, 2, FuchsiaCity_Blocks
WEST_MAP_CONNECTION ROUTE_19, ROUTE... |
;; nmi
;; detect joy
readJoy: ; [skip]
LDA #$01
STA JOY1 ; start reading
STA down@input
LSR a
STA JOY1
@loop: ;
LDA JOY1
LSR a
ROL down@input
BCC @loop
;;
saveJoy: ; [skip]
LDA down@input
CMP last@input
... |
;
; Shared variables between the VT100 and VT52 engines
MODULE conio_vars
SECTION data_clib
PUBLIC __sprinter_attr
.__sprinter_attr defb @00001111 ;bright white on black
.inverse_attr defb @01111000 ;grey on white
|
db 0 ; 295 DEX NO
db 104, 91, 63, 68, 91, 63
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 45 ; catch rate
db 184 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/exploud/front.... |
SECTION code_fp_math32
PUBLIC tanh
EXTERN cm32_sccz80_tanh
defc tanh = cm32_sccz80_tanh
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tanh
defc _tanh = tanh
ENDIF
|
; A027812: a(n) = 7*(n+1)*C(n+5,7).
; 21,224,1260,5040,16170,44352,108108,240240,495495,960960,1769768,3118752,5290740,8682240,13837320,21488544,32605881,48454560,70662900,101301200,142972830,198918720,273136500,370515600,496989675
mov $1,$0
add $1,7
bin $1,$0
add $0,3
mul $1,$0
mul $1,7
|
#include "altimeter.hpp"
float Altimeter::getAltitudeF()
{
return (float)altitude_;
}
uint32_t Altimeter::getAltitudeI()
{
return altitude_;
} |
#include "Texture.hpp"
#ifndef STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#endif
#include "stb_image.h" |
SafariZoneEastRestHouse_Object:
db $a ; border block
def_warps
warp 2, 7, 4, SAFARI_ZONE_EAST
warp 3, 7, 4, SAFARI_ZONE_EAST
def_signs
def_objects
object SPRITE_SCIENTIST, 1, 3, WALK, UP_DOWN, 1 ; person
object SPRITE_ROCKER, 4, 2, STAY, NONE, 2 ; person
object SPRITE_SILPH_WORKER, 5, 2, STAY, NONE, 3 ;... |
[bits 16]
;al - char to print
printchar:
mov ah, 0x0e; print char option
int 0x10 ; int to print
ret
print_new_line:
push ax
mov al,13;\r
call printchar
mov al,10;\n
call printchar
pop ax
ret
;cx - str
print_string:
push bx
mov bx,cx
.string_loop:
mov al,b... |
; A175161: a(n) = 8*(2^n + 1).
; 16,24,40,72,136,264,520,1032,2056,4104,8200,16392,32776,65544,131080,262152,524296,1048584,2097160,4194312,8388616,16777224,33554440,67108872,134217736,268435464,536870920,1073741832,2147483656,4294967304,8589934600,17179869192
mov $1,2
pow $1,$0
mul $1,8
add $1,8
|
%define SB Sentry_BlockDescryptor
%macro NASMHACKS 0
;On Entry ebp Points To BlockDescriptor
Sentry_BlockDescryptor:
Sentry_StrainKey DD 0
Sentry_BlockSize DD Sentry_BlockTerminator-SB
Sentry_CryptionArray_ DD Sentry_CryptionArray-SB
Sentry_Cryptions DD 1
Sentry_ImportArray_ DD Sent... |
// Copyright (c) 2012-2017 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 <consensus/merkle.h>
#include <merkleblock.h>
#include <serialize.h>
#include <streams.h>
#include <uint256.h>
#incl... |
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/rope>
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
typedef long long ll;
typedef long double ld;
typedef complex... |
// Copyright 2014 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 "quic/core/crypto/chacha20_poly1305_encrypter.h"
#include "third_party/boringssl/src/include/openssl/evp.h"
namespace quic {
namespace {
cons... |
;*******************************************************************************
;* TMS320C55x C/C++ Codegen PC v4.4.1 *
;* Date/Time created: Sat Oct 06 06:37:20 2018 *
;****************************************************************************... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x414243443e800000", "0x5152535455565758"],
"XMM1": ["0x4142434440800000", "0x5152535455565758"],
"XMM2": ["0x414243443f100000", "0x5152535455565758"],
"XMM3": ["0x4142434441800000", "0x5152535455565758"],
"XMM4": ["0x4142434441c80000", "0x51525354555657... |
_init: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
char *argv[] = { "sh", 0 };
int
main(void)
{
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 push %ebp
... |
; Original address was $BF9A
; Empty/Unused
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKLOW
.byte LEVEL4_BGBANK_INDEX(0) | LEVEL4_INITACT... |
#include "Arduino.h"
#include "utilities.h"
#include "Sensor.h"
#include "TempRHSensor.h"
#include "SoilMoistureSensor.h"
#include "LightSensor.h"
#include "SoilTempSensor.h"
#include "PCF2129_RTC.h"
#include "Radio.h"
#include "pins.h"
// The time between gateway activations / sample time
const uint32_t gateway_rece... |
LXI 2000H ; Memory Pointer
MVI C, 10 ; Counter
MVI B, 00H ; to store count
MOV A, M
CPI 32H
JNZ down
INR B
down: INX H
DCR C
JNZ up
MOV A, B
STA 2100H
HLT |
#include "uml/behavioredClassifier.h"
#include "uml/behavior.h"
#include "uml/dataType.h"
#include "uml/association.h"
#include "uml/umlPtr.h"
#include "uml/stereotype.h"
#include "uml/deployment.h"
using namespace UML;
void BehavioredClassifier::RemoveInterfaceRealizationFunctor::operator()(Element& el) const {
... |
; A125817: a(n) = ((1 + 3*sqrt(2))^n - (1 - 3*sqrt(2))^n)/(2*sqrt(2)).
; 0,3,6,63,228,1527,6930,39819,197448,1071819,5500254,29221431,151947180,800658687,4184419434,21980036547,115095203472,603851028243,3164320515510,16594108511151,86981665785972,456063176261511,2390814670884546,12534703338214779
mov $18,$0
mov $20,$0... |
/*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2014 Intel Corporation.
*
* Adapted from Seeed Studio library:
* https://github.com/Seeed-Studio/RTC_DS1307
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosNewSize DOS wrapper
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev ... |
; $Id: bit_open.asm,v 1.5 2016-06-16 20:23:51 dom Exp $
;
; Galaksija 1 bit sound functions
;
; void bit_open();
;
; Stefano Bodrato - 8/4/2008
;
SECTION code_clib
PUBLIC bit_open
PUBLIC _bit_open
EXTERN __snd_tick
.bit_open
._bit_open
ld a,@10111000
ld (__snd_tick)... |
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
%ifdef __YASM_VERSION_ID__
%if __YASM_VERSION_ID__ < 01010000h
%error yasm version 1.1.0 or later needed.
%endif
; Yasm automatically includes .00 and complains about redefining it.
; https://www.tortall.net/projects/ya... |
; A022391: Fibonacci sequence beginning 1, 21.
; 1,21,22,43,65,108,173,281,454,735,1189,1924,3113,5037,8150,13187,21337,34524,55861,90385,146246,236631,382877,619508,1002385,1621893,2624278,4246171,6870449,11116620,17987069,29103689,47090758,76194447,123285205,199479652,322764857,522244509,845009366,1367253875,22122632... |
.defineLabel RGBA16_RED, 0xF801
.defineLabel RGBA16_GREEN, 0x07C1
.defineLabel RGBA16_BLUE, 0x003F
.defineLabel RGBA16_BLACK, 0x0001
.defineLabel RGBA16_MIDGRAY, 0x39CF
.defineLabel RGBA16_WHITE, 0xFFFF
.defineLabel RGBA16_TRANSPARENT, 0x0000
.macro .CI4_palette, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13,... |
; A214945: Number of squarefree words of length 6 in an (n+1)-ary alphabet.
; 0,42,696,4260,16680,50190,126672,281736,569520,1068210,1886280,3169452,5108376,7947030,11991840,17621520,25297632,35575866,49118040,66704820,89249160,117810462,153609456,198043800,252704400,319392450,400137192,497214396,613165560,750817830,91... |
; 특정 메모리 주소의 CX바이트 영역의 메모리 HEX 값을
; 덤프하는 함수
; push 출력할 Y좌표 값
; push 출력할 X좌표 값
; push 출력할 바이트 수
; push 출력할 메모리 주소
_print_byte_dump:
push bp
mov bp, sp
pusha
push es
; 라인수 계산하기
mov dl, byte [bp+10]
mov al, 80 * 2
mul dl
add ax, word [bp+8]
inc dl
; 라인수 계산
mov si, ax
xor... |
CSEG AT 0000h
0000 023800 LJMP L0001
0003 020026 LJMP L0610
L0642:
0006 53A9FB ANL 0A9h, #0FBh
0009 32 RETI
L0611:
000A 32 RETI
000B 02000A LJMP L0611
L0658:
000E 53A9DF ANL 0A9h, #0DFh
0011 32 RETI
CSEG AT 0013h
0013 02002E LJMP L0612
L0672:
0016 53A97F ANL 0A9h, #7Fh
... |
/*
Copyright (C) EEMBC(R). All Rights Reserved
All EEMBC Benchmark Software are products of EEMBC and are provided under the
terms of the EEMBC Benchmark License Agreements. The EEMBC Benchmark Software
are proprietary intellectual properties of EEMBC and its Members and is
protected under all applicable laws, includi... |
#include<bits/stdc++.h>
using namespace std;
void BubSort(int a[],int n){
cout<<"Bubble Sort: ";
for(int i=0;i<n-1;i++){ //total N-1 paas
int temp;
for(int j=0;j<n-i-1;j++){ //elements to be traversed are reduced on every pass
if(a[j]>a[j+1]){
temp=a[j];
... |
org 0
JMPADDR start
valor1 db 5
valor2 db 7
mayor db 0
const ten 0A
start: LOAD R1, valor1
LOAD R2, valor2
GRT R1, R2
JMPADDR R1esMayor
STORE mayor, R2
JMPADDR fin
R1esMayor:
STORE mayor, R1
LOADIM R3, #8
fin:
JMPADDR fin |
; A158229: 225n + 1.
; 226,451,676,901,1126,1351,1576,1801,2026,2251,2476,2701,2926,3151,3376,3601,3826,4051,4276,4501,4726,4951,5176,5401,5626,5851,6076,6301,6526,6751,6976,7201,7426,7651,7876,8101,8326,8551,8776,9001,9226,9451,9676,9901,10126,10351,10576,10801,11026,11251,11476,11701,11926,12151,12376,12601,12826,130... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG50093 DB 'GSL: Postcondition failure at c:\projects\gsl\include\gs'
DB 'l\string_span: 114', 00H
ORG $+5
$SG50094 DB 'GSL: Postcondition failure at ... |
#include "arch.h"
#include "fp_C1665.h"
namespace C1665 {
/* Curve C1665 */
#if CHUNK==16
#error Not supported
#endif
#if CHUNK==32
using namespace B168_29;
// Base Bits= 29
const BIG Modulus= {0x1FFFFFFB,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFFFF,0x1FFFFF};
const BIG R2modp= {0x190000,0x0,0x0,0x0,0x0,0x0};
co... |
; A017196: a(n) = (9*n + 2)^12.
; 4096,3138428376721,4096000000000000,353814783205469041,9065737908494995456,116191483108948578241,951166013805414055936,5688009063105712890625,26963771415920784510976,106890007738661124410161,367666387654882241806336,1126825030131969720661201,3138428376721000000000000,806424171518627662... |
; char *strtok_r(char * restrict s, const char * restrict sep, char ** restrict lasts)
SECTION code_clib
SECTION code_string
PUBLIC strtok_r_callee
EXTERN asm_strtok_r
strtok_r_callee:
pop hl
pop bc
pop de
ex (sp),hl
jp asm_strtok_r
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _strtok_r_callee
d... |
; A000225: a(n) = 2^n - 1. (Sometimes called Mersenne numbers, although that name is usually reserved for A001348.)
; 0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215,33554431,67108863,134217727,268435455,536870911,1073741823,2147483647,429... |
; MsgBoxAsk demo (msgboxAsk.asm)
INCLUDE Irvine32.inc
.data
caption BYTE "Survey Completed",0
question BYTE "Thank you for completing the survey."
BYTE 0dh,0ah
BYTE "Would you like to receive the results?",0
results BYTE "The results will be sent via email.",0dh,0ah,0
.code
main PROC
mov ebx,... |
;********************************************************************************************************
; uC/CPU
; CPU CONFIGURATION & PORT LAYER
;
; Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
; A simple boot sector program that loops forever
loop:
jmp loop
times 510-($-$$) db 0
dw 0xaa55
|
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYI... |
#include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/WrapDimUtils.h>
#include <ATen/core/DimVector.h>
#include <c10/util/Exception.h>
#include <c10/core/ScalarType.h>
namespace at {
namespace native {
namespace {
// The estimated integral of a function y of x,
// sampled at points (y_1, ..., y_n) t... |
TITLE Comparing Strings (Compare.asm)
; Last update: 9/7/01
INCLUDE Irvine32.inc
Str_compare PROTO,
string1:PTR BYTE,
string2:PTR BYTE
.data
string_1 BYTE "ABCDEFG",0
string_2 BYTE "ABCDEFG",0
string_3 BYTE 0
string_4 BYTE 0
.code
main PROC
call Clrscr
INVOKE Str_compare,
ADDR string_4,
... |
/*
*
* Copyright (C) 2019-2021, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmect
*
* Author: Michael O... |
; A086972: a(n) = n*3^(n-1) + (3^n+1)/2.
; 1,3,11,41,149,527,1823,6197,20777,68891,226355,738113,2391485,7705895,24712007,78918989,251105873,796364339,2518233179,7942120025,24988621541,78452649023,245818300271,768835960421,2400651060089,7484382716747,23300436759683,72443176107377,224955125807117,697742169876311,2161856... |
;;
;; Copyright (c) 2019-2020, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
###############################################################################
# Copyright 2018 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... |
org 10000h ; boot.asm 中定义的Loader代码首地址
;====== init segments
mov ax, cs
mov ds, ax
mov es, ax
mov ax, 0x00
mov ss, ax
mov sp, 0x7c00
;====== display on screen: Start Loader......
mov ax, 1301h
mov bx, 000fh
mov ... |
; AddTwo.asm - adds two 32-bit integers.
; Chapter 3 example
include Irvine32.inc
.data
aVar SWORD 5
bVar SWORD 5
cVar SWORD 20
dVar SWORD 4
eVar SDWORD ?
.code
main proc
MOV EAX, 0
MOV ebx, 0
mov ecx, 0
mov edx,0
MOV ax, aVar
CWD ;answer is in DX:AX
IDIV bVar ;now the answer is stored into ax
MOV bx,... |
init:
lui $1, 0x7d59
lui $2, 0x12fd
lui $3, 0x7ec7
lui $4, 0x783c
lui $5, 0x4c90
lui $6, 0x67ea
lui $7, 0x7d8d
lui $8, 0x337b
lui $9, 0x635b
lui $10, 0x7c33
lui $11, 0x1ff8
lui $12, 0x72ae
lui $13, 0x65a6
lui $14, 0x1be3
lui $15, 0x1a71
lui $16, 0xeea
lui $17, 0x2546
lui $18, 0x7a4f
lui $19, 0x188b
lui $20, 0x74c2
lui ... |
;------------------------------------------------------------------------------
;
; 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... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _sinh
EXTERN cm48_sdccix_sinh
defc _sinh = cm48_sdccix_sinh
|
; A304171: a(n) = 87*2^n - 38 (n>=0).
; 49,136,310,658,1354,2746,5530,11098,22234,44506,89050,178138,356314,712666,1425370,2850778,5701594,11403226,22806490,45613018,91226074,182452186,364904410,729808858,1459617754,2919235546,5838471130,11676942298,23353884634,46707769306,93415538650,186831077338,373662154714,74732430... |
; A004116: a(n) = floor((n^2 + 6n - 3)/4).
; 1,3,6,9,13,17,22,27,33,39,46,53,61,69,78,87,97,107,118,129,141,153,166,179,193,207,222,237,253,269,286,303,321,339,358,377,397,417,438,459,481,503,526,549,573,597,622,647,673,699,726,753,781,809,838,867,897,927,958,989,1021,1053,1086,1119,1153,1187,1222,1257,1293,1329,1366,1... |
; A157511: a(n) = 5000*n^2 + 200*n + 1.
; 5201,20401,45601,80801,126001,181201,246401,321601,406801,502001,607201,722401,847601,982801,1128001,1283201,1448401,1623601,1808801,2004001,2209201,2424401,2649601,2884801,3130001,3385201,3650401,3925601,4210801,4506001,4811201,5126401,5451601,5786801,6132001,6487201,6852401,7... |
; A097165: Expansion of (1-3x)/((1-x)(1-4x)(1-5x)).
; 1,7,41,227,1221,6447,33601,173467,889181,4533287,23015961,116477907,587981941,2962279327,14900875121,74862289547,375743103501,1884442140567,9445117195081,47317211944387,236952563597861
add $0,1
seq $0,193656 ; Q-residue of the triangle p(n,k)=(2^(n - k))*5^k, 0<=k<... |
; unsigned char esx_m_getdate(struct dos_tm *)
SECTION code_esxdos
PUBLIC _esx_m_getdate
EXTERN asm_esx_m_getdate
_esx_m_getdate:
pop af
pop hl
push hl
push af
jp asm_esx_m_getdate
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x139c9, %rdx
nop
inc %rax
movb $0x61, (%rdx)
nop
nop
inc %r15
lea addresses_WC_ht+0xd039, %rsi
lea addresses_UC_ht+0x155c9, %rdi
nop
nop
sub %r12, %r12
mov $63, %rcx
rep movs... |
; A file to be included using nasm's include directive.
; Note that in this case we don't have to declare the functions as global.
;
section .data
hello: db "Hello", 10
LEN equ $-hello
section .text
say_hello:
mov rax, 1 ; syscall write
mov rdi, 1 ; filedescriptor: stdout
lea... |
/*
* ZeroTier One - Network Virtualization Everywhere
* Copyright (C) 2011-2016 ZeroTier, Inc. https://www.zerotier.com/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version ... |
#include "../../JCharArray.hpp"
#include "../os/Parcel.hpp"
#include "./KeyCharacterMap.hpp"
#include "./KeyCharacterMap_KeyData.hpp"
#include "./KeyEvent_DispatcherState.hpp"
#include "../../JObject.hpp"
#include "../../JString.hpp"
#include "./KeyEvent.hpp"
namespace android::view
{
// Fields
jint KeyEvent::ACTION... |
#include "precompile.h"
#include "Renderer/Renderer.h"
#include "Renderer/VertexArray.h"
#include "Renderer/Shader.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glad/glad.h>
namespace Voxel
{
struct QuadVertex
{
glm::vec3 Position;
glm::vec4 Color;
glm::vec2 TexCoord;
float TexID;
float TexScale;
... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="fd, cmd, vararg"/>
<%docstring>
Invokes the syscall fcntl. See 'man 2 fcntl' for more information.
Arguments:
fd(int): fd
cmd(int): cmd
vararg(int): vararg
</%docstring>
${syscall('SYS_fcntl', fd, cmd, vararg)}
|
section .data
Number: db 0x20
section .bss
StringBuffer: resb 16
section .text
global _start
EXTERN printText, printNewline, convertNumberToString, binaryLog
_start:
mov al, [Number]
call binaryLog
mov rax, rbx
mov rbx, StringBuffer
call convertNumberToString
mov rcx, StringBuffer
mov rdx, 16
call print... |
;-----------------------------------------------------------------------------;
; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)
; Compatible: Windows 7, 2003
; Architecture: x64
; Size: 200 bytes
;-----------------------------------------------------------------------------;
[BITS 64]
; Wi... |
SECTION code_clib
PUBLIC generic_console_vpeek
PUBLIC generic_console_printc
PUBLIC generic_console_scrollup
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
PUBLIC generic_console_set_attribute
PUBLIC generic_console_pointxy
P... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Epson 9-pin printer driver for Zoomer
FILE: epson9zManager.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
---- ---- ... |
; A314032: Coordination sequence Gal.6.324.4 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,5,11,15,20,26,30,36,41,45,51,56,61,67,71,76,82,86,92,97,101,107,112,117,123,127,132,138,142,148,153,157,163,168,173,179,183,188,194,198,20... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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 use, copy, modify, merge, publi... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
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
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
ld c, 0f
ld a, 04
ldff(43), a
.text@1000
lstatint:
nop
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xc566, %rsi
lea addresses_WC_ht+0x215e, %rdi
clflush (%rsi)
nop
add %rbp, %rbp
mov $59, %rcx
rep movsl
add %rbx, %rbx
lea addresses_WC_ht+0x16d84, %rsi
lea addresses_WT_ht+0xb... |
%include "../lib/syscall.inc"
section .data
test_string: db "abcdef", 0
section .text
global _start
strlen:
xor rax, rax ; rax with hold string length
.loop:
cmp byte [rdi+rax], 0
je .end
inc rax
jmp .loop
.end:
ret
_start:
; syscall arguments: rax, rdi, rsi, rdx, r10, r8, r9
; syscall cha... |
#include <iostream>
#include <array>
using namespace std;
int main(){
// looping untuk array dic++ 11 keatas
/*
for(deklarasi variable : array){
stateman
}
*/
// array <int, 10> arrayNilai; (sama saja dengan yang dibawah)
int arrayNilai[10] = {0,1,2,3,4,5,6,7,8,9};
for(int nilai : array... |
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Dynastream Innovations Inc.
// The software is being provided on an "as-is" basis and as an accommodat... |
; A158563: 32n^2 - 1.
; 31,127,287,511,799,1151,1567,2047,2591,3199,3871,4607,5407,6271,7199,8191,9247,10367,11551,12799,14111,15487,16927,18431,19999,21631,23327,25087,26911,28799,30751,32767,34847,36991,39199,41471,43807,46207,48671,51199,53791,56447,59167,61951,64799,67711,70687,73727,76831,79999,83231,86527,89887,9... |
#include <iostream>
#include <chrono>
#include "src/lattice.h"
#include "src/utils/utils.h"
using namespace std::chrono;
int main() {
passed_nanoseconds();
for (int i = 0; i < 40; i++) {
Lattice l = Lattice(256, 8);
}
passed_nanoseconds();
}
|
segment .data
MsgError db "se produjo un error",0xA,0xD ;mensaje en caso de
; existir un error al crear el archivo los numeros
; hexadecimales son equivalentes a los numeros decimales
; 10 y 13 los cuales permiten el salto de linea
lon equ $ -MsgError
MsgExito db "archivo abierto con ... |
; ---------------------------------------------------------------------------
; Debug list - Green Hill
; ---------------------------------------------------------------------------
dc.w $10 ; number of items in list
dc.l Map_obj25+$25000000 ; mappings pointer, object type * 10^6
dc.b 0, 0, $27, $B2 ; subtype, fr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.