text stringlengths 1 1.05M |
|---|
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="file, mode"/>
<%docstring>
Invokes the syscall creat. See 'man 2 creat' for more information.
Arguments:
file(char): file
mode(mode_t): mode
</%docstring>
${syscall('SYS_creat', file, mode)}
|
/*
Copyright 2013 <copyright holder> <email>
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... |
// Copyright (c) 2022 PaddlePaddle Authors. 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... |
/* file: tanh_forward_batch.cpp */
/*******************************************************************************
* Copyright 2014-2017 Intel Corporation
*
* 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 th... |
; A315543: Coordination sequence Gal.4.137.2 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,6,11,17,23,29,35,40,46,52,57,63,69,75,81,86,92,98,103,109,115,121,127,132,138,144,149,155,161,167,173,178,184,190,195,201,207,213,219,224,... |
#include "templ.cpp"
PROC_CALLBACK(custom_test_xxx) {
using namespace templ::devapi;
if ( val_str(operand) == intern_str("xxx") ) {
return val_bool(true);
}
return val_bool(false);
}
int
main(int argc, char **argv) {
using namespace templ::api;
using namespace templ::devapi;
tem... |
; $Id: bs3-cmn-RegGetDr1.asm 72138 2018-05-07 13:03:51Z vboxsync $
;; @file
; BS3Kit - Bs3RegGetDr1
;
;
; Copyright (C) 2007-2018 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or... |
#include <CwshI.h>
/*
* Operator Token | Precedence | Associativity
* ------------------------+--------------+--------------
* | |
* ( ) | 12 | L -> R
* ! ~ + - | 11 (unary) | R -> L
* -d -e -f -o -r -w | 11 ... |
; A006633: From generalized Catalan numbers.
; Submitted by Jon Maiga
; 1,6,39,272,1995,15180,118755,949344,7721604,63698830,531697881,4482448656,38111876530,326439471960,2814095259675,24397023508416,212579132600076
mov $2,$0
mul $2,3
add $2,5
add $0,$2
bin $0,$2
mul $0,12
mov $1,$2
add $1,1
div $0,$1
div $0,2
|
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
.include "myTiny13.h"
.org 0x0000
rjmp Main
.org 0x0006
rjmp CompareFits
; fade via tick-length (=255-N)
.org 0x0010
CompareFits:
; toggle Bit4
ldi A, 0b00010000
in B, PINB
eor A, B
out PORTB, A
ldi A, 8 ; Factor to increment/decrement 1,2,4,8
; change compareValue to make IRQ earlier
cpi I, 1 ; if ... |
; A127214: a(n) = 2^n*tribonacci(n) or (2^n)*A001644(n+1).
; Submitted by Christian Krause
; 2,12,56,176,672,2496,9088,33536,123392,453632,1669120,6139904,22585344,83083264,305627136,1124270080,4135714816,15213527040,55964073984,205867974656,757300461568,2785785413632,10247716470784,37696978288640,138671105769472,51011... |
; A085265: Numbers that can be written as sum of a positive squarefree number and a positive square.
; 2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71
add $0,2
mov $1,$... |
; A112308: Sum of the heights of the second peaks in all Dyck paths of semilength n+2.
; Submitted by Christian Krause
; 1,6,25,93,333,1180,4183,14895,53349,192239,696765,2539157,9299547,34215102,126411177,468822297,1744799967,6514363557,24393558687,91591471287,344764147407,1300756937445,4918188617379,18633066901747,70... |
/*
* Copyright 2012, Jérôme Duval, korli@users.berlios.de.
* Copyright 2003, Tyler Dauwalder, tyler@dauwalder.net.
* Distributed under the terms of the MIT License.
*/
#include "Recognition.h"
#include "UdfString.h"
#include "MemoryChunk.h"
#include "Utils.h"
#include <string.h>
//----------------------------... |
; A169026: Number of reduced words of length n in Coxeter group on 13 generators S_i with relations (S_i)^2 = (S_i S_j)^24 = I.
; 1,13,156,1872,22464,269568,3234816,38817792,465813504,5589762048,67077144576,804925734912,9659108818944,115909305827328,1390911669927936,16690940039135232,200291280469622784
add $0,1
mov $3... |
ORG $8000
ld b,c
DEVICE ZXSPECTRUMNEXT
|
; A158772: a(n) = A138635(n+18)-A138635(n).
; 21,21,21,42,42,42,84,84,84,168,168,168,336,336,336,672,672,672,1344,1344,1344,2688,2688,2688,5376,5376,5376,10752,10752,10752,21504,21504,21504,43008,43008,43008,86016,86016,86016,172032,172032,172032,344064
div $0,3
mov $1,2
pow $1,$0
mul $1,21
mov $0,$1
|
.eqv SYS_PRINT_STRING 4
.eqv SYS_READ_WORD 5
.eqv SYS_EXIT 10
.data
posstr: .asciiz "Positive\n"
nonposstr: .asciiz "Non Positive\n"
.text
.globl main
main:
li $v0, SYS_READ_WORD
syscall
# t0 = 1 if v0 == 0
slt $t0, $v0, $zero
... |
// Copyright(c) 2019 - 2020, #Momo
// 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 copyright notice, this
// list of conditions... |
; A208378: Number of n X 7 0..1 arrays avoiding 0 0 0 and 1 1 1 horizontally and 0 0 1 and 1 0 1 vertically.
; 42,1764,6216,13860,25200,40740,60984,86436,117600,154980,199080,250404,309456,376740,452760,538020,633024,738276,854280,981540,1120560,1271844,1435896,1613220,1804320,2009700,2229864,2465316,2716560,2984100,32... |
; A247487: Expansion of (2 + x + x^2 + x^3 - x^4 - 2*x^5 - 4*x^6 - 8*x^7) / (1 - x^4 + 16*x^8) in powers of x.
; Submitted by Christian Krause
; 2,1,1,1,1,-1,-3,-7,-31,-17,-19,-23,-47,-1,29,89,449,271,333,457,1201,287,-131,-967,-5983,-4049,-5459,-8279,-25199,-8641,-3363,7193,70529,56143,83981,139657,473713,194399,13778... |
; A098386: Prime(n)-Log2(n), where Log2=A000523.
; 2,2,4,5,9,11,15,16,20,26,28,34,38,40,44,49,55,57,63,67,69,75,79,85,93,97,99,103,105,109,123,126,132,134,144,146,152,158,162,168,174,176,186,188,192,194,206,218,222,224,228,234,236,246,252,258,264,266,272,276
mul $0,2
mov $2,$0
max $0,1
seq $0,173919 ; Numbers that are... |
// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 - 2022 by Apex.AI 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
//
// ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x162cf, %rsi
lea addresses_WT_ht+0xeacf, %rdi
nop
nop
nop
nop
nop
add %r10, %r10
mov $32, %rcx
rep movsw
nop
dec %rsi
lea addresses_UC_ht+0xe7f, %r13
xor %r8, %r8
mov (%r13), %rsi
add %r... |
rst 0x28 ; @@ 0x2756 ef .instr
dec sp ; @@ 0x2757 3b
jr c, 0x2772 ; @@ 0x2758 38 18
jr 0x2734 ; @@ 0x2771 18 c1 .instr
---
rst 0x28 ; @@ 0x2756 ef .instr
... |
*
* $Id: sas_cxv45.asm,v 1.1.1.1 2004-07-26 16:31:04 obarthel Exp $
*
* :ts=8
*
* Adapted from reassembled SAS/C runtime library code.
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by Olaf Barthel <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in... |
; A082045: Diagonal sums of number array A082043.
; 1,2,6,20,59,150,336,680,1269,2218,3674,5820,8879,13118,18852,26448,36329,48978,64942,84836,109347,139238,175352,218616,270045,330746,401922,484876,581015,691854,819020,964256,1129425,1316514,1527638
mov $16,$0
mov $18,$0
add $18,1
lpb $18,1
clr $0,16
mov $0,$16
... |
TITLE txtsave.asm - ASCII Save Functions
;==========================================================================
;
;Module: txtsave.asm - ASCII Save Functions
;System: Quick BASIC Interpreter
;
;=========================================================================*/
include version.inc
TXTSAVE_ASM = ON
... |
;;; Apple II/IIe reset-everything routine
;;; Copyright © 2017 Zellyn Hunter <zellyn@gmail.com>
!zone resetall {
;;; Reset all soft-switches to known-good state. Burns $300 and $301 in main mem.
RESETALL
sta RESET_RAMRD
sta RESET_RAMWRT
stx $300
sta $301
;; Save return address in X and A, in case we switch zero... |
; A142196: Primes congruent to 33 mod 40.
; Submitted by Jon Maiga
; 73,113,193,233,313,353,433,593,673,953,1033,1153,1193,1433,1553,1753,1873,1913,1993,2113,2153,2273,2393,2473,2593,2633,2713,2753,2833,2953,3313,3433,3593,3673,3793,3833,4073,4153,4273,4513,4673,4793,4993,5113,5153,5233,5273,5393,5953,6073,6113,6353,64... |
; A156712: Star numbers (A003154) that are also triangular numbers (A000217).
; 1,7,91,1261,17557,244531,3405871,47437657,660721321,9202660831,128176530307,1785268763461,24865586158141,346332937450507,4823795538148951,67186804596634801,935791468814738257,13033893758809700791,181538721154521072811,2528508202404485318557... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xf7b0, %r14
nop
nop
nop
nop
nop
add %r13, %r13
movups (%r14), %xmm0
vpextrq $0, %xmm0, %rbp
nop
dec %rax
lea addresses_WC_ht+0x3664, %rdi
nop
nop
dec %r15
mov $0x616263646566... |
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_UNITY_LIB_SFRAME_HPP
#define TURI_UNITY_LIB_SFRAME_HPP
#include <iostream>
#include <al... |
;/*****************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - Quarter-pixel interpolation -
; * Copyright(C) 2002 Pascal Massimino <skal@planet-d.net>
; *
; * This file is part of Xvid, a free MPEG-4 video encoder/decoder
; *
; * Xvid is free software; you ca... |
section "Sound test RAM",wram0
SoundTest_SongID: db
SoundTest_MarqueeScroll: db
SoundTest_MarqueePos: db
SoundTest_DoFade: db
SoundTest_CH1Vol: db
SoundTest_CH2Vol: db
SoundTest_CH3Vol: db
SoundTest_CH4Vol: db
SoundTest_CH1DecayTime: db
SoundTes... |
#include "osmwindow.h"
#include <QtCore/QDebug>
#include <QtGui/QPainter>
#include <QtGui/QPaintEvent>
#include "osmtiles.h"
OsmWindow::OsmWindow(QWidget *parent, int zoom, int x, int y) : QWidget(parent), zoom(zoom), x(x), y(y)
{
tiles = new OsmTiles(this);
setAttribute(Qt::WA_AcceptTouchEvents);
};
void ... |
Name: ys_enmy8.asm
Type: file
Size: 178916
Last-Modified: '2016-05-13T04:51:43Z'
SHA-1: 385E3714A9F222F26C1097C9416EFC552F4360C3
Description: null
|
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
#include "ksarm64.h"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATA SECTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
__tls_array equ 0x58 ;; offsetof(TEB,... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
; A218750: a(n) = (47^n-1)/46.
; 0,1,48,2257,106080,4985761,234330768,11013546097,517636666560,24328923328321,1143459396431088,53742591632261137,2525901806716273440,118717384915664851681,5579717091036248029008,262246703278703657363377,12325595054099071896078720,579302967542656379115699841,27227239474504849818437892528,... |
; A315525: Coordination sequence Gal.3.49.2 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,6,11,17,22,28,34,39,45,50,56,62,67,73,78,84,90,95,101,106,112,118,123,129,134,140,146,151,157,162,168,174,179,185,190,196,202,207,213,218,2... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
MOV AX, 1
ADD AX, 5
ADD AX, 5
ret
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2016, 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 distr... |
; A197927: The number of isolated nodes in all labeled directed graphs (with self loops allowed) on n nodes.
; 0,1,4,48,2048,327680,201326592,481036337152,4503599627370496,166020696663385964544,24178516392292583494123520,13944156602510523416463735259136,31901471898837980949691369446728269824,289909687580898100839964337... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="pid, cpusetsize, cpuset"/>
<%docstring>
Invokes the syscall sched_getaffinity. See 'man 2 sched_getaffinity' for more information.
Arguments:
pid(pid_t): pid
cpusetsize(size_t): cpusetsize
cpuset(cpu_set_t): cpuset
</%docstring>
... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>delete_module(name) -> str
Invokes the syscall delete_module.
See 'man 2 delete_module' for more information.
Arguments:
name(char*): name
Returns:
int
</%docstring>
<%page args="name=0"/>
<%
abi = pwn... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>sysfs(option) -> str
Invokes the syscall sysfs.
See 'man 2 sysfs' for more information.
Arguments:
option(int): option
Returns:
int
</%docstring>
<%page args="option=0"/>
<%
abi = pwnlib.abi... |
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24))
ftyp_start:
dd BE(ftyp_end - ftyp_start)
dd "ftyp"
db 0x61, 0x76, 0x69, 0x66 ; brand(32) ('avif')
db 0x00, 0x00, 0x00, 0x00 ; version(32)
db 0x61, 0x76, 0x69, 0x66 ; compatible_... |
//===- SimplifyCFG.cpp - Code to perform CFG simplification ---------------===//
//
// 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 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
DrawAllPokeballs:
call LoadPartyPokeballGfx
call SetupOwnPartyPokeballs
ld a, [wIsInBattle]
dec a
ret z ; return if wild pokémon
jp SetupEnemyPartyPokeballs
DrawEnemyPokeballs:
call LoadPartyPokeballGfx
jp SetupEnemyPartyPokeballs
LoadPartyPokeballGfx:
ld de, PokeballTileGraphics
ld hl, vSprites + $310
lb ... |
#include "Capstan/Platform/Clock.h"
#include "Capstan/Timer.h"
namespace Capstan
{
Timer::Timer (void) { };
Timer::~Timer (void) { };
void Timer::Step (void)
{
frames++;
previous = current;
current = Platform::GetTime();
delta = current - previous;
};
Rea... |
/*
Copyright (c) 2002-2010 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
; A027880: a(n) = Product_{i=1..n} (12^i - 1).
; Submitted by Jon Maiga
; 1,11,1573,2716571,56328099685,14016177372718235,41852067359921313500005,1499635200191700040518673659035,644815685260091508353787979063721364325,3327107302821620489265827570792988872583047378075,2060057146778094314329517075683048089585106833235349... |
; A136763: a(n) = leading digit of n! in base 13.
; 1,1,2,6,1,9,4,2,1,12,9,8,7,7,8,9,11,1,1,2,3,5,9,1,2,4,9,1,3,7,1,3,7,1,3,10,2,6,1,4,1,3,10,2,9,2,8,2,8,2,9,2,11,3,1,4,1,7,2,11,4,1,6,2,12,4,1,9,3,1,8,3,1,8,3,1,9,4,2,12,5,2,1,8,4,2,1,7,3,2,1,7,4,2,1,9,5,3,1,1
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order o... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142A4A7A6A84748",
"RBX": "0x51525354181B1E21",
"RCX": "0x61626365282B2E31",
"RDX": "0x6162636465666569"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x515253545... |
#include "routing/regions_router.hpp"
#include "routing/dummy_world_graph.hpp"
#include "routing/index_graph_loader.hpp"
#include "routing/junction_visitor.hpp"
#include "routing/regions_sparse_graph.hpp"
#include "routing/routing_helpers.hpp"
#include "routing_common/car_model.hpp"
#include "base/scope_guard.hpp"
... |
; A241566: Number of 2-element subsets of {1,...,n} whose sum has more than 2 divisors.
; 0,0,1,2,5,8,12,17,22,27,34,41,50,60,70,80,92,105,119,134,149,164,181,198,216,235,254,274,296,318,341,365,390,415,441,467,494,522,551,580,611,642,675,709,743,778,815,853,891,930,969,1008,1049,1090,1131
lpb $0
mov $2,$0
sub $0,... |
// LeetCode430-FlattenAMultilevelDoublyLinkedList.cpp
// Ad
// Init: 19Mar15
/* -----------------------------------------------------------------------------
430. Flatten a Multilevel Doubly Linked List
Medium
Linked List, Depth-first Search
You are given a doubly linked list which in addition to the next and previo... |
; Z88 Small C+ Run time Library
; l_gchar variant to be used sometimes by the peephole optimizer
;
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_gcharsp
l_gcharsp:
add hl,sp
inc hl
inc hl
ld a,(hl)
ld l,a
rlca
sbc a,a
ld h,a
ret
|
; A204558: Row sums of the triangle A045975.
; 1,6,45,120,325,630,1225,2016,3321,4950,7381,10296,14365,19110,25425,32640,41905,52326,65341,79800,97461,116886,140185,165600,195625,228150,266085,306936,354061,404550,462241,523776,593505,667590,750925,839160,937765
mov $1,$0
pow $0,2
mul $1,2
add $1,$0
gcd $0,2
add $1,$0... |
; void *p_list_insert_after(p_list_t *list, void *list_item, void *item)
SECTION code_adt_p_list
PUBLIC asm_p_list_insert_after_callee
p_list_insert_after_callee:
pop af
pop de
pop hl
pop bc
push af
INCLUDE "adt/p_list/z80/asm_p_list_insert_after.asm"
|
; 8086 assembly file
; by:czfshine
; date: 2018/03/31 16:29:15
;编写程序,从键盘接收一个小写字母,然后找出它的前导字符和后续字符,再按顺序显示这三个字符。
; The Main Data segment
DATA SEGMENT
DATA ENDS
;entry code segment
CODE SEGMENT
ASSUME CS:CODE ,DS:DATA
START: ;entry point
MOV AX,DATA
MOV DS,AX
MOV AH,01H
INT 21H
... |
; A127590: Numbers n such that 16n+5 is prime.
; Submitted by Jon Maiga
; 0,2,3,6,9,11,12,14,17,18,23,24,26,38,41,42,44,47,48,51,53,62,63,66,68,69,77,81,86,89,93,101,102,104,108,116,117,123,128,129,138,143,144,146,147,149,152,159,167,168,171,174,177,182,191,194,201,203,206,213,216,221,222,227,231,233,237,242,249,251,25... |
;;
;; Copyright (c) 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 the ... |
;
; Copyright (C) 1990-1992 Mark Adler, Richard B. Wales, and Jean-loup Gailly.
; Permission is granted to any individual or institution to use, copy, or
; redistribute this software so long as all of the original files are included
; unmodified, that it is not sold for profit, and that this copyright notice
; is retai... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x83d1, %r11
nop
nop
nop
and $61405, %rdi
movw $0x6162, (%r11)
nop
add $43272, %r15
lea addresses_WT_ht+0x8721, %rax
nop
nop
nop
nop
nop
sub $62162, %rdx
vmovups (%rax), %ymm4... |
.MODEL SMALL
.STACK 100H
.DATA
CR EQU 0DH
LF EQU 0AH
MAJOR DB '?'
MINOR DB '?'
MSG DB 'GET DOS VERSION:INT 21H FUNCTION 3OH',CR,LF,'MS-DOS Version ,'$'
MSG1 DB CR,LF,'MAJOR VERSION NUMBER IS :$'
MSG2 DB CR,LF,'MINOR VERSION NUMBER IS :$'
.CODE
MAIN PROC
;initialization
MOV AX,@DATA
MOV DS,AX
;get dos ver... |
; CRT0 for the Sharp X1
;
; Karl Von Dyson (for X1s.org)
;
; $Id: x1_crt0.asm,v 1.17 2016-07-20 05:45:02 stefano Exp $
;
MODULE x1_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------... |
page 49,132
TITLE ssdeclare - scan support for declarative statement opcodes
;***
;ssdeclare - scan support for declarative statement opcodes
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; These routines scan DIM, COMMON, VtRf, AVtRf, and provide additional
; external support for COMMON.
;
; COMMO... |
;;
;
; Name: stage_udp_shell
; Type: Stage
; Qualities: None
; Platforms: Linux
; Authors: skape <mmiller [at] hick.org>
; Version: $Revision: 1400 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and cop... |
; Automatically Tuned Linear Algebra Software v3.10.0
; (C) Copyright 2001 Julian Ruhe
;
; 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 ... |
; A062781: Number of arithmetic progressions of four terms and any mean which can be extracted from the set of the first n positive integers.
; 0,0,0,1,2,3,5,7,9,12,15,18,22,26,30,35,40,45,51,57,63,70,77,84,92,100,108,117,126,135,145,155,165,176,187,198,210,222,234,247,260,273,287,301,315,330,345,360,376,392,408,425,44... |
/***************************************************
This is a library for our optical Fingerprint sensor
Designed specifically to work with the Adafruit Fingerprint sensor
----> http://www.adafruit.com/products/751
These displays use TTL Serial to communicate, 2 pins are required to
interface
Adafruit in... |
; void *zx_saddrpleft(void *saddr, uchar bitmask)
SECTION code_arch
PUBLIC _zx_saddrpleft
EXTERN asm_zx_saddrpleft
_zx_saddrpleft:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_zx_saddrpleft
|
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Scripting/Natives/Generated/audio/AudioMetadata.hpp>
namespace RED4ext
{
namespace audio {
struct MeleeRigMapItem : a... |
; A155639: 6^n-5^n+1^n.
; 1,2,12,92,672,4652,31032,201812,1288992,8124572,50700552,313968932,1932641712,11839990892,72260648472,439667406452,2668522016832,16163719991612,97745259402792,590286253682372,3560791008422352
mov $1,6
pow $1,$0
mov $2,5
pow $2,$0
sub $1,$2
add $1,1
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x15ba7, %r15
nop
xor $24652, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
movups %xmm2, (%r15)
nop
nop
and $6665, %rbp
lea addresses_A_ht+0x9727, %rdi
nop
nop
nop
nop
nop
xor $2... |
; A064198: a(n) = 3*(n-2)*(n-3)*(3*n^2-3*n-8)/2.
; Submitted by Jamie Morken(s4)
; 0,0,84,468,1476,3540,7200,13104,22008,34776,52380,75900,106524,145548,194376,254520,327600,415344,519588,642276,785460,951300,1142064,1360128,1607976,1888200,2203500,2556684,2950668,3388476,3873240,4408200,4996704,5642208,6348276,7118580... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0049DA move.w ($10,A6), -(A4) [base+689E, base+68B2, base+68B6, base+68BE, base+68C2, base+68C6, base+68CA, base+68CE, base+68F6, base+68FA, base+6902, base+6906, base+690A, base+690E, base+6912, base+6916, ba... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItem_DungeonEntrance_TekCave_Hard_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------... |
; A091084: a(n) = A001045(n) mod 10.
; 0,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5,1,1,3,5
mul $0,58
lpb $0
add $0,4
lpb $0
mod $0,8
mod $1,42
ad... |
// GsPositionThread.cpp -*- C++ -*-
// $Id: GsPositionThread.cpp,v 1.42 1998/04/17 02:08:10 jason Exp $
// Copyright 1996-1997 Lyra LLC, All rights reserved.
//
// implementation
#ifdef __GNUC__
#pragma implementation "GsPositionThread.h"
#endif
#include <errno.h>
#include <string.h>
#include <stdio.h>
#ifndef WIN... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at ww... |
; PC speaker test
BITS 16
ORG 100h
SECTION .text
; Set up PIT
; okay... we don't have 32 bit ints so we use a float (lol)
FILD DWORD [freq_pit]
FILD DWORD [freq_snd]
FDIVP
FISTP WORD [divisor]
MOV AL, 0B6h
OUT 43h, AL
MOV AL, BYTE [divisor]
OUT 42h, AL
MOV AL, BYTE [divisor + 1]
OUT 42h, AL
... |
LD 00000000
LD 00000100
MOV r3 r0 ; variable A to compare
LD 00000011
MOV r2 r0 ; variable B to compare
LD 00000000
MOV r1 r0 ; MSB of address to jump to
LD 00000000 ; LSB of address to jump to
CMP r2 r3
JE
NOP
NOP
NOP
|
// dear imgui, v1.79 WIP
// (demo code)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Read imgu... |
SFX_Healing_Machine_3_Ch4:
duty 2
unknownsfx0x10 44
unknownsfx0x20 4, 242, 0, 5
unknownsfx0x10 34
unknownsfx0x20 2, 241, 0, 5
unknownsfx0x10 8
unknownsfx0x20 1, 0, 0, 0
endchannel
|
; A140657: Powers of 2 with 3 alternatingly added and subtracted.
; 4,-1,7,5,19,29,67,125,259,509,1027,2045,4099,8189,16387,32765,65539,131069,262147,524285,1048579,2097149,4194307,8388605,16777219,33554429,67108867,134217725,268435459,536870909,1073741827,2147483645,4294967299,8589934589,17179869187,34359738365,687194... |
; The Programmable Interval Timer (PIT) chip
; https://wiki.osdev.org/Programmable_Interval_Timer
; PIT has four registers
; 1 mode command register (has four parts)
; 3 data registers
; I/O port Usage
; 0x40 Channel 0 data port (read/write)
; 0x41 Channel 1 data port (read/write)
; 0x42 C... |
<%
from pwnlib.shellcraft.amd64.linux import fork
from pwnlib.shellcraft.common import label
%>
<%docstring>
Performs a forkbomb attack.
</%docstring>
<%
dosloop = label('fork_bomb')
%>
${dosloop}:
${fork()}
jmp ${dosloop}
|
/* Copyright (c) 2005, 2017, Oracle and/or its affiliates.
Copyright (c) 2009, 2018, MariaDB
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; version 2 of the License.
This program is ... |
%ifndef EXE_LENGTH
%include "../UltimaPatcher.asm"
%include "include/uw1.asm"
%include "include/uw1-eop.asm"
%endif
[bits 16]
startPatch EXE_LENGTH, \
expanded overlay procedure: mouseLookOrMoveCursor
startBlockAt addr_eop_mouseLookOrMoveCursor
push bp
mov bp, sp
; bp-based stack frame:
%assign ar... |
; A035337: Third column of Wythoff array.
; 3,11,16,24,32,37,45,50,58,66,71,79,87,92,100,105,113,121,126,134,139,147,155,160,168,176,181,189,194,202,210,215,223,231,236,244,249,257,265,270,278,283,291,299,304,312
mov $27,$0
mov $29,$0
add $29,2
mov $30,$0
lpb $29,1
mov $0,$27
sub $29,1
sub $0,$29
mov $23,$0
... |
SECTION FRAGMENT "Frag", ROM0[0] ; Uh oh
db $40
SECTION "Word", ROM0/*[6]*/
dw $78d5
|
; This file is a part of the IncludeOS unikernel - www.includeos.org
;
; Copyright 2015 Oslo and Akershus University College of Applied Sciences
; and Alfred Bratterud
;
; 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 ... |
; A094628: Erroneous version of A052218.
; 4,13,40,130,400,1300,4000,13000,40000,130000,400000,1300000,4000000,13000000,40000000,130000000,400000000,1300000000,4000000000,13000000000,40000000000,130000000000,400000000000,1300000000000
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,4663 ; Powers of 3 written in base... |
;;#############################################################################
;; FILE: CLAexp.asm
;;
;; DESCRIPTION: CLA Exponent function
;;
;; Group: C2000
;; Target Family: C28x+CLA
;;
;;#############################################################################
;; $TI Release: CLA Math Library 4... |
;
;/*
; FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd.
; All rights reserved
;
;
; ***************************************************************************
; * *
; * FreeRTOS tutorial books are available ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.