text stringlengths 1 1.05M |
|---|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x18635, %rsi
lea addresses_UC_ht+0x16631, %rdi
nop
and %r15, %r15
mov $24, %rcx
rep movsw
nop
nop
nop
nop
xor %rbx, %rbx
lea addresses_WC_ht+0x381, %r13
cmp %r10, %r10
mov $0... |
; A202200: Number of (n+2) X 8 binary arrays avoiding patterns 001 and 101 in rows and columns.
; 1728,7680,26400,76032,192192,439296,926640,1830400,3422848,6110208,10480704,17364480,27907200,43659264,66682704,99677952,146132800,210496000,298378080,416782080,574367040,781747200,1051830000,1400196096,1845524736,24100679... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x96eb, %r13
nop
nop
nop
nop
nop
dec %rcx
movb $0x61, (%r13)
nop
nop
nop
nop
add $46732, %r15
lea addresses_normal_ht+0x1776b, %rsi
lea addresses_A_ht+0x6eb, %rdi
nop
nop
n... |
;******************************************************************************
;
; cp15.asm - CP15 coprocesser configuration APIs
;
;******************************************************************************
;
; Copyright (C) 2010 Texas InSTRuments Incorporated - http://www.ti.com/
;
;
; RediSTRibution and use in... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
; size_t b_array_insert_n(b_array_t *a, size_t idx, size_t n, int c)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC b_array_insert_n
EXTERN asm_b_array_insert_n
b_array_insert_n:
pop ix
pop de
ld a,e
pop de
pop bc
pop hl
push hl
push bc
push de
push de
push ix
jp asm_b_... |
;
; Led scrolling text animation
;
;=====================Initialization=======================//
ORG 0000h
LJMP INIT
ORG 001Bh
LJMP IT00
;---------Character table------------------- ... |
// Copyright 2017 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 "src/media/audio/audio_core/audio_device.h"
#include <lib/fit/bridge.h>
#include <trace/event.h>
#include "src/media/audio/audio_core/audio_dev... |
; A290232: Binary representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 773", based on the 5-celled von Neumann neighborhood.
; Submitted by Jon Maiga
; 1,10,111,1100,11111,111000,1111111,11110000,111111111,1111100000,11111111... |
; A170569: Number of reduced words of length n in Coxeter group on 32 generators S_i with relations (S_i)^2 = (S_i S_j)^47 = I.
; 1,32,992,30752,953312,29552672,916132832,28400117792,880403651552,27292513198112,846067909141472,26228105183385632,813071260684954592,25205209081233592352,781361481518241362912,2422220592706... |
.byte $30, $20, $E0, $40, $A0, $00, $00, $00, $00
|
; A277952: Binary representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 14", based on the 5-celled von Neumann neighborhood.
; Submitted by Jon Maiga
; 1,11,110,1110,11010,111010,1101010,11101010,110101010,1110101010,110101... |
; A267623: Binary representation of the middle column of the "Rule 187" elementary cellular automaton starting with a single ON (black) cell.
; 1,10,101,1011,10111,101111,1011111,10111111,101111111,1011111111,10111111111,101111111111,1011111111111,10111111111111,101111111111111,1011111111111111,10111111111111111,101111... |
; A014030: Inverse of 21st cyclotomic polynomial.
; 1,1,1,0,0,0,0,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,-1,-1,-1,0,0,0,0,0,0
lpb $0
add $4,21
add $5,21
mod $0,$5
mov $2,... |
// Copyright (c) 2012-2016 The vhkdCoin Core vhkd
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' message. R... |
; A104085: Coefficient list length of Poincaré-like polynomials made from A047845, indices of odd nonprimes (group dimension equivalent plus one).
; Submitted by Jon Maiga
; 1,2,11,26,47,72,99,132,167,206,251,300,351,406,463,526,591,660,735,812,893,978,1065,1156,1249,1344,1443
mov $2,$0
trn $0,1
sub $2,$0
seq $0,16363... |
Route9Script:
call EnableAutoTextBoxDrawing
ld hl, Route9TrainerHeaders
ld de, Route9ScriptPointers
ld a, [wRoute9CurScript]
call ExecuteCurMapScriptInTable
ld [wRoute9CurScript], a
ret
Route9ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
Route9TextP... |
/** util.c
Utility functions and implementations of C standard library functions missing from SWOS.
*/
#include <errno.h>
#include "qalloc.h"
#pragma GCC diagnostic ignored "-Wparentheses"
static unsigned rand_seed;
#define IS_DIGIT(c) (c >= '0' && c <= '9')
#define IS_SPACE(c) (c == '\t' || c == '\n' || c... |
%include "src/long_mode/gdt32.asm"
[bits 16]
extern BeginPM
EnablePM:
cli ; 1. disable interrupts
lgdt [gdt_descriptor_32] ; 2. load the GDT descriptor
mov eax, cr0
or eax, 0x1 ; 3. set 32-bit mode bit in cr0
mov cr0, eax
jmp CODE_SEG_32:init_pm ; 4. far... |
include console.inc ; вывод в терминал
.data ; директива где объявляем переменные
x dd -8 ; переменная
s_4 dd 4
.code ; директива кода
Start: ; название блока
mov eax, x ; заносем 1 значение в eax
mul s_4
mul eax
outint eax ; выводим произведение
outstr " "
xor eax, eax
end Start ; ко... |
###############################################################################
# Copyright 2019 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... |
;
; int get_timer_counter();
;
_get_timer_counter
PUSH AF
LD A, (TIMER_COUNTER)
LD L, A
LD H, 0
POP AF
RET
|
; ===============================================================
; Feb 2014
; ===============================================================
;
; int ba_stack_empty(ba_stack_t *s)
;
; Return true (non-zero) if stack is empty.
;
; ===============================================================
SECTION code_adt_ba_st... |
; *********************************************************************************************
; *********************************************************************************************
;
; Name : core.asm
; Date : 10th January 2019
; Author : Paul Robson (paul@robsons.org.uk)
; Purpose : Core words for t... |
FuchsiaMeetingRoom_Object:
db $17 ; border block
db 2 ; warps
warp 4, 7, 6, -1
warp 5, 7, 6, -1
db 0 ; signs
db 3 ; objects
object SPRITE_WHITE_PLAYER, 4, 1, STAY, DOWN, 1 ; person
object SPRITE_WHITE_PLAYER, 0, 2, STAY, UP, 2 ; person
object SPRITE_WHITE_PLAYER, 10, 1, STAY, DOWN, 3 ; person
; warp-to
w... |
BITS 64
segment .text
global _start
_start:
mov rdx, 0x0fffffffffffffff ;9223372036854775807
mov rsi, 1
add rdx, rsi
jmp exit
exit:
mov rax, 60
mov rdi, 0
syscall
|
/* Money Farmer
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "Common/Cpp/Exceptions.h"
#include "CommonFramework/Tools/StatsTracking.h"
#include "CommonFramework/Notifications/ProgramNotifications.h"
#include "CommonFramework/InferenceInfra/InferenceRoutines.h"
#include "... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//AIPS-Lite Bridge
namespace Aips0Mpra{ ///<Master Privilege Register A
using Addr = Register::Address<0x40000000,0x88888888,0x00000000,unsigned>;
///Master privilege level
enum class Mpl7Val {
v0=0x00000000, ... |
#include "draw_shp_elements.h"
#include "get_shp_elements.h"
#include "cross_point_feature_creator.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
/************************************************************
* ... |
; Turns out there are more registers! We use these to have access to more memory.
; Let's use some of them
; Enable printing
mov ah, 0x0e
; Try to read directly from memory location
mov al, [the_secret]
int 0x10
; This fails because we are not reading from the 0x7c0 offset. We are reading from
; a memory lo... |
halt:
cli
hlt
jmp halt |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; convert 10 to a double precision float and store in xmm0
mov ecx, 10
cvtsi2sd xmm0, ecx
;TEST_BEGIN_RECORDING
; load 2.5 (in double precision float form)
lea rcx, [rsp-8]
mov DWORD [rcx], 0
mov DWORD [rcx+4], 0x40040000
divs... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 push %ebp
b:... |
// Copyright 2017 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
; A022397: Fibonacci sequence beginning 1, 27.
; 1,27,28,55,83,138,221,359,580,939,1519,2458,3977,6435,10412,16847,27259,44106,71365,115471,186836,302307,489143,791450,1280593,2072043,3352636,5424679,8777315,14201994,22979309,37181303,60160612,97341915,157502527,254844442,412346969,667191411,1079538380,1746729791,28262... |
; -------------------------------------------------------------------------
;
; Sega CD Base
; By Ralakimus 2021
;
; -------------------------------------------------------------------------
include "../include/maincpu.asm"
; -------------------------------------------------------------------------
; Header
; ----... |
###############################################################################
# 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... |
// Evaluates $(eval ...) substitutions
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include "substitution_python.h"
#include "substitution.h"
#include "launch_config.h"
#include <boost/python/exec.hpp>
#include <boost/python/extract.hpp>
#include <boost/python/dict.hpp>
#include <boost/python/make_function.hpp>... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2007, Intel Corporation
; All rights reserved. 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... |
; A017514: a(n) = (11*n + 10)^6.
; 1000000,85766121,1073741824,6321363049,24794911296,75418890625,192699928576,433626201009,885842380864,1677100110841,2985984000000,5053913144281,8198418170944,12827693806929,19456426971136,28722900390625,41407371740736,58451728309129,80980417183744,110322650964681,148035889000000,19593... |
; A190236: a(n) = [n*u + n*v] -[n*u] -[n*v], where u=1/2, v=(1+sqrt(5))/2, and []=floor.
; 1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0
mov $1,$0
sub $0,3
seq $1,19... |
GLOBAL cpuVendor
GLOBAL getCR3
GLOBAL setCR3
section .text
cpuVendor:
push rbp
mov rbp, rsp
push rbx
mov rax, 0
cpuid
mov [rdi], ebx
mov [rdi + 4], edx
mov [rdi + 8], ecx
mov byte [rdi+13], 0
mov rax, rdi
pop rbx
mov rsp, rbp
pop rbp
ret
getCR3:
mov rax, cr3
ret
setCR3:
mov cr3, rdi
ret
|
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
; "Ought to be enough" - Detect computer
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
; Pungas de Villa Martelli - http://pungas.space
;
; code: riq (http://retro.moe)
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... |
global _start
section .text
_start:
;Socket syscall
xor rax, rax
add rax, 41
xor rdi, rdi
add rdi, 2
xor rsi, rsi
inc rsi
xor rdx, rdx
syscall
; Save the sockfd in RDI Register
mov rdi, rax
;Creating the structure
xor rax, rax
push dword 0x01eea8c0
push word 0xd204
... |
; Macros for defining the test vectors.
;
; Copyright (C) 2012-2022 Patrik Rak (patrik@raxoft.cz)
;
; This source code is released under the MIT license, see included license.txt.
macro db8 b7,b6,b5,b4,b3,b2,b1,b0
db (b7<<7)|(b6<<6)|(b5<<5)|(b4<<4)|(b3<<3)|(b2<<2)|(b1<<1)|b0
... |
; A192908: Constant term in the reduction by (x^2 -> x + 1) of the polynomial p(n,x) defined below at Comments.
; 1,1,3,7,17,43,111,289,755,1975,5169,13531,35423,92737,242787,635623,1664081,4356619,11405775,29860705,78176339,204668311,535828593,1402817467,3672623807,9615053953,25172538051,65902560199,172535142545,45170... |
#include "imgui.h"
#define IMAPP_IMPL
#include "ImApp.h"
#include "ImGuizmo.h"
#include "ImSequencer.h"
#include <math.h>
#include <vector>
#include <algorithm>
#include "ImCurveEdit.h"
#include "imgui_internal.h"
//
//
// ImGuizmo example helper functions
//
//
static inline ImVec2 operator-(const I... |
;
; $Id: sdk56800.asm,v 1.9 2012/03/02 14:34:03 yaronm Exp $
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2020 Broadcom Inc. All rights reserved.
;
;
; This is the default program for the (20 port) BCM56800 S... |
;=======================================
;
; MSU-1 Enhanced Audio Patch
; Zelda no Densetsu - Kamigami no Triforce
; Modified for VT Randomizer
;
; Author: qwertymodo
;
; Track List:
;
; 1 - Title ~ Link to the Past
; 2 - Hyrule Field
; 3 - Time of Falling Rain
; 4 - The Silly Pink Rabbit
; 5 - Forest of Mystery
;... |
; A291501: The arithmetic function uhat(n,1,7).
; -41,-41,-41,-41,-41,-41,-41,-41,-45,-50,-55,-60,-65,-70,-75,-80,-85,-90,-95,-100,-105,-110,-115,-120,-125,-130,-135,-140,-145,-150,-155,-160,-165,-170,-175,-180,-185,-190,-195,-200,-205,-210,-215,-220,-225,-230,-235,-240,-245,-250,-255,-260,-265,-270,-275,-280,-285,-290... |
; Copyright (C) 2014 Arjun Sreedharan
; License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html
bits 32
section .text
;multiboot spec
align 4
dd 0x1BADB002 ;magic
dd 0x00 ;flags
dd - (0x1BADB002 + 0x00) ;checksum. m+f+c should be ... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
// Support for '\0' literal character
// Commodore 64 PRG executable file
.file [name="string-escapes-8.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpsta... |
; A190542: 7^n - 4^n.
; 0,3,33,279,2145,15783,113553,807159,5699265,40091463,281426673,1973132439,13824509985,96821901543,677954637393,4746487768119,33228635602305,232613334118023,1628344878433713,11398620307466199,79791166785984225,558541466036772903,3909803456396943633,27368676971336738679,191580949905589703745,13410... |
!cpu 65c02
*=$0801 ; Assembled code should start at $0801
; (where BASIC programs start)
; The real program starts at $0810 = 2064
!byte $0C,$08 ; $080C - pointer to next line of BASIC code
!byte $0A,$00 ; 2-byte line number ($000A = 10)
!byte $9E ; SYS BASIC token
!byte $20 ; [space]
!byte $32,$30,$... |
; A128012: a(n) = 3*A001399(n).
; 3,3,6,9,12,15,21,24,30,36,42,48,57,63,72,81,90,99,111,120,132,144,156,168,183,195,210,225,240,255,273,288,306,324,342,360,381,399,420,441,462,483,507,528,552,576,600,624,651,675,702,729,756,783,813,840,870
mov $1,$0
add $0,6
mul $1,$0
div $1,12
mul $1,3
add $1,3
|
; A114112: a(1)=1, a(2)=2; thereafter a(n) = n+1 if n odd, n-1 if n even.
; 1,2,4,3,6,5,8,7,10,9,12,11,14,13,16,15,18,17,20,19,22,21,24,23,26,25,28,27,30,29,32,31,34,33,36,35,38,37,40,39,42,41,44,43,46,45,48,47,50,49,52,51,54,53,56,55,58,57,60,59,62,61,64,63,66,65,68,67,70,69,72,71,74,73,76,75,78,77,80,79,82,81,84,83,8... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>get_kernel_syms(table) -> str
Invokes the syscall get_kernel_syms.
See 'man 2 get_kernel_syms' for more information.
Arguments:
table(kernel_sym*): table
Returns:
int
</%docstring>
<%page args="table=0"/>
... |
; A035273: One quarter of deca-factorial numbers.
; 1,14,336,11424,502656,27143424,1737179136,128551256064,10798305509376,1015040717881344,105564234659659776,12034322751201214464,1492256021148950593536,199962306833959379533824,28794572184090150652870656,4434364116349883200542081024,727235715081380844888901287936,126539... |
#include <time.h>
#include <sys/time.h>
unsigned get_time() {
struct timeval T;
gettimeofday(&T, NULL);
return (T.tv_sec * 1000000) + T.tv_usec;
}
|
// 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 "chrome/browser/ui/app_list/app_list_controller_delegate.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browse... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Blue Chip 9-pin Print Driver
FILE: bchip9ControlCodes.asm
AUTHOR: Dave Durran, 1 April 1990
ROUTINES:
Name Description
---- ---... |
; A142329: Primes congruent to 32 mod 45.
; Submitted by Simon Strandgaard
; 167,257,347,617,797,887,977,1427,1607,1697,1787,1877,2237,2417,2687,2777,2957,3137,3407,3677,3767,3947,4127,4217,4397,4937,5297,5387,5477,5657,5927,6197,6287,6737,6827,6917,7187,7457,7547,7727,7817,7907,8087,8447,8537,8627,8807,9257,9437,9887,... |
; A130246: Partial sums of A130245.
; Submitted by Jamie Morken(w4)
; 0,1,3,6,10,14,18,23,28,33,38,44,50,56,62,68,74,80,87,94,101,108,115,122,129,136,143,150,157,165,173,181,189,197,205,213,221,229,237,245,253,261,269,277,285,293,301,310,319,328,337,346,355,364,373,382,391,400,409,418,427,436,445,454,463,472,481,490,49... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1e667, %rsi
lea addresses_WT_ht+0x6b67, %rdi
nop
nop
and $26883, %rdx
mov $86, %rcx
rep movsb
sub $21619, %r11
lea addresses_WC_ht+0x92d2, %rbx
nop
nop
nop
nop
sub $33728, %rd... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
; DRAW OR SPRITE 2 BYTE DEFINITION ROTATED, ON LEFT BORDER
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
XLIB SP1_DRAW_OR2LB
LIB SP1_DRAW_OR2NR
XREF SP1RETSPRDRAW, SP1V_ROTTBL, SP1V_PIXELBUFFER
; following data segment copied into struct sp1_cs
ld hl,0
nop
ld de,0
call SP1_DRAW_OR2LB
... |
;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
proc printNumber
; enter – ax = number to print. di = position of number to print.
; exit – printing the numbers digit by digit (biggest to smallest)
doPush ax,bx,dx,si,di
mov... |
; addarr.asm
; By Taiwan Tech (NTUST) EE B10507004 Steven Yu
; 2017/11/14
; Copyright (C) 2017 , Steven Yu
.model small ; model small
.stack 100h ; stack 100h
.data
arr dw 1,2,3,4,5,6,7,8,9
.code ; code
main proc ; main code
mov ax,@data ... |
cpu 80C382
idl ; different opcode
halt ; different opcode than for 80C39
jni $ ; different opcode
dec @r0 ; new addressing mode for instruction
dec @r1 ; new addressing mode for instruction
djnz @r0,$ ; new addressing mode for instruction
djnz @r1,$ ; new addressing mode for instruction
; these ones are ... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t; cin >> t;
while(t--)
{
int n, m;
cin >> n >> m;
vector<string> s(n);
for(auto &it:s) cin >> it;
string ans = "";
for(int i = 0; i < m && ans == ""; i++)
{
for(int j = 0; j <... |
TITLE Color Text Window (TextWin.asm)
; Display a color window and write text inside.
; Last update: 8/20/01
INCLUDE Irvine16.inc
.data
message BYTE "Message in Window"
.code
main PROC
mov ax,@data
mov ds,ax
; Scroll a window.
mov ax,0600h ; scroll window
mov bh,00011110b ; yellow on... |
; A154958: Antidiagonal sums of number triangle A154957 regarded as a lower triangular infinite matrix.
; 1,1,2,1,2,1,3,2,4,2,4,2,5,3,6,3,6,3,7,4,8,4,8,4,9,5,10,5,10,5,11,6,12,6,12,6,13,7,14,7,14,7,15,8,16,8,16,8,17,9,18,9,18,9,19,10,20,10,20,10,21,11,22,11,22,11,23,12,24,12,24,12,25,13,26,13,26,13,27,14,28,14,28,14,29... |
%ifdef CONFIG
{
"RegData": {
"R15": "0x3"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
%macro cfmerge 0
; Get CF
sbb r14, r14
and r14, 1
; Merge in to results
shl r15, 1
or r15, r14
%endmacro
mov rdx, 0xe0000000
mov rax, 0xFFFFFFFF80000000
mov [rdx + 8 * 0], rax
mov [rdx + 8 * 1], rax
mo... |
; A204545: Symmetric matrix: f(i,j)=floor[(i+j+3)/4]-floor[(i+j+1)/4], by (constant) antidiagonals.
; 1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0
mov $1,1
lpb $0
s... |
; Test Jump instruction(branch delay slot not used) and Register File internal Forwarding
begin:
; test reg file internal forwaring
addi r1, r0, 1 ; F D E M W
addi r2, r0, 0 ; F D E M W
addi r3, r0, 4 ; F D E M W
add r4, r3, r1 ; F D E M W <- RAW Hazard here, since is reading r1, which is going to be ... |
/*
* Copyright (C) 2018 ETH Zurich and University of Bologna
*
* 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... |
TITLE 'ieee-loadr.asm: Test IEEE Load Rounded'
***********************************************************************
*
*Testcase IEEE LOAD ROUNDED
* Test case capability includes IEEE exceptions, trappable and
* otherwise. Test result, FPCR flags, and DXC saved for all tests.
* Load Rounded does not set the ... |
addi $15, $0, 256
mainLoop:
addi $4, $15, 0
add $5, $4, $0
trap 150 ; inits screen
add $10, $4, $0; $10 = n
addi $12, $5, -1; dec n by one and put it in y $12 = y
yLoop:
add $11, $0, $0;$11 = x
xLoop:
and $4, $11, $12 ; dont draw if y & x is zero
bne $4, $0, endOfDraw
add $4, $11, $0 ; x -> $4
add $5, $12, $0 ; y ... |
; Does tile modification for... the pyramid of power hole
; after Ganon slams into it in bat form?
Overworld_CreatePyramidHoleModified:
LDA.l InvertedMode : BNE +
JMP .originalBehaviour
+
.invertedBehavior
REP #$30
LDX.w #$0440
LDA.w #$0E39
JSL Overworld_DrawPersistentMap16
LDX.w #$04BC
LDA.w #$0E3A
JSL... |
extern printChar
public displayHEX
public display2HEX
#include "defs.inc"
section CODE_2
; On entry:
; a = Hex value to be displayed
; bc = Character screen location b=Ypos, c=XPos
;
; All registers are preserved
... |
; A045995: Rows of Fibonacci-Pascal triangle.
; 1,1,1,1,1,1,1,2,2,1,1,3,8,3,1,1,5,55,55,5,1,1,8,610,6765,610,8,1,1,13,10946,9227465,9227465,10946,13,1,1,21,317811,225851433717,190392490709135,225851433717,317811,21,1,1,34,14930352,160500643816367088,96151855463018422468774568,96151855463018422468774568,1605006438163670... |
; VideoSprite.asm
; NES
;------------------------------------------------------------------
!zone EnableSprite
EnableSprite
rts
;------------------------------------------------------------------
!zone DisableSprite
DisableSprite
rts
;------------------------------------------------------------------
!zone Set... |
; A152717: Triangle T(n,k) read by rows: T(n,k) = 5^min(k, n-k) = 5^A004197(n,k).
; 1,1,1,1,5,1,1,5,5,1,1,5,25,5,1,1,5,25,25,5,1,1,5,25,125,25,5,1,1,5,25,125,125,25,5,1,1,5,25,125,625,125,25,5,1,1,5,25,125,625,625,125,25,5,1,1,5,25,125,625,3125,625,125,25,5,1
seq $0,157454 ; Triangle read by rows: T(n, m) = min(2*m - ... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 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
... |
; pasmo --tapbas daa.asm daa.tap
; N C H Loop to be made
;
; 0 0 0 00
; 0 0 1 10
; 0 1 0 01
; 0 1 1 11
; 1 0 0 02
; 1 0 1 12
; 1 1 0 11
; 1 1 1 13
;
; F H x x N C
ORG 50000
LD A,2 ; upper screen
CALL 5633 ; open channel
LD ... |
SeafoamIslands5Script:
call EnableAutoTextBoxDrawing
ld a, [wSeafoamIslands5CurScript]
ld hl, SeafoamIslands5ScriptPointers
jp CallFunctionInTable
SeafoamIslands5Script_467a5:
xor a
ld [wSeafoamIslands5CurScript], a
ld [wJoyIgnore], a
ret
SeafoamIslands5ScriptPointers:
dw SeafoamIslands5Script0
dw SeafoamIs... |
; Full version
; 1. K2 = y - alpha * x
; 2. z = z + beta * K2
; 3. y = K2 - beta * z
; 4. x = x + alpha * y
; SunrollWork holds Alpha intermidate results
; 1. K2 = y - alpha * x
; 2. z = z + beta * K2
; 3. y = K2 - beta * z
; 4. x = x + alpha * y
;.... or
; 2. z = z + (beta * (y - alpha * x))
; ... |
_rm: formato del fichero elf32-i386
Desensamblado de la sección .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... |
; This table translates key presses into ascii codes.
; Also used by 'GetKey' and 'LookupKey'. An effort has been made for
; this key translation table to emulate a PC keyboard with the 'CTRL' key
SECTION rodata_clib
PUBLIC in_keytranstbl
.in_keytranstbl
; Each table 72 bytes
;Unshifted
defb '7', '6', '5', '4', ... |
format ELF
macro push [arg] { push arg }
macro pop [arg] { pop arg }
macro mbp
{
xchg bx, bx
}
; >>>> 16bit code
section '.text16' executable
Use16
public start
start:
org 0x7C00
mbp
cli ; disabling interrupts
mov ax, cs ; segment registers' init
mov ds, ax
mov es, ax
mov ss, ax... |
@r0 = usable, but must become offset of item ROM data
@r3 = Offset Character number in Character data
@r4 = Offset of unit data in memory
@r5 = Unit's held weapon/item, in memory
.thumb
mov r1,#0xFF @ Original routine here
and r1,r5
lsl r0,r1,#0x3
add r0,r0,r1
lsl r0,r0,#0x2
add r0,r0,r3 @ Now r0 has the... |
dnl Power9 mpn_addmul_2.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2018 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Publi... |
; A028157: Expansion of 1/((1-4x)(1-8x)(1-9x)(1-12x)).
; Submitted by Christian Krause
; 1,33,697,12033,185353,2657361,36306649,479622561,6184444585,78342273009,979414153081,12123907404609,148962749140297,1819935176767377,22139457629549593,268445978800100577,3246867076469210089,39196546477890050865,47250186050531586578... |
; A029014: Expansion of 1/((1-x)(1-x^2)(1-x^5)(1-x^9)).
; 1,1,2,2,3,4,5,6,7,9,11,13,15,17,20,23,26,29,33,37,42,46,51,56,62,68,74,81,88,96,104,112,121,130,140,150,161,172,184,196,209,222,236,250,265,281,297,314,331,349,368,387,407,427,449,471,494,517,541,566,592,618,645,673,702,732,762,793,825,858,892,926,962,998,1036,1... |
; Test case:
ld hl, (10)
ld hl, 10
ld (var1), a
loop:
jr loop
var1:
db 0
|
SECTION code_stdio
PUBLIC __stdio_scanf_ln
__stdio_scanf_ln:
; %ln converter called from vfscanf()
;
; enter : hl = long *p
;
; exit : carry reset
;
; uses : all except ix
ld a,h
or l
ret z ; if assignment suppressed
exx
push de
exx
pop de ... |
/*
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
* 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... |
; A159964: a(n) = 2^n*(1-n).
; 1,0,-4,-16,-48,-128,-320,-768,-1792,-4096,-9216,-20480,-45056,-98304,-212992,-458752,-983040,-2097152,-4456448,-9437184,-19922944,-41943040,-88080384,-184549376,-385875968,-805306368,-1677721600,-3489660928
mov $1,2
pow $1,$0
mov $2,1
sub $2,$0
mul $1,$2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.