text stringlengths 1 1.05M |
|---|
#
# Copyright 1999-2000 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ tests tlble, expects failure.
# OK
lcl r3, 400 #out of range TLB index
tlbse r6, r3 # try to get the TLB entry
|
\ 6522 VIA C - USER PORT
\ This VIA is intended to provide two 8-bit user ports as well as timers for
\ use by user programs.
VIAC_BASE_ADDR = $A800
; register addresses
VIAC_PORTA = VIAC_BASE_ADDR + $01 ; VIA Port A data/instruction register
VIAC_DDRA = VIAC_BASE_ADDR + $03 ; Port A Data Direction Regist... |
segment _TEXT class=CODE USE32 align=1 CPU=686
extern _entry
start:
mov ax, 0x18
mov ds, ax
mov es, ax
mov ss, ax
xor eax, eax
mov ax, 0x1234
shl eax, 4
add eax, 0x3000
mov esp, [eax]
call _entry
.infloop:
hlt
jmp .infloop
global _ret_16
_ret_16:
jmp dword 0x10:0x8... |
; A267777: Binary representation of the n-th iteration of the "Rule 209" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,11001,1111001,111111001,11111111001,1111111111001,111111111111001,11111111111111001,1111111111111111001,111111111111111111001,11111111111111111111001,111111111111111111111... |
#include<bits/stdc++.h>
using namespace std;
#define ll int long long
#define mp make_pair
//#define for(i,n) for(int i=0;i<n;i++)
#define F first
#define S second
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define N 1000000007
#define pq priority queue
#define pb push_back
#define pf... |
;;
;; Copyright (c) 2017-2018, 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... |
; A127330: Begin with the empty sequence and a starting number s = 0. At step k (k >= 1) append the k consecutive numbers s to s+k-1 and change the starting number (for the next step) to 2s+2.
; 0,2,3,6,7,8,14,15,16,17,30,31,32,33,34,62,63,64,65,66,67,126,127,128,129,130,131,132,254,255,256,257,258,259,260,261,510,511,... |
#include <cassert>
//Typedef to simplify the use of the hash function given by the user.
#define BYTE_SIZE (sizeof(unsigned char))
/**
* The BloomFilter class implement the Bloom filter algorithm.
* - element_type: the type of element to take as input.
* - bit_size: the size of the Bloom filter in bit.
* - hash_c... |
/*=============================================================================
Copyright (c) 2001-2014 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=========================================... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1d306, %rbx
xor $50946, %r15
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
movups %xmm1, (%rbx)
inc %r11
lea addresses_A_ht+0x5ca6, %rbp
nop
nop
nop
dec %rcx
mov $... |
/***************************************************************************
*
* $Id: StEmcModule.cxx,v 2.5 2011/09/06 21:33:02 ullrich Exp $
*
* Author: Akio Ogawa, Jan 2000
***************************************************************************
*
* Description:
*
*****************************************... |
.INCLUDE "oam.inc"
;;;=========================================================================;;;
.SEGMENT "OAM"
.EXPORT Ram_ShadowOam_oama_arr64
Ram_ShadowOam_oama_arr64:
.EXPORT Ram_Cursor_oama
Ram_Cursor_oama: .tag OAMA
;;;=========================================================================;;;
.CODE
;; ... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="fd, offset, count, flags"/>
<%docstring>
Invokes the syscall sync_file_range. See 'man 2 sync_file_range' for more information.
Arguments:
fd(int): fd
offset(off64_t): offset
count(off64_t): count
flags(unsigned): flags
</%docstri... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1999. All rights reserved.
GLOBALPC CONFIDENTIAL
PROJECT: GlobalPC
MODULE: Canon BJC Printer Driver
FILE: printcomCanonBJColor.asm
AUTHOR: Joon Song, Jan 24, 1999
ROUTINES:
Name Description
-... |
; CS 218 - Assignment 8
; Functions Template.
; --------------------------------------------------------------------
; Write assembly language functions.
; The function, bubbleSort(), sorts the numbers into descending
; order (large to small). Uses the bubble sort algorithm from
; assignment #7 (modified to so... |
; A021317: Decimal expansion of 1/313.
; 0,0,3,1,9,4,8,8,8,1,7,8,9,1,3,7,3,8,0,1,9,1,6,9,3,2,9,0,7,3,4,8,2,4,2,8,1,1,5,0,1,5,9,7,4,4,4,0,8,9,4,5,6,8,6,9,0,0,9,5,8,4,6,6,4,5,3,6,7,4,1,2,1,4,0,5,7,5,0,7,9,8,7,2,2,0,4,4,7,2,8,4,3,4,5,0,4,7,9
seq $0,173833 ; 10^n - 3.
div $0,313
mod $0,10
|
; void p_stack_push_callee(p_stack_t *s, void *item)
SECTION code_clib
SECTION code_adt_p_stack
PUBLIC _p_stack_push_callee
EXTERN _p_forward_list_insert_after_callee
defc _p_stack_push_callee = _p_forward_list_insert_after_callee
|
; Purpose: Establish a reverse shell using Win32 API
;
; Uses Stephen Fewer's Block API hashing
; https://raw.githubusercontent.com/rapid7/metasploit-framework/master/external/source/shellcode/windows/x86/src/block/block_api.asm
[BITS 32]
cld
call start
; Input: The hash of the API to call and all its parameters mu... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Mono module of vidmem video driver
FILE: monoEscTab.asm
AUTHOR: Jim DeFrisco
REVISION HISTORY:
Name Date Description
---- ---- -----------
... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _isunordered
EXTERN cm48_sdcciy_isunordered
defc _isunordered = cm48_sdcciy_isunordered
|
object_const_def ; object_event constants
const INDIGOPLATEAUPOKECENTER1F_NURSE
const INDIGOPLATEAUPOKECENTER1F_CLERK
const INDIGOPLATEAUPOKECENTER1F_COOLTRAINER_M
const INDIGOPLATEAUPOKECENTER1F_SILVER
const INDIGOPLATEAUPOKECENTER1F_GRAMPS
const INDIGOPLATEAUPOKECENTER1F_ABRA
IndigoPlateauPokecenter1F_MapScri... |
;
; This source code is licensed under the Simplified BSD License.
; See the file LICENSE for more details.
;
global idt_flush
global halt
idt_flush:
mov eax, [esp+4]
lidt [eax]
ret
halt:
cli
.hang
hlt
jmp .hang
|
/*
* Copyright (c) 2020, NVIDIA CORPORATION. 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 requir... |
DEVICE ZXSPECTRUMNEXT
; from http://www.breakintoprogram.co.uk/computers/zx-spectrum/interrupts
Interrupt:
di ; Disable interrupts
push af ; Save all the registers on the stack
push bc ; This is probably not necessary unless
push de ; we're looking at returning cleanly
push hl ; ... |
; A120589: Self-convolution of A120588, such that a(n) = 3*A120588(n) for n >= 2.
; Submitted by Christian Krause
; 1,2,3,6,15,42,126,396,1287,4290,14586,50388,176358,624036,2228700,8023320,29084535,106073010,388934370,1432916100,5301789570,19692361260,73398801060,274447690920,1029178840950,3869712441972,14585839204356... |
;-----------------------------------------------------------------------------
; llshl.asm - long shift left
; Adapted from Visual Studio C runtime library
; Portions Copyright (c) Microsoft Corporation. All rights reserved.
;-----------------------------------------------------------------------------
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x13ddb, %rsi
lea addresses_WC_ht+0x107eb, %rdi
nop
nop
nop
nop
and %r12, %r12
mov $111, %rcx
rep movsb
nop
nop
nop
xor $59742, %rbx
lea addresses_A_ht+0xf21b, %r13
nop
nop
no... |
; A133467: a(n) = a(n-1) + 6*a(n-2) for n >= 2, a(0)=1, a(1)=2.
; 1,2,8,20,68,188,596,1724,5300,15644,47444,141308,425972,1273820,3829652,11472572,34450484,103285916,309988820,929704316,2789637236,8367863132,25105686548,75312865340,225946984628,677824176668,2033506084436,6100451144444,18301487651060,54904194517724,1647... |
; A159566: Decimal expansion of (243+22*sqrt(2))/241.
; Submitted by Christian Krause
; 1,1,3,7,3,9,7,0,8,8,6,8,1,3,6,1,3,7,3,7,4,9,5,3,1,7,5,0,7,5,7,7,3,1,7,7,4,8,0,7,1,8,9,9,6,3,7,2,7,3,5,6,2,5,5,6,4,2,6,8,4,4,5,7,4,0,9,9,4,2,3,8,3,9,2,6,0,0,1,4,7,2,4,2,6,1,7,6,4,5,5,4,1,5,8,0,1,3,0,5
bin $1,$0
mov $2,2
mov $3,$0
mu... |
SECTION code_fp_am9511
PUBLIC asin_fastcall
EXTERN asm_am9511_asinf_fastcall
defc asin_fastcall = asm_am9511_asinf_fastcall
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _asin_fastcall
defc _asin_fastcall = asm_am9511_asinf_fastcall
ENDIF
|
; Platform specific colour transformation
;
; Entry: a = colour
; Exit: a = colour to use on screen
; Used: hl,bc,f
;
MODULE code_clib
PUBLIC conio_map_colour
PUBLIC conio_map_colour_mx
EXTERN __CLIB_CONIO_NATIVE_COLOUR
conio_map_colour_mx:
ret
conio_map_colour:
;No point not mapping on the Specialist
and... |
;
;
SECTION code_graphics
PUBLIC generic_console_cls
PUBLIC generic_console_vpeek
PUBLIC generic_console_scrollup
PUBLIC generic_console_printc
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
PUBLIC generic_conso... |
; A273675: Number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 833", based on the 5-celled von Neumann neighborhood.
; 1,4,17,33,56,85,120,161,208,261,320,385,456,533,616,705,800,901,1008,1121,1240,1365,1496,1633,1776,1925,2080,2241,2408,2581,2760,2945,3136,3... |
;;
;; Copyright (c) 2019-2021, 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... |
; A083222: a(n) = (4*5^n + (-5)^n)/5.
; Submitted by Jon Maiga
; 1,3,25,75,625,1875,15625,46875,390625,1171875,9765625,29296875,244140625,732421875,6103515625,18310546875,152587890625,457763671875,3814697265625,11444091796875,95367431640625,286102294921875,2384185791015625,7152557373046875,59604644775390625,17881393432... |
#include "HeliumRain/Game/Save/FlareSaveWriter.h"
#include "../../Flare.h"
#include "../FlareSaveGame.h"
#include "HeliumRain/Game/FlareGameTools.h"
/*----------------------------------------------------
Constructor
----------------------------------------------------*/
UFlareSaveWriter::UFlareSaveWriter(const FObj... |
#include <iostream>
using namespace std;
enum class Fruit { apple, orange, pear };
enum class Color { red, green, orange };
template <typename T> struct Traits;
template <>
struct Traits<Fruit> {
static string name(int i) {
switch(i){
case 0: return "apple";
case 1: return "orange... |
; -----------------------------------------------------------------------------
; aplib_6502_b.s - fast aPLib backward decompressor for 6502 - 253 bytes
; written for the ACME assembler
;
; jsr apl_decompress to unpack data backwards.
; create backwards compressed data with apultra -b or oapack -b
;
; in:
; * apl_srcpt... |
; A267811: Binary representation of the n-th iteration of the "Rule 217" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,11011,1110111,111101111,11111011111,1111110111111,111111101111111,11111111011111111,1111111110111111111,111111111101111111111,11111111111011111111111,111111111111011111111... |
; A221919: Triangle of numerators of sum of two unit fractions: 1/n + 1/m, n >= m >= 1.
; Submitted by Christian Krause
; 2,3,1,4,5,2,5,3,7,1,6,7,8,9,2,7,2,1,5,11,1,8,9,10,11,12,13,2,9,5,11,3,13,7,15,1,10,11,4,13,14,5,16,17,2,11,3,13,7,3,4,17,9,19,1,12,13,14,15,16,17,18,19,20,21,2,13,7,5,1,17,1,19,5,7,11,23,1
lpb $0
... |
#include "pch.h"
#include "xiyue_xy_re_program_builder.h"
#include "xiyue_xy_re_parser.h"
#include "xiyue_xy_re.h"
using namespace std;
using namespace xiyue;
#define _CHAR XyReDirective::CHAR
static XyReProgramPtr buildProgram(const wchar_t* re)
{
XyReParser parser;
auto ast = parser.parse(re);
XyReProgramBuilde... |
; A173197: a(0)=1, a(n)= 2+2^n/6+4*(-1)^n/3, n>0.
; 1,1,4,2,6,6,14,22,46,86,174,342,686,1366,2734,5462,10926,21846,43694,87382,174766,349526,699054,1398102,2796206,5592406,11184814,22369622,44739246,89478486,178956974,357913942,715827886,1431655766,2863311534,5726623062,11453246126,22906492246,45812984494,91625968982,1... |
; void *w_array_at(w_array_t *a, size_t idx)
SECTION code_clib
SECTION code_adt_w_array
PUBLIC w_array_at
EXTERN asm_w_array_at
w_array_at:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_w_array_at
|
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is the Chaps client. Essentially it forwards all PKCS #11 calls to the
// Chaps Daemon (chapsd) via D-Bus.
#include "chaps/chaps.h"
#incl... |
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <ctime>
#include <string>
#include <memory>
#include <clang/Tooling/CommonOptionsParser.h>
#include "oclint/Analyzer.h"
#include "oclint/CompilerInstance.h"
#include "oclint/Constants.h"
#include "oclint/Driver.h"
#include "oclint/ExitCode.h"
#includ... |
// 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 "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "cc/test/geometry_test_utils.h"
#include "skia/ext/pixel_ref_utils.h"
#in... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm-incidents/model/ListTimelineEventsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#incl... |
; int obstack_vprintf(struct obstack *obstack, const char *format, void *arg)
SECTION code_stdio
PUBLIC obstack_vprintf
EXTERN asm_obstack_vprintf
obstack_vprintf:
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp asm_obstack_vprintf
|
; A247974: Numbers k such that A247973(k+1) = A247973(k).
; 1,6,11,15,20,25,29,34,39,43,48,52,57,62,66,71,76,80,85,90,94,99,104,108,113,118,122,127,132,136,141,146,150,155,160,164,169,174,178,183,188,192,197,202,206,211,216,220,225,230,234,239,244,248,253,258
mov $1,$0
add $1,5
mov $2,$0
mov $3,$0
add $0,5
sub $2,6
mu... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-rets.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC ___local_stdio_printf_options
PUBLIC __vfprintf_l
PUBLIC _printf
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/shm.h>
#include <unistd.h>
#include <sys/mman.h>
#include <linux/fb.h>
#include <errno.h>
#include <sys/stat.h>
extern void startHelloWidgets(void* phy_fb, int width, int height, int color_bytes);
extern ... |
%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 0x68, 0x65, 0x69, 0x63 ; "major_brand(32)" ('heic')
db 0x00, 0x00, 0x00, 0x00 ; "minor_version(32)"
db 0x6D, 0x69, 0x66, 0x... |
; A276704: Records in A249859.
; 3,5,6,21,45,77,117,165,221,285,357,437,525,621,725,837,957,1085,1221,1365,1517,1677,1845,2021,2205,2397,2597,2805,3021,3245,3477,3717,3965,4221,4485,4757,5037,5325,5621,5925,6237,6557,6885,7221,7565,7917,8277
mov $3,$0
mul $0,2
mul $3,2
mov $2,$3
mov $3,1
mov $4,4
lpb $0,1
sub $0,1
... |
C arm/fat/aes-encrypt-internal-2.asm
ifelse(<
Copyright (C) 2015 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundatio... |
; A161116: a(n) is the number of nontrivial positive divisors of 2n+3.
; 0,0,0,1,0,0,2,0,0,2,0,1,2,0,0,2,2,0,2,0,0,4,0,1,2,0,2,2,0,0,4,2,0,2,0,0,4,2,0,3,0,2,2,0,2,2,2,0,4,0,0,6,0,0,2,0,2,4,2,1,2,2,0,2,0,2,6,0,0,2,2,2,4,0,0,4,2,0,2,2,0,6,0,1,4,0,4,2,0,0,2
add $0,1
mul $0,4
mov $1,$0
add $0,1
seq $0,94820 ; Partial sums... |
/*
* 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
... |
;
; ZX IF1 & Microdrive functions
;
; Check if the specified microdrive map is 'full'
;
; int if1_mdv_full (int drive);
;
; HL=CY=1 if full, otherwise HL=CY=0
;
;
; $Id: if1_mdv_full.asm $
;
SECTION code_clib
PUBLIC if1_mdv_full
PUBLIC _if1_mdv_full
if1... |
/*
* Copyright 2016 by Philip N. Garner
*
* See the file COPYING for the licence associated with this software.
*
* Author(s):
* Phil Garner, August 2016
*/
#include "lube/func.h"
#include "lube/var.h"
using namespace libube;
/**
* The default allocator is simply to make a copy of the input variable with
... |
#pragma once
#include <WebServer.h>
#include <WiFiClient.h>
#include "tasks.hpp"
/// Struct used to reference client and your state indicating if wait stream or only one sample
struct client_t {
WiFiClient client;
bool stream;
};
/// Manage a clients queue conections
class ClientManager: public Task{
public:... |
; A164577: Integer averages of the first perfect cubes up to some n^3.
; 1,12,25,45,112,162,225,396,507,637,960,1156,1377,1900,2205,2541,3312,3750,4225,5292,5887,6525,7936,8712,9537,11340,12321,13357,15600,16810,18081,20812,22275,23805,27072,28812,30625,34476,36517,38637,43120,45486,47937,53100,55815,58621,64512,67600,... |
db DEX_POLIWRATH ; pokedex id
db 90 ; base hp
db 85 ; base attack
db 95 ; base defense
db 70 ; base speed
db 70 ; base special
db WATER ; species type 1
db FIGHTING ; species type 2
db 45 ; catch rate
db 185 ; base exp yield
INCBIN "pic/bmon/poliwrath.pic",0,1 ; 77, sprite dimensions
dw PoliwrathPicFront
dw PoliwrathPi... |
#include "debugger.h"
#include <readline/history.h>
#include <readline/readline.h>
namespace Chip8 {
Debugger::Debugger(const std::shared_ptr<Board> &board) : m_board(board) {}
Board *Debugger::board() { return m_board.get(); }
void Debugger::dumpMemory(std::uint16_t offset, size_t size) {
size_t dump_line = size... |
; A138694: Numbers n such that the set {2*n+p^2, p any prime} contains exactly one prime.
; 1,4,7,10,16,19,22,25,31,37,40,46,49,52,61,64,70,79,82,85,91,94,109,112,115,121,124,127,130,136,142,151,154,169,172,175,187,190,196,205,211,217,220,226,229,235,241,247,250,256,274,277,280,289,292,295,304,316,319,322,325,334,337,3... |
; Small C startup module for Running Compiled C from BBC BASIC
; ZCC for z88 converted by Dominic Morris <djm@jb.man.ac.uk>
; Written August 1998
; Updated for small C+ continuously through September
; Changes by DG implemented 28/9/98
; GFX Stuff added 30/9/98
; 19/10/98 Atexit stuff added
; 27/11/98 Atexit stuff reji... |
;-----------------------------------------------------------------------------
; uint_to_ascii64.asm
;-----------------------------------------------------------------------------
;
; DHBW Ravensburg - Campus Friedrichshafen
;
; Vorlesung Systemnahe Programmierung (SNP)
;
;----------------------------------------------... |
/*
Date: 2017.9.4
Author: Chao Gao
Lang: C++
*/
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int maxArea(vector<int>& height) {
int i = 0;
int j = height.size() - 1;
int res = 0;
while(i < j) {
int h = min(height[i], height[j]);
... |
;PROGRAM SORTUJĄCY TABLICĘ METODĄ QUICK SORT
;https://www.geeksforgeeks.org/quick-sort/
MAXVALUE: DC INTEGER(100000)
TAB: DS 16000*INTEGER
TAB_SIZE: DC INTEGER(16000)
SEPARATOR: DC CHAR('\n')
MAIN:
LDA 0, TAB ;r0 - adres tablicy
LD 1, TAB_SIZE ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x70b2, %r15
nop
sub %rcx, %rcx
movb $0x61, (%r15)
xor %rax, %rax
lea addresses_WC_ht+0x1acf2, %rsi
lea addresses_WT_ht+0xb0f2, %rdi
clflush (%rdi)
inc %rbx
mov $31, %rcx
... |
;-----------------------------------------------------------------------------
; Send sound to psg for output
;
; X should hold voice to send....
outputSounds
ldx #5
;..........................................................................
; is voice on ?
.voxLoop
lda psgMainVoiceStatus,x ; g... |
_zombie: formato do arquivo elf32-i386
Desmontagem da seção .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
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 pu... |
SECTION code_fp_math32
PUBLIC ___fsgt
EXTERN cm32_sdcc___fsgt
defc ___fsgt = cm32_sdcc___fsgt
|
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The bitpcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/lic... |
dnl AMD64 mpn_copyi optimised for CPUs with fast SSE copying and SSSE3.
dnl Copyright 2012, 2013 Free Software Foundation, Inc.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify... |
; A026241: Expansion of 1/((1-2x)(1-5x)(1-10x)(1-12x)).
; Submitted by Jon Maiga
; 1,29,557,8977,131685,1825017,24374173,317359889,4057667669,51188756905,639248806989,7920904304001,97550444747653,1195603302467993,14597229457092605,177666702622486513
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$... |
// Demonstrates a problem with the preprocessor where a macro with an empty parameter list does not accept an empty list of parameters
// Commodore 64 PRG executable file
.file [name="preprocessor-16.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$080... |
; Elizabeth Wanic
; 17 February 2017
; CS 3140 - Assignment 4
; Command line for assembly :
; nasm -f elf32 start.asm
; nasm -f elf32 lib4.asm
; Command line for gcc :
; gcc -o assign4 -m32 main.c lib4.o start.o -nostdlib \
; -nodefaultlibs -fno-builtin -nostartfiles
;
; User must enter ./assign4 to ru... |
; QPC extended colour mode
section init
xdef pt_xmodec ; check if mode can be set
xdef pt_xmode ; set mode
xdef qpc_xmode ; set QPC on mode change
include 'dev8_keys_err'
include 'dev8_keys_sys'
include 'dev8_keys_con'
include 'dev8_smsq_qpc_keys'
include 'dev8_mac_assert'
;+++
; Check and set mode
;... |
; Madram/OVL version
; V1: replace D4 (32 bits) by A': 16.03 s
; !!! fix abs adr in getnumber
; V2: replace D3 by DE' 14.83 s / 217 bytes
; V3: exx' by default (prepare v4) 14.86 s / 234 bytes
; V4: replace D6 by HL' 14.23 s / 217 bytes #800 buffer
; v5: slight cleanup ... |
dnl HP-PA __udiv_qrnnd division support, used from longlong.h.
dnl This version runs fast on PA 7000 and later.
dnl Copyright 1993, 1994, 2000, 2001, 2003 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modif... |
; A152671: Even Catalan numbers divided by 2.
; Submitted by Christian Krause
; 1,7,21,66,715,2431,8398,29393,104006,371450,1337220,17678835,64822395,238819350,883631595,3282060210,12233133510,45741281820,171529806825,644952073662,2430973200726,9183676536076,34766775458002
seq $0,62289 ; Numbers n such that n-th row i... |
; A246473: Number of length n+3 0..2 arrays with no pair in any consecutive four terms totalling exactly 2.
; 10,14,20,28,38,52,72,100,138,190,262,362,500,690,952,1314,1814,2504,3456,4770,6584,9088,12544,17314,23898,32986,45530,62844,86742,119728,165258,228102,314844,434572,599830,827932,1142776,1577348,2177178,3005110... |
#if defined(LOCAL)
#define PROBLEM_NAME "mining_your_own_business"
const double _max_double_error = 1e-9;
#include "testutils.h"
#define L(x...) debug(x)
#else
#define L(x, ...) (x)
#include <bits/stdc++.h>
#endif
using namespace std;
using vi = vector<int>; using vvi = vector<vi>;
using ii = pair<int,int>; using vii ... |
; A122835: Number of topologies on n labeled elements in which no element belongs to any pair of noncomparable members of the topology.
; Submitted by Jamie Morken(w2)
; 1,1,4,19,112,811,7024,70939,818752,10630891,153371344,2433948859,42137351392,790287522571,15962014455664,345424786466779,7973482022972032,195556150543... |
/*
* Copyright (C) 2010 Google Inc. 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 ... |
ori $1, $0, 1
ori $2, $0, 9
ori $3, $0, 9
ori $4, $0, 4
sw $3, 0($0)
sw $2, 4($0)
sw $3, 8($0)
sw $1, 12($0)
sw $1, 16($0)
sw $3, 20($0)
sw $2, 24($0)
sw $4, 28($0)
sw $1, 32($0)
sw $2, 36($0)
sw $3, 40($0)
sw $2, 44($0)
sw $4, 48($0)
sw $4, 52($0)
sw $1, 56($0)
sw $1, 60($0)
sw $3, 64($0)
sw $1, 6... |
//-----------------------------------------------------------------------------
// TmxPolygon.cpp
//
// Copyright (c) 2010-2013, Tamir Atias
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are m... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x11841, %r14
nop
nop
nop
nop
nop
add %rdx, %rdx
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
movups %xmm1, (%r14)
and %r10, %r10
lea addresses_WT_ht+0xf7be, %rcx
nop
nop
cmp... |
// Copyright (c) 2012 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 "media/audio/audio_parameters.h"
#include "base/logging.h"
#include "media/base/limits.h"
namespace media {
AudioParameters::AudioParamete... |
; void PSGStop(void)
SECTION code_clib
SECTION code_PSGlib
PUBLIC PSGStop
EXTERN asm_PSGlib_Stop
defc PSGStop = asm_PSGlib_Stop
|
/*
/\ In The Name Of Allah /\
Author : Jawahiir Nabhan
*/
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
const char nl = '\n';
int main()
{
int N,M; cin>> N >> M;
vector <vector<int>> a(N + 1, vector<int>(N + 1, 0));
vector <vector<int>> dp(N + 1, vector<in... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rax
push %rbp
lea addresses_WT_ht+0x169ee, %r13
nop
nop
nop
xor $61904, %r10
vmovups (%r13), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rbp
nop
nop
xor %rax, %rax
pop %rbp
pop %rax
pop %r13
pop %r10
ret
.global s_faulty_load
s_faul... |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) The Ultraschall Project (http://ultraschall.fm)
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the ... |
SFX_Cymbal1_3_Ch1:
unknownnoise0x20 0, 161, 16
endchannel
|
SECTION code_fp_dai32
PUBLIC ___dai32_xsin
EXTERN xsin
defc ___dai32_xsin = xsin
|
Name: ascii.asm
Type: file
Size: 12890
Last-Modified: '1991-10-29T15:00:00Z'
SHA-1: A7E1A8CBE9549FDA31C937D0EDA495782E669B67
Description: null
|
; A020716: Pisot sequences E(6,8), P(6,8).
; Submitted by Jamie Morken(w4)
; 6,8,11,15,20,27,36,48,64,85,113,150,199,264,350,464,615,815,1080,1431,1896,2512,3328,4409,5841,7738,10251,13580,17990,23832,31571,41823,55404,73395,97228,128800,170624,226029,299425,396654,525455,696080,922110,1221536,1618191,2143647,2839728,3... |
# int i = 0
# while(i < 10){ i++; }
.data
message: .asciiz "After while loop is done"
space: .asciiz " "
.text
main:
addi $t0, $zero, 0 # i = 0
# You will need two labels, the while and exit
while:
bgt $t0, 10 , exit # if $t0 >= 10; Exit the while
jal printNumbe... |
;*****************************************************************************
;* x86-optimized AC-3 downmixing
;* Copyright (c) 2012 Justin Ruggles
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License a... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_or
l_or:
; "or" HL and DE into HL
ld a,l
or e
ld l,a
ld a,h
or d
ld h,a
ret
|
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; NOT8r
mov dl, 0xaa
;TEST_BEGIN_RECORDING
not dl
;TEST_END_RECORDING
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.