text stringlengths 1 1.05M |
|---|
#.data
#.text
#.globl fivemain
#fivemain:
# j quicktest
# li $v0, 10
# syscall
#quicktest:
# jr $ra
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xd78, %r11
nop
nop
cmp $43550, %rsi
mov (%r11), %ecx
nop
nop
nop
add %rax, %rax
lea addresses_D_ht+0xb28, %rsi
lea addresses_UC_ht+0x170d8, %rdi
nop
nop
nop
and $36544, %r9
mov $106, %rc... |
BITS 16
ORG 0x7c00
start:
cli
xor ax, ax
mov ds, ax
mov es, ax
mov fs, ax
mov ss, ax
mov gs, ax ; TODO: these might not all be needed, could save some bytes maybe
xor bx, bx
mov sp, 0x7c00
; what osdev says to do to enable SSE
mov eax, cr0
and ax, 0xfffb
or ax, 0x2
mov cr0, eax
mov eax, cr4
or ax, 3 ... |
; Inputs: a, b
; Outputs: a = gcd(a, b)
; Destroys: c
; Assumes: a and b are positive one-byte integers
;
; Taken from https://rosettacode.org/wiki/Greatest_common_divisor#Z80_Assembly
gcd:
cp b
ret z ; while a != b
jr c, else ; if a > b
sub b ; a = a - b
jr gcd
else:
ld c... |
;
; TRS 80 C Library
;
; getk() Read key status
;
; Stefano Bodrato - Apr. 2008
;
;
; $Id: getk.asm,v 1.3 2016/06/12 17:32:01 dom Exp $
;
SECTION code_clib
PUBLIC getk
PUBLIC _getk
.getk
._getk
call $2b
ld l,a
ld h,0
ret
|
#include <_dialog/dialog.errorwarninginfo.h>
#include <_resource/resource.image.alerts.h>
#include <_controller/controller.localization.h>
#include <_type/type.winds.soundbank.h>
void _errorDialog::executeInternal(){
_windsSoundBank::play( _windsSound::fatalError );
_imageDialog::executeInternal();
}
void... |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#includ... |
; A041058: Numerators of continued fraction convergents to sqrt(35).
; Submitted by Christian Krause
; 5,6,65,71,775,846,9235,10081,110045,120126,1311305,1431431,15625615,17057046,186196075,203253121,2218727285,2421980406,26438531345,28860511751,315043648855,343904160606,3754085254915,4097989415521,44733979410125,48831... |
mac macro
ld a, 5
endm
init ld a, 0
ld a, 1
ld a, 2
ld a, 3
ld a, 4
rotulo mac
ld a, 6
ld a, 7
ld a, 8
ld a, 9
ld a, 10
|
/*
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
// Kernel name: RoundShift_C_4x4.asm
//
// Do (...+32)>>... |
; A151790: Partial sums of A151789.
; 1,6,11,31,36,56,76,156,161,181,201,281,301,381,461,781,786,806,826,906,926,1006,1086,1406,1426,1506,1586,1906,1986,2306,2626,3906,3911,3931,3951,4031,4051,4131,4211,4531,4551,4631,4711,5031,5111,5431,5751,7031,7051
mov $3,$0
mov $5,$0
lpb $5
mov $0,$3
sub $5,1
sub $0,$5
mo... |
object_const_def ; object_event constants
const ROUTE34_YOUNGSTER1
const ROUTE34_YOUNGSTER2
const ROUTE34_YOUNGSTER3
const ROUTE34_LASS
const ROUTE34_OFFICER
const ROUTE34_POKEFAN_M
const ROUTE34_GRAMPS
const ROUTE34_DAY_CARE_MON_1
const ROUTE34_DAY_CARE_MON_2
const ROUTE34_COOLTRAINER_F1
const ROUTE34_COOL... |
.data
v: .byte 2,0,0,0,4,0,0,0
array: .byte 2,0,0,0,3,0,0,0,5,0,0,0,7,0,0,0,11,0,0,0,13,0,0,0,17,0,0,0,19,0,0,0
.text
.globl main
main:
la $s1, array
la $s2, v
lw $t0, 0($s2)
addi $t0, $t0, -1
mul $t0, $t0, 4
add $t1, $s1, $t0
lw $t2, 0($t1)
addi $t2, $t2, 1
lw $t0, 4($s2)
addi $... |
#include "printer.h"
printer::printer(QObject *parent) : QObject(parent)
{
connect(&_manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(remoteDate(QNetworkReply*)));
}
QString printer::getAllPrinter()
{
QStringList printer;
QList<QPrinterInfo> list = QPrinterInfo::availablePrinters();
wh... |
db DEX_SANDSHREW ; pokedex id
db 50 ; base hp
db 75 ; base attack
db 85 ; base defense
db 40 ; base speed
db 30 ; base special
db ICE ; species type 1
db STEEL ; species type 2
db 255 ; catch rate
db 93 ; base exp yield
INCBIN "pic/ymon/sandshrew.pic",0,1 ; 55, sprite dimensions
dw SandshrewPicFront
dw SandshrewPicBack... |
; A078701: Least odd prime factor of n, or 1 if no such factor exists.
; 1,1,3,1,5,3,7,1,3,5,11,3,13,7,3,1,17,3,19,5,3,11,23,3,5,13,3,7,29,3,31,1,3,17,5,3,37,19,3,5,41,3,43,11,3,23,47,3,7,5,3,13,53,3,5,7,3,29,59,3,61,31,3,1,5,3,67,17,3,5,71,3,73,37,3,19,7,3,79,5,3,41,83,3,5,43,3,11,89,3,7,23,3,47,5,3,97,7,3,5,101,3,103... |
;/*
; * FreeRTOS Kernel V10.4.1
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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,... |
; A006996: C(2n,n) mod 3.
; 1,2,0,2,1,0,0,0,0,2,1,0,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,1,2,0,0,0,0,1,2,0,2,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,0,0,0,0,0,2,1,0,1,2,0,0,0,0,1,2,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,0,2,1,0,0,0,0,2,1,0,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1ec1b, %rsi
lea addresses_A_ht+0xc6b, %rdi
nop
nop
nop
and %rbx, %rbx
mov $112, %rcx
rep movsl
nop
nop
nop
nop
nop
add $48028, %r13
lea addresses_D_ht+0x1835b, %rsi
lea addresses_D_ht+0... |
;-----------------------------------------------
Instrument_profiles:
SquareWave_instrument_profile:
db 12
Piano_instrument_profile:
db 14,13,12,11,10,10,9,9,8,8,7,7,6,#ff
; Soft_Piano_instrument_profile:
; db 12,11,10,9,8,8,7,7,6,6,5,5,4,#ff
Wind_instrument_profile:
db 0,3,6,8,10,11,12, #ff
; This is t... |
; A032609: Concatenation of n and n + 4 or {n,n+4}.
; 15,26,37,48,59,610,711,812,913,1014,1115,1216,1317,1418,1519,1620,1721,1822,1923,2024,2125,2226,2327,2428,2529,2630,2731,2832,2933,3034,3135,3236,3337,3438,3539,3640,3741,3842,3943,4044,4145,4246
mov $1,$0
add $1,1
mov $2,$0
add $0,1
add $1,3
lpb $1
mul $0,10
d... |
; A228874: a(n) = L(n) * L(n+1) * L(n+2) * L(n+3), the product of four consecutive Lucas numbers, A000032.
; Submitted by Jamie Morken(s4)
; 24,84,924,5544,40194,269874,1864584,12741324,87431844,599001144,4106310474,28143249834,192901471224,1322153872644,9062210132844,62113226746824,425730613530834,2918000448971874,200... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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.o... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2003, 2008, 2009, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under ... |
# RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
.code
t1:
mov eax, \
ebx
# CHECK: t1:
# CHECK-NEXT: mov eax, ebx
t2:
mov eax, [ebx + \
1]
# CHECK: t2:
# CHECK-NEXT: mov eax, dword ptr [ebx + 1]
END
|
; A100335: An inverse Catalan transform of J(2n).
; 0,1,4,11,27,64,149,341,768,1707,3755,8192,17749,38229,81920,174763,371371,786432,1660245,3495253,7340032,15379115,32156331,67108864,139810133,290805077,603979776,1252698795,2594876075,5368709120
mov $1,2
lpb $0
mul $1,2
add $1,$0
sub $0,1
lpe
div $1,3
mov $0,$1... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_long_realloc_63b.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-63b.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory M... |
; RECORDATORIOS
; inputs: rdi, rsi, rdx, rcx, r8, r9
; preservar: r12, r13, r14, r15, rbx,
; la pila: rbp, rsp
; devolver cosas por rax o xmmo
; inputs floats: xmm0, xmm1, ..., xmm7
global cost_derivative
global vector_sum
global update_weight
global hadamard_product
global matrix_prod
; YA IMPLEMENTADAS EN C
e... |
; A183575: a(n) = n - 1 + ceiling((n^2-2)/2); complement of A183574.
; 2,6,10,16,22,30,38,48,58,70,82,96,110,126,142,160,178,198,218,240,262,286,310,336,362,390,418,448,478,510,542,576,610,646,682,720,758,798,838,880,922,966,1010,1056,1102,1150,1198,1248,1298,1350,1402,1456,1510,1566,1622,1680,1738,1798,1858,1920,1982,... |
_ln: file format 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
if(argc != 3){
7: 83 39 03 cmpl $0x3,(%ecx)... |
.Orig x3000
INIT_CODE
LEA R6, #-1
ADD R5, R6, #0
ADD R6, R6, R6
ADD R6, R6, R6
ADD R6, R6, R5
ADD R6, R6, #-1
ADD R5, R5, R5
ADD R5, R6, #0
LD R4, GLOBAL_DATA_POINTER
LD R7, GLOBAL_MAIN_POINTER
jsrr R7
HALT
GLOBAL_DATA_POINTER .FILL GLOBAL_DATA_START
GLOBAL_MAIN_POINTER .FILL main
;;;;;;;;;;;;;;;;;;;;;;;;;;;;printInfo... |
SECTION code_fcntl
PUBLIC __fcntl_fdchain_descend
__fcntl_fdchain_descend:
; descend the fdstruct chain
;
; enter : ix = FDSTRUCT *
;
; exit : success
;
; ix = de = next FDSTRUCT *
; nz flag set
;
; fail if cannot descend
;
; ix unchanged... |
; public domain!!
; Atan8[n] = atan( n/256 ) * 128 / pi
; 0 <= n <= 256
;
; Revision History:
; 92/7/29 A.Koizuka
; 93/ 5/29 [M0.18] .CONST->.DATA
;
.MODEL SMALL
.DATA
public AtanTable8,_AtanTable8
_AtanTable8 label byte
AtanTable8 db 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2
db 3, 3, 3, 3, 3, 3, 3, 4,... |
; A341581: Number of steps needed to move the largest disk out from a stack of n disks in the Towers of Hanoi exchanging disks puzzle with 3 pegs.
; Submitted by Christian Krause
; 0,1,2,5,10,20,37,70,130,243,450,836,1549,2874,5326,9875,18302,33928,62885,116566,216058,400483,742314,1375932,2550365,4727266,8762262,16241... |
/*
* Put a character to the serial port
*/
.macro PUTC, char
push %eax // save
push %edx
mov $0x3fd, %edx // control register for com1
1: in (%dx), %al // read status into AL
test $0x20, %al // check for ready
je 1b // keep trying
mov $0x3f8, %edx // ... |
; ---------------------------------------------------------------------------
; Object 70 - large girder block (SBZ)
; ---------------------------------------------------------------------------
Girder:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Gird_Index(pc,d0.w),d1
jmp Gird_Index(pc,d1.w)
; ================... |
; A084056: a(n) = -a(n-1) + a(n-2) + a(n-3), with a(0)=0, a(1)=1, a(2)=-3.
; 0,1,-3,4,-6,7,-9,10,-12,13,-15,16,-18,19,-21,22,-24,25,-27,28,-30,31,-33,34,-36,37,-39,40,-42,43,-45,46,-48,49,-51,52,-54,55,-57,58,-60,61,-63,64,-66,67,-69,70,-72,73,-75,76,-78,79,-81,82,-84,85,-87,88,-90,91,-93,94,-96,97,-99,100,-102,103,-10... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D94 move.l D1, (A1)+
004D96 dbra D0, $4d94
0166BC move.b #$1, ($114,A6)
0166C2 move #$1, CCR [123p+114]
0166C8 tst.b ($114,A6)
0166CC beq $166d6 [123p+114]
0166D6 clr.b ($114,A6)
0... |
_echo: file format 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 ... |
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bitfx_27
INCLUDE "config_private.inc"
EXTERN asm_bit_beep_raw
_bitfx_27:
ld hl,1124
ld de,1
fx4_1:
push de
push hl
call asm_bit_beep_raw
pop hl
pop de
push de
push hl
ld bc,900
sbc hl,bc
call asm_bit_beep_ra... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x1",
"RBX": "0x0"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov r15, 0xe0000000
mov r10, 0x1
mov r11, 0x0
mov r12, 0x1
cmp r10d, r12d
mov rax, 0
mov rbx, 0
setz al
setnz bl
hlt
|
; A199925: Number of sequences of n coin flips that win on the last flip, if the sequence of flips ends with (0,0,1,1).
; Submitted by Christian Krause
; 0,0,0,1,2,4,8,14,25,45,80,142,253,450,800,1423,2531,4501,8005,14237,25320,45031,80087,142433,253314,450514,801230,1424971,2534282,4507169,8015908,14256129,25354235,45... |
//===- AMDGPUInstructionSelector.cpp ----------------------------*- 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
//
//===----------------------------... |
LoadOverworldMonIcon:
ld a, e
call ReadMonMenuIcon
ld l, a
ld h, 0
add hl, hl
ld de, IconPointers
add hl, de
ld a, [hli]
ld e, a
ld d, [hl]
ld b, BANK(Icons)
ld c, 8
ret
LoadMenuMonIcon:
push hl
push de
push bc
call .LoadIcon
pop bc
pop de
pop hl
ret
.LoadIcon:
ld d, 0
ld hl, .Jumptable
add hl... |
; A291024: p-INVERT of (1,1,1,1,1,...), where p(S) = (1 - 2 S^2)^2.
; 0,4,8,24,64,172,456,1200,3136,8148,21064,54216,139008,355196,904840,2298720,5825408,14729636,37168008,93612408,235369664,590852172,1481051720,3707411472,9268764096,23145174388,57732471752,143857070376,358113876352,890666303260,2213276707080,549546164... |
;
; Sprite Rendering Routine
; original code by Patrick Davidson (TI 85)
; modified by Stefano Bodrato - Jan 2001
;
; Z9001 version
;
;
; $Id: putsprite.asm $
;
SECTION smc_clib
PUBLIC putsprite
PUBLIC _putsprite
EXTERN pixeladdress
EXTERN zx_saddrpdown
INCLUDE "graphics/grafix.inc"
; __gfx_coords: ... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>sysinfo(info) -> str
Invokes the syscall sysinfo.
See 'man 2 sysinfo' for more information.
Arguments:
info(sysinfo*): info
Returns:
int
</%docstring>
<%page args="info=0"/>
<%
abi = pwnlib.... |
# ORG 8090
# DB 63
# ORG 8091
# DB 79
# ORG 8092
# DB 97
# ORG 8093
# DB 26
# ORG 8000
LHLD 8092
MOV B,H
MOV C,L
LHLD 8090
MOV A,L
SBB C
MOV L,A
MOV A,H
SBB B
MOV H,A
SHLD 8094
HLT
|
; A301729: a(0)=1; thereafter positive numbers that are congruent to {0, 1, 3, 5} mod 6.
; 1,1,3,5,6,7,9,11,12,13,15,17,18,19,21,23,24,25,27,29,30,31,33,35,36,37,39,41,42,43,45,47,48,49,51,53,54,55,57,59,60,61,63,65,66,67,69,71,72,73,75,77,78,79,81,83,84,85,87,89,90,91,93,95,96,97
mov $1,$0
add $0,11
mod $0,4
mul $1,6... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x6754, %r14
add %rdx, %rdx
mov (%r14), %rax
dec %r12
lea addresses_D_ht+0x7754, %rsi
lea addresses_A_ht+0xfc04, %rdi
nop
nop
nop
inc %r14
mov $118, %rcx
rep movsb
nop
nop
nop
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Star Gemini 9-pin driver
FILE: gemini9Info.asm
AUTHOR: Dave Durran, 28 Mar 1990
REVISION HISTORY:
Name Date Description
---- ---- ... |
# stsamuel - 10/17/97
# hi-q in ant
# overall algorithm:
# init_board
# while (1) {
# draw_board
# possible_moves
# get_input
# if (is_legal_move)
# make_move
# }
# constants - stylistically, shd load them from memory
# and they are actually in .byte in case we had more instructions
# available
# lc r10, $bound2
#... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0xbff0000000000000", "0x4008000000000000"],
"XMM1": ["0xbff0000000000000", "0x4008000000000000"],
"XMM2": ["0x3ff0000000000000", "0x4008000000000000"],
"XMM3": ["0x3ff0000000000000", "0x4008000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
... |
; A052591: E.g.f. x/((1-x)(1-x^2)).
; 0,1,2,12,48,360,2160,20160,161280,1814400,18144000,239500800,2874009600,43589145600,610248038400,10461394944000,167382319104000,3201186852864000
gcd $1,$0
mov $2,1
add $2,$0
div $2,2
fac $1
mul $1,$2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x180ec, %r8
nop
nop
nop
nop
nop
xor %r13, %r13
mov (%r8), %di
nop
nop
nop
cmp $53534, %r13
lea addresses_normal_ht+0x1e594, %rsi
lea addresses_normal_ht+0x3804, %rdi
clflush (... |
; A024719: a(n) = (1/3)*(2 + Sum_{k=0..n} C(3k,k)).
; 1,2,7,35,200,1201,7389,46149,291306,1853581,11868586,76380826,493606726,3201081874,20821158234,135776966762,887393271311,5811082966886,38119865826421,250447855600321,1647729357535486,10854207824989831,71581930485576631,472560922429972951,3122648143126315651,20652163... |
// 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 "chrome/browser/sync_file_system/drive_backend/callback_helper.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/run_loop.h"
#... |
; solution developed by https://github.com/PySaqib
[org 0x0100]
mov ax, 0 ; setting AX to 0.
mov cx, 20 ; the number of times we want the loop to run.
l1: ; main loop
add ax, 20 ; adding our number.
loop l1 ; loo... |
; A304380: a(n) = 36*n^2 - 4*n (n>=1).
; 32,136,312,560,880,1272,1736,2272,2880,3560,4312,5136,6032,7000,8040,9152,10336,11592,12920,14320,15792,17336,18952,20640,22400,24232,26136,28112,30160,32280,34472,36736,39072,41480,43960,46512,49136,51832,54600,57440,60352,63336,66392,69520,72720,75992,79336,82752,86240,89800,9... |
; A192972: Coefficient of x in the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments.
; 0,1,3,12,33,77,160,309,567,1004,1733,2937,4912,8137,13387,21916,35753,58181,94512,153341,248575,402716,652173,1055857,1709088,2766097,4476435,7243884,11721777,18967229,30690688,49659717,80352327,130014092,21036859... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/src/foxitlib.h"
#include "xfa/src/fwl/src/core/include/fwl_targe... |
; A021329: Decimal expansion of 1/325.
; 0,0,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0,7,6,9,2,3,0
seq $0,173833 ; 10^n - 3.
div $0,325
mod $0,10
|
include 'emu8086.inc'
print 'Enter Number One: '
mov ah,1
int 21h
mov bl,al
printn ''
print 'Enter Number Two: '
mov ah,1
int 21h
mov cl,al
printn ''
print 'Enter Number To choose Add/Div/Mul/Sub:( 1 => Add, 2 => Sub, 3 => div & 4=> mul) '
mov ah,1
int 21h
cmp al,'1'
JE a... |
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 10.0.15063-sp0-windows-10-rs2-1703 i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG __stdcall NtAccessCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
; Substitute for the z80 adc hl,bc instruction
; CPU Min T Max T
; 8080 47 52
; 8085 48 51
; gbz80 36 44
; r2ka 4 4
; z180 10 10
; z80 15 15
; z80n 15 15
SECTION code_l_sccz80
PUBLIC __z80asm__adc_hl_bc
__z80asm__adc_hl_bc:
jr nc, carry0
inc hl... |
; long __FASTCALL__ lrint(double x)
SECTION code_fp_math48
PUBLIC cm48_sccz80_lrint
EXTERN am48_lrint
defc cm48_sccz80_lrint = am48_lrint
|
;*******************************************************************************
;* *
;* THE NUMBER OF THE BEAST VIRUS *
;* *
;* This is NOT a original virus, but a modification. Main difference *
;* between original virus is, that this release support ANY DOS version *
;... |
/*****************************************************************************
* Qwt Examples - Copyright (C) 2002 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#include "Plot.h"
#include "CircularBuffe... |
<%
from pwnlib.shellcraft.arm.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_prio... |
.386
.model flat, stdcall
includelib msvcrt.lib
extern printf : proc
extern scanf : proc
extern exit: proc
public start
.data
message_1 db "Write two numbers : ", 0
message_2 db "Their sum is = ", 0
number_1 db 0
number_2 db 0
result dd 0
format_1 db "%d %d", 0
format_2 db "%d", 0
.code
st... |
;
; A simple boot sector program that loops forever.
;
jmp $ ; Use a simple CPU instruction that jumps
; to a new memory address to continue execution.
; In our case, jump to the address of the current
; instruction.
times 510-($-$$)... |
#include "ScenePointSelectionMode.h"
#include "SceneWidget.h"
#include <cnoid/SceneRenderer>
#include <cnoid/SceneDrawables>
#include <cnoid/SceneEffects>
#include <cnoid/SceneUtil>
#include <map>
#include <unordered_set>
#include "gettext.h"
using namespace std;
using namespace cnoid;
namespace {
constexpr bool MAK... |
; A122590: a(n) = 2*a(n-1) - a(n-2) - (a(n-1)^2 + a(n-2)^2).
; Submitted by Simon Strandgaard
; 1,1,-1,-5,-35,-1315,-1733045,-3003450166025,-9020712899804610407871655,-81373261220701303171562403760549780420204382316935,-6621607641692490540748415739615098712216493205543611915630284696588768305718530764698929904096995465... |
#include "utilities_tmpl_impl.h"
#include "utilities.h"
namespace cor
{
namespace algorithm
{
struct UtilitiesItnl
{
};
Utilities::Utilities() : itnl(new UtilitiesItnl())
{
}
Utiliti... |
_kill: file format 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 ... |
; A134442: Last two digits of primes of form 4n+3 (A002145). Leading 0's omitted.
; 3,7,11,19,23,27,31,39,43,47,51,59,63,67,71,79,83,87,91,99
mul $0,5
add $0,1
div $0,4
mul $0,4
add $0,3
|
; A092391: a(n) = n + wt(n), where wt(n) = A000120(n) = binary weight of n.
; 0,2,3,5,5,7,8,10,9,11,12,14,14,16,17,19,17,19,20,22,22,24,25,27,26,28,29,31,31,33,34,36,33,35,36,38,38,40,41,43,42,44,45,47,47,49,50,52,50,52,53,55,55,57,58,60,59,61,62,64,64,66,67,69,65,67,68,70,70,72,73,75,74,76,77,79,79,81,82,84,82,84,85,8... |
global _start
section .text
_start:
push 0xb ; push 11 onto stack
pop eax ; 11 is moved to eax reg , sys call number for execve
cltd ; sign-extends eax into edx:eax.
push edx ; push null on to stack
;objective is to push 0x6c6c6177 -->llaw onto stack, following changes is been done to achieve it
mo... |
; PresetsMenuRbo:
; dw #presets_goto_rbo_bombs
; dw #presets_goto_rbo_brinstar
; dw #presets_goto_rbo_norfair_first_visit
; dw #presets_goto_rbo_brinstar_cleanup
; dw #presets_goto_rbo_norfair_second_visit
; dw #presets_goto_rbo_lower_norfair
; dw #presets_goto_rbo_norfair_escape
; dw #p... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <zircon/compiler.h>
#include <ddk/binding.h>
#include <ddk/debug.h>
#include <ddk/device.h>
#include <ddk/metadata.h>
#include <ddk/platform-defs... |
global start
section .text
; Currently the CPU is in protected mode so only 32 bits available
bits 32
start:
; Move Multiboot info pointer to edi to be passed into kernel_main
mov esp, stack_top
mov edi, ebx
; Point the first entry of the level 4 page table to the first entry in the
; p3 ta... |
/*
* All Video Processing kernels
* Copyright © <2010>, 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 ri... |
#include "shellcommand.h"
#include "file.h"
#include "user.h"
#include "nice.h"
#include "sigset.h"
#include <util/folder/dirut.h>
#include <util/generic/algorithm.h>
#include <util/generic/buffer.h>
#include <util/generic/vector.h>
#include <util/generic/yexception.h>
#include <util/memory/tempbuf.h>
#include <util/n... |
INCLUDE "p18f47q10.inc"
; CONFIG1L
CONFIG FEXTOSC = OFF
CONFIG RSTOSC = HFINTOSC_64MHZ
; CONFIG1H
CONFIG CLKOUTEN = OFF
CONFIG CSWEN = ON
CONFIG FCMEN = ON
; CONFIG2L
CONFIG MCLRE = INTMCLR
CONFIG PWRTE = OFF ... |
.nolist
#include "ti83plus.inc"
#define ProgStart $9D95
.list
.org ProgStart - 2
.db t2ByteTok, tAsmCmp
b_call(_ClrLCDFull)
ld hl, 0
ld (PenCol), hl
ld hl, msg
b_call(_PutS) ; Display the text
b_call(_NewLine)
ret
msg:
"Hello world!"
.end
.end |
<%
from pwnlib.shellcraft import thumb
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
%>
<%page args="syscall = None, arg0 = None, arg1 = None, arg2 = None, arg3 = None, arg4 = None, arg5 = None, arg6 = None"/>
<%docstring>
Args: [syscall_number, \*args]
Does a ... |
Name: ys_mplay3.asm
Type: file
Size: 155260
Last-Modified: '2016-05-13T04:51:15Z'
SHA-1: B80E3649D8C2E703067BFF75235AD9C357F6459F
Description: null
|
// Test program for 4-Digit display with TM1637 chip
// Code Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
// written by m.stroh
#include "TM1637Display.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void UserInput(){
printf("press any key to start");
getchar();
}
int main(int ... |
#include "forward_node.h"
#include "../render_graph.h"
#include "../renderer.h"
namespace nimble
{
DEFINE_RENDER_NODE_FACTORY(ForwardNode)
// -----------------------------------------------------------------------------------------------------------------------------------
ForwardNode::ForwardNode(RenderGraph* graph... |
#include <ecs/ecs.h>
#include <iostream>
#include <thread>
using namespace std::chrono_literals;
struct health {
int hp = 100;
};
struct infection {
static constexpr int dmg = 8; // dmg per tick
static constexpr int dmg_tick = 2; // how often it damages
static constexpr int spread_ti... |
;header for SNES
.segment "SNESHEADER"
;$00FFC0-$00FFFF
.byte "EXAMPLE 4 " ;rom name 21 chars
.byte $30 ;LoROM FastROM
.byte $00 ; extra chips in cartridge, 00: no extra RAM; 02: RAM with battery
.byte $08 ; ROM size (2^# in kB)
.byte $00 ; backup RAM size
.byte $01 ; US
.byte $33 ; publisher id
.byt... |
; A006257: Josephus problem: a(2*n) = 2*a(n)-1, a(2*n+1) = 2*a(n)+1.
; 0,1,1,3,1,3,5,7,1,3,5,7,9,11,13,15,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,5... |
<%
from pwnlib.shellcraft import pretty, common, i386, registers
from pwnlib.util.packing import pack, unpack
from pwnlib.context import context as ctx
from pwnlib.log import getLogger
%>
<%page args="key, address, count"/>
<%docstring>
XORs data a constant value.
Args:
key (int,str): XOR key either as a 4... |
// Copyright (C) 2010 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include <dlib/optimization.h>
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <dlib/rand.h>
#include <dlib/string.h>
#include <dlib/stat... |
; A205549: Symmetric matrix by antidiagonals: C(max(i+2,j+2),min(i+2,j+2)), i>=1, j>=1.
; Submitted by Christian Krause
; 1,4,4,10,1,10,20,5,5,20,35,15,1,15,35,56,35,6,6,35,56,84,70,21,1,21,70,84,120,126,56,7,7,56,126,120,165,210,126,28,1,28,126,210,165,220,330,252,84,8,8,84,252,330,220,286,495,462,210,36,1,36,210,462
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1d1cf, %r13
nop
nop
sub %rbp, %rbp
mov (%r13), %rdx
nop
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_D_ht+0x65e2, %r10
nop
add %r11, %r11
vmovups (%r10), %ymm7
vex... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; char *strtok(char * restrict s1, const char * restrict s2)
;
; Return the next token from the string being traversed.
; s2 is a string of delimiters used to identify where... |
TITLE BINXLAT.ASM - Binaray file translation code
;***
;BinXlat.ASM - Provides binaray file translation
;
; Copyright (C) 1988-1989, Microsoft Corporation
;
;Purpose:
; BinXlat.ASM contains the product to product binary file translation
; code. in general, the translation is done by a routine called a
; "specific tr... |
; A009454: Expansion of e.g.f. sin(log(1+x)).
; Submitted by Christian Krause
; 0,1,-1,1,0,-10,90,-730,6160,-55900,549900,-5864300,67610400,-839594600,11186357000,-159300557000,2416003824000,-38894192662000,662595375078000,-11911522255750000,225382826562400000
mov $1,1
mov $2,1
lpb $0
sub $0,1
sub $1,1
mov $4,$3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.