text stringlengths 1 1.05M |
|---|
updateTimer:: ; increment the timer
ld a, 1
ld hl, TIMER_FRAME_COUNTER_REGISTER
dec [hl]
jr nz, .noInc ; 1 of 3 frames
ld a, 2
ld [hl], a
.noInc:
ld hl, TIMER_REGISTER
add [hl]
daa
ld [hli], a
ld a, 0
adc [hl]
daa
cp $60
scf
ccf
jr nz, .displaySecs
xor a
scf
.displaySecs:
ld [hli], a
ld a, 0
adc [... |
; A131377: Starting with 1, the sequence a(n) changes from 1 to 0 or back when the next number n is a prime.
; 1,1,0,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0
cal $0... |
/*
//@HEADER
// ************************************************************************
//
// rom_create_default_galerkin_problem.hpp
// Pressio
// Copyright 2019
// National Technology & Engineering Solutions of Sandia, LLC (NTESS)
//
// Under the terms of Contra... |
; A255223: Number of (n+2)X(3+2) 0..1 arrays with no 3x3 subblock diagonal sum 0 and no antidiagonal sum 0 and no row sum 2 and no column sum 2
; Submitted by Jamie Morken(w2)
; 31,37,46,58,76,103,142,199,283,406,586,850,1237,1804,2635,3853,5638,8254,12088,17707,25942,38011,55699,81622,119614,175294,256897,376492,55176... |
%include 'felipos.inc'
main:
mov ax, 1
call os_serial_port_enable
mov si, help_msg
call os_print_string
.loop:
call os_check_for_key
cmp al, 27 ; ESCAPE
je .exit
call os_get_via_serial
test ah, 10000000b
jnz .error
or al, al
jz .loop
mov si, output
mov [si]... |
#pragma once
#include <SFML/Graphics.hpp>
#include <cmath>
#include "ant.hh"
#include "utils.hh"
#include <iostream>
#include <cstring>
const int WIDTH = 800;
const int HEIGHT = 600;
int main()
{
int x = 0;
Ant test(urand(0,WIDTH), urand(0,HEIGHT), 1);
// Create the main window
sf::RenderWindow window(sf::VideoMo... |
; A070997: a(n) = 8*a(n-1) - a(n-2), a(0)=1, a(-1)=1.
; 1,7,55,433,3409,26839,211303,1663585,13097377,103115431,811826071,6391493137,50320119025,396169459063,3119035553479,24556114968769,193329884196673,1522082958604615,11983333784640247
mov $1,1
mov $3,1
mov $2,$0
lpb $2,1
mov $0,6
lpb $0,1
add $4,$3
sub ... |
; Generated at 4/14/2019 1:59:47 AM
DebugStub_AsmBreakEIP dd 0
DebugStub_AsmOrigByte dd 0
DebugStub_DoAsmBreak:
mov ESI, dword [DebugStub_CallerESP]
mov EAX, dword [DebugStub_AsmBreakEIP]
mov dword [ESI - 12], EAX
Call DebugStub_ClearAsmBreak
Call DebugStub_Break
DebugStub_DoAsmBreak_Exit:
mov dword [INTs_LastKnown... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This file is auto-generated.
#include "sw/device/lib/dif/autogen/dif_pinmux_autogen.h"
#include "gtest/gtest.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/de... |
db "BLOSSOM@" ; species name
db "During times of"
next "strong sunlight,"
next "its bud blooms,"
page "its petals fully"
next "open, and it will"
next "be very active.@"
|
#include <sstream>
#include "units/ast.h"
using namespace AST;
using namespace AST::Statements;
Statement::Statement(Lexical::Token *token) {
this->token = token;
}
Statement::~Statement() {
}
Lexical::Token *Statement::getToken() {
return this->token;
}
Generic::Generic(Lexical::Token *token) :
Statement(to... |
; generic text drawing routines
; draw a single font tile to a framebuffer
; inputs:
; r0: tile number
; r1: X coordinate
; r2: Y coordinate
; r3: foreground color
; r4: background color
; r5: pointer to font graphics
; r6: font width
; r7: font height
; r8: pointer to framebuffer
; r9: framebuffer width (pixels)
; ou... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2013 MetaScale SAS
//
// Distributed under the Boost... |
/*
Copyright (c) 2018, Ford Motor Company
All rights reserved.
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 fo... |
; A183856: n+floor(sqrt(3n-2)); complement of A143975.
; 2,4,5,7,8,10,11,12,14,15,16,17,19,20,21,22,24,25,26,27,28,30,31,32,33,34,35,37,38,39,40,41,42,44,45,46,47,48,49,50,52,53,54,55,56,57,58,59,61,62,63,64,65,66,67,68,70,71,72,73,74,75,76,77,78,80,81,82,83,84,85,86,87,88,89,91,92,93,94,95,96,97,98,99,100,102,103,104,... |
; A313506: Coordination sequence Gal.5.114.5 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.
; Submitted by Jon Maiga
; 1,5,10,14,18,23,28,32,36,41,46,51,56,60,64,69,74,78,82,87,92,97,102,106,110,115,120,124,128,133,138,143,148,152,156... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: toshiba 24-pin printer driver
FILE: toshiba24Manager.asm
AUTHOR: Jim DeFrisco, 26 Feb 1990
REVISION HISTORY:
Name Date Description
--... |
SECTION code_fp_dai32
PUBLIC ___dai32_xfdiv
EXTERN xfdiv
defc ___dai32_xfdiv = xfdiv
|
; 3-ex1-2.asm
; display 3 rows of alphabet, each 4 alphaet, from A-L
.MODEL SMALL
.STACK 100
.DATA
CHAR DB 'A'
NL DB 10, 13, "$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV CX, 3
L1:
MOV BX, CX
; Display 3 @@@
MOV CX, 4
L2:
MOV AH, 02H
... |
; A157510: a(n) = 1000*n + 20.
; 1020,2020,3020,4020,5020,6020,7020,8020,9020,10020,11020,12020,13020,14020,15020,16020,17020,18020,19020,20020,21020,22020,23020,24020,25020,26020,27020,28020,29020,30020,31020,32020,33020,34020,35020,36020,37020,38020,39020,40020,41020,42020,43020,44020,45020,46020,47020,48020,49020,50... |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
# Attention: Mars, Settings -> Memory Configuration -> Compact, Data at address 0
# lui ori subu addu add sub nor or and slt stlu addi
# sll srl sra sllv srlv srav
# sw sh sb
# lw lh lhu lb lbu
lui $3, 0x9876 # $3=0x98760000 # 3c039876
ori $2, $0, 0x1234 # $2=0x1234 ... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/StringView.h>
#include <Kernel/Debug.h>
#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/Net/IPv4Socket.h>
#include <Kernel/Net/LocalSocket.h>
#include <Kernel/Net/NetworkingM... |
;
; MSX specific routines
; by Stefano Bodrato, December 2007
;
; int msx_readpsg(int regno);
;
; Read the specified PSG register
;
;
; $Id: get_psg.asm,v 1.4 2016-07-14 17:44:17 pauloscustodio Exp $
;
SECTION code_clib
PUBLIC get_psg
PUBLIC _get_psg
;;EXTERN msxbios
IF FORmsx
INCLUDE "msx.... |
; A177747: Convolution of A008805 (triangular numbers repeated) with itself.
; 1,2,7,12,27,42,77,112,182,252,378,504,714,924,1254,1584,2079,2574,3289,4004,5005,6006,7371,8736,10556,12376,14756,17136,20196,23256,27132,31008,35853,40698,46683,52668,59983,67298,76153,85008,95634,106260,118910,131560,146510,161460,179010,1... |
; A176521: Decimal expansion of (18+3*sqrt(38))/4.
; Submitted by Jon Maiga
; 9,1,2,3,3,1,0,5,0,2,2,2,6,7,3,2,3,3,7,6,8,7,6,4,4,2,8,6,0,9,0,6,8,3,1,6,8,9,2,6,7,1,8,0,1,7,5,8,3,4,3,0,9,0,8,6,5,5,9,2,9,0,5,4,3,4,3,7,9,9,7,3,7,6,9,7,7,4,8,1,5,9,7,2,5,0,4,7,3,4,9,3,9,9,1,7,4,9,5,8
mov $2,1
mov $3,$0
mul $3,4
mov $5,2
lpb ... |
; A113022: a(n) = size of union of 2^k (mod 10^n), 0 < k <= 5^n.
; 4,21,102,503,2504,12505,62506,312507,1562508,7812509,39062510,195312511,976562512,4882812513,24414062514,122070312515,610351562516,3051757812517,15258789062518,76293945312519,381469726562520,1907348632812521,9536743164062522,47683715820312523
mov $2,1
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xe5cc, %r8
nop
nop
inc %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm7
vmovups %ymm7, (%r8)
sub $41597, %rbx
lea addresses_normal_ht+0xdecc, %rsi
lea addresses_WT_ht+0x3fcc... |
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Get file size (long) associated to current directory entry
;
; $Id: dir_get_entry_size.asm,v 1.3 2012/03/08 07:16:46 stefano Exp $
;
INCLUDE "flos.def"
XLIB dir_get_entry_size
dir_get_entry_size:
; push iy
call kjt_dir_list_g... |
LDA 9050
MOV C,A
MVI D,00
MVI A,00
LOOP: ADI 01
DAA
JNC SKIP
INR D
SKIP: DCR C
JNZ LOOP
MOV L,A
MOV H,D
SHLD 9051
HLT
|
EXPORT DRIVE
EXPORT TRACK
EXPORT SIDE
EXPORT READTRACK
EXPORT SEEKTRACK
EXPORT CLEARFORMATINFO
EXPORT ANALYZETRACK
EXPORT DUMPSECTOR
EXPORT RESTORE_DISK
EXPORT READ_ADDRMARK
EXPORT ADDRMARKADDR
EXPORT ADDRMARKUSED
EXPORT READSIZE
EXPORT RAWREADCHE... |
; A022381: Fibonacci sequence beginning 3, 15.
; 3,15,18,33,51,84,135,219,354,573,927,1500,2427,3927,6354,10281,16635,26916,43551,70467,114018,184485,298503,482988,781491,1264479,2045970,3310449,5356419,8666868,14023287,22690155,36713442,59403597,96117039,155520636,251637675,407158311,658795986,1065954297,1724750283,27... |
* boot sector for Atari
section boot
xdef fd_bsect
xref.l boot_base
xref fd_slct
xref fd_dslct
xref fd_seek
xref fd_rsec
include 'dev8_keys_68000'
include 'dev8_mac_creg'
fd_bsect
bra.s fdb_start
dc.b ' '
dc.b $00,$02
dc.b $02
dc.b $01,$00
dc.b $02
dc.b $70,$00
dc.b $a0,$05
dc.b $f9
dc.... |
LJMP START
ORG 100H
START:
MOV R3, #10
LOOP_A:
CPL P1.7
MOV A, #2
CALL DELAY_100MS
DEC R3
CJNE R3, #0, LOOP_A
LOOP_B:
SJMP LOOP_B
#33
|
#include <mpl_traj_solver/traj_solver.h>
#include "opencv_drawing.hpp"
int main(int argc, char **argv) {
// Build a empty map
const Vec2f origin(-1, -1);
const Vec2i dim(800, 400);
const double res = 0.01;
std::vector<signed char> map(dim(0) * dim(1), 0);
std::shared_ptr<MPL::OccMapUtil> map_util;
map_... |
// C:\diabpsx\SOURCE\PREMISS.CPP
#include "types.h"
// address: 0x80157C94
// line start: 97
// line end: 130
void InitMissiles__Fv() {
// register: 17
register int i;
// register: 5
register int j;
// register: 16
register int mx;
}
// address: 0x8014B06C
// line start: 97
// line end: 130
void InitMissi... |
; A071538: Number of twin prime pairs (p, p+2) with p <= n.
; 0,0,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8
mov $3,$0
mov $6,$0
lpb $3
mov $0,$6
sub $3,1
sub $... |
; A010584: Decimal expansion of cube root of 12.
; Submitted by Christian Krause
; 2,2,8,9,4,2,8,4,8,5,1,0,6,6,6,3,7,3,5,6,1,6,0,8,4,4,2,3,8,7,9,3,5,4,0,1,7,8,3,1,8,1,3,8,4,1,5,7,5,8,6,2,1,4,4,1,9,8,1,0,4,3,4,8,1,3,1,3,4,8,5,9,8,0,4,8,4,2,8,3,0,0,8,7,5,2,1,6,3,2,2,0,6,1,8,3,4,0,9,1
mov $3,$0
mul $3,3
lpb $3
add $2,1... |
; A187891: a(0)=0, a(1)=5, a(n)=a(n-1)+a(n-2)-1.
; 0,5,4,8,11,18,28,45,72,116,187,302,488,789,1276,2064,3339,5402,8740,14141,22880,37020,59899,96918,156816,253733,410548,664280,1074827,1739106,2813932,4553037,7366968,11920004,19286971,31206974,50493944,81700917
mov $3,4
lpb $0
sub $0,1
mov $2,$1
mov $1,$3
add ... |
; A220888: a(n) = F(n+7) - (1/2)*(n^3+2*n^2+13*n+26) where F(i) is a Fibonacci number (A000045).
; 0,0,0,0,2,11,37,98,225,470,919,1713,3082,5400,9274,15688,26236,43499,71655,117466,191875,312590,508265,825265,1338612,2169696,3514932,5692128,9215510,14917115,24143209,39072098,63228357,102314870,165559099,267891393,43346... |
SECTION code_fp_dai32
PUBLIC l_f32_swap
; Entry: dehl = right hand operand
; Stack: defw return address
; defw left hand LSW
; defw left hand MSW
l_f32_swap:
IF __CPU_INTEL__ || CPU_GBZ80__
ld c,l ;right lsw
ld b,h
ld hl,sp+2 ;points to left hand lsw
ld a,(hl)
ld (hl),c
ld c,a
i... |
;
; ZX Spectrum OPUS DISCOVERY specific routines
;
; Stefano Bodrato - Jun. 2006
;
; int opus_getblocks (int drive);
;
; $Id: opus_getblocks.asm,v 1.3 2015/01/19 01:33:10 pauloscustodio Exp $
;
PUBLIC opus_getblocks
EXTERN opus_rommap
EXTERN P_DEVICE
opus_getblocks:
ld ix,2
add ix,sp
ld hl,-1
... |
#include "Z80Cpu.h"
#include <iostream>
#include <iomanip>
using namespace std;
using w=Z80Word;
using b=Z80Byte;
static void printFormattedNamedBoolValue(std::string name, bool value) { // NOLINT
using namespace std;
const char separator = ' ';
const int nameWidth = 1;
cout << left << name;
co... |
ViridianSchoolHouse_h:
db HOUSE ; tileset
db VIRIDIAN_SCHOOL_HOUSE_HEIGHT, VIRIDIAN_SCHOOL_HOUSE_WIDTH ; dimensions (y, x)
dw ViridianSchoolHouse_Blocks ; blocks
dw ViridianSchoolHouse_TextPointers ; texts
dw ViridianSchoolHouse_Script ; scripts
db 0 ; connections
dw ViridianSchoolHouse_Object ; objects
|
//------------------------------------------------------------------------------
// gameapplication.cc
// (C) 2007 Radon Labs GmbH
// (C) 2013-2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "application/stdneb.h"
#include "appg... |
// Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2021-2022 The DECENOMY Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "random.h"
#include "utilstrencodings.h"
#include "test/test_pivx... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
%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 0x6D, 0x69, 0x66, 0x31 ; major_brand(32) ('mif1')
db 0x00, 0x00, 0x00, 0x00 ; minor_version(32)
db 0x6D, 0x69, 0x66, 0x31 ;... |
;
;
; ANSI Video handling for the PC6001
;
;
; Clean a text line
;
; Stefano Bodrato - Jan 2013
;
;
; in: A = text row number
;
;
; $Id: f_ansi_dline.asm,v 1.2 2015/01/19 01:33:19 pauloscustodio Exp $
;
PUBLIC ansi_del_line
;XREF vram_addr
.ansi_del_line
ld l,1
inc a
ld h,a
CALL 11CDh ; L2A - convert ... |
//
// Copyright 2020 Autodesk
//
// 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 ... |
dnl AMD K6-2 mpn_and_n, mpn_andn_n, mpn_nand_n, mpn_ior_n, mpn_iorn_n,
dnl mpn_nior_n, mpn_xor_n, mpn_xnor_n -- mpn bitwise logical operations.
dnl Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can ... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
/* Name: usbdrvasm.asm
* Project: AVR USB driver
* Author: Christian Starkjohann
* Creation Date: 2006-03-01
* Tabsize: 4
* Copyright: (c) 2006 by OBJECTIVE DEVELOPMENT Software GmbH
* License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt)
* This Revision: $Id$
*/
/*
General Description:
... |
HallOfFamePC:
farcall AnimateHallOfFame
call ClearScreen
ld c, 100
call DelayFrames
call DisableLCD
ld hl, vFont
ld bc, ($80 tiles) / 2
call ZeroMemory
ld hl, vChars2 tile $60
ld bc, ($20 tiles) / 2
call ZeroMemory
ld hl, vChars2 tile $7e
ld bc, 1 tiles
ld a, $ff ; solid black
call FillMemory
hlcoord 0,... |
/*
* libjingle
* Copyright 2004--2005, Google Inc.
*
* 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 and... |
lda {m2}
clc
adc {m3}+2
sta {m1}
lda {m2}+1
adc {m3}+3
sta {m1}+1
|
; A124820: Expansion of (1-x)/(1-4*x+3*x^2-x^3).
; 1,3,9,28,88,277,872,2745,8641,27201,85626,269542,848491,2670964,8407925,26467299,83316385,262271568,825604416,2598919345,8181135700,25753389181,81069068969,255197244033,803335158406,2528817970494,7960463650791,25058735850088,78882370418473,248313737774419,7816665756923... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: Jedi
MODULE: startup
FILE: jstartup.asm
AUTHOR: Steve Yegge
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey long ago initial revisio... |
; A087273: Largest prime factor of 3*prime(n) + 1.
; 7,5,2,11,17,5,13,29,7,11,47,7,31,13,71,5,89,23,101,107,11,17,5,67,73,19,31,23,41,17,191,197,103,19,7,227,59,7,251,13,269,17,41,29,37,23,317,67,31,43,7,359,181,29,193,79,101,37,13,211,17,11,461,467,47,17,71,23,521,131,53,11,29,7,569,23,73,149,43,307,37,79,647,13,659,1... |
#ifndef STRUCTURES_ARRAY_TCC_
#define STRUCTURES_ARRAY_TCC_
#include <cstdlib>
#include <new>
template <typename T>
Array<T>::Array() { }
template <typename T>
Array<T>::~Array()
{
clear();
free(_raw);
delete[] _freeStack;
}
template <typename T>
void Array<T>::init(int size)
{
_size = size;
// Create the _ar... |
; A107857: a(n) = floor[(phi + n mod 2)*a(n-1)], a(1)=1.
; Submitted by Jamie Morken(s1)
; 1,1,2,3,7,11,28,45,117,189,494,799,2091,3383,8856,14329,37513,60697,158906,257115,673135,1089155,2851444,4613733,12078909,19544085,51167078,82790071,216747219,350704367,918155952,1485607537,3889371025
mul $0,3
div $0,2
mov $2,1
... |
MODULE _vfscanf
SECTION code_clib
PUBLIC _vfscanf
EXTERN asm_scanf
; sdcc version
;void vfscanf(FILE *fp, char *fmt,va_list ap)
_vfscanf:
pop af
pop hl ;fp
pop de ;fmt
pop bc ;ap
push bc
push de
push hl
push af
push ix ;save callers
push hl ;fp
ld hl,0 ;sdcc mode
push hl
push de ;fmt
p... |
.386
assume cs:code,ds:data
data segment use16
multiplicand db 7 dup('$') ;存储被乘数
multiplier db 7 dup('$') ;存储乘数
result dd 0 ;存储乘积
product db 12 dup(0),'$' ;存储乘积十进制字符串形式
productHex db 8 dup(0),'h','$' ;存储乘积十六进制字符串形式
productBin db 39 dup(0),'B','$' ;存储乘积二进制字符串形式
data ends
code segment use16
inputAndNewli... |
#include "_pgm.h"
namespace autowig
{
}
#if defined(_MSC_VER)
#if (_MSC_VER == 1900)
namespace boost
{
template <> class ::statiskit::pgm::DirectedGraph const volatile * get_pointer<class ::statiskit::pgm::DirectedGraph const volatile >(class ::statiskit::pgm::DirectedGraph const volatile *c) { return c; }... |
; A047345: Numbers that are congruent to {0, 4} mod 7.
; 0,4,7,11,14,18,21,25,28,32,35,39,42,46,49,53,56,60,63,67,70,74,77,81,84,88,91,95,98,102,105,109,112,116,119,123,126,130,133,137,140,144,147,151,154,158,161,165,168,172,175,179,182,186,189,193
mul $0,7
mov $1,1
add $1,$0
div $1,2
|
user/_mkdir: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "kernel/stat.h"
#include "user/user.h"
int
main(int argc, char *argv[])
{
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6: ec... |
plz @clob_z
ply @clob_y
plx @clob_x
pla @clob_a
rti |
// 1's COMPLEMENT OF AN 8-BIT NUMBER
// The number to be complemented is stored in C050
// Answer is stored in C051
LDA C050
CMA
STA C051
HLT
// EXAMPLE-> C050=96
// Answer-> C051=69
# ORG C050
# DB 96H
|
; DRAW OR SPRITE 2 BYTE DEFINITION ROTATED, ON RIGHT BORDER
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "clib_target_cfg.asm"
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _SP1_DRAW_OR2RB
EXTERN _SP1_DRAW_OR2LB
EXTERN SP1RETSPRDRAW
; following data segment copied into struct sp1_cs
... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactiondescdialog.h"
#include "ui_transactiondescdialog.h"
#include "transactiontablemodel.h"
#include "styleS... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2009 - 2018, 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 distributi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x14ff6, %r10
nop
nop
nop
nop
nop
inc %r15
mov (%r10), %ebx
nop
nop
nop
nop
xor $9805, %r12
lea addresses_WT_ht+0x3406, %r10
nop
nop
nop
nop
and $17204, %rbx
vmovups (%r10), %... |
; A168672: Numbers that are congruent to {2,13} mod 17.
; 2,13,19,30,36,47,53,64,70,81,87,98,104,115,121,132,138,149,155,166,172,183,189,200,206,217,223,234,240,251,257,268,274,285,291,302,308,319,325,336,342,353,359,370,376,387,393,404,410,421,427,438,444,455,461,472,478,489,495,506,512,523,529,540,546,557,563,574,580... |
//===--- InaccurateEraseCheck.cpp - clang-tidy-----------------------------===//
//
// 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
//
//===---------------------------... |
#include <bits/stdc++.h>
using namespace std;
#define TemplateVersion "3.2.0"
// Useful Marcos
//====================START=====================
// Compile use C++11 and above
#ifdef LOCAL
#define debug(args...) \
{ \
string _s = #args; ... |
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="name, oflag, vararg"/>
<%docstring>
Invokes the syscall mq_open. See 'man 2 mq_open' for more information.
Arguments:
name(char): name
oflag(int): oflag
vararg(int): vararg
</%docstring>
${syscall('SYS_mq_open', name, oflag, v... |
SFX_Muted_Snare3_3_Ch1:
unknownnoise0x20 0, 113, 34
endchannel
|
; A017617: a(n) = 12*n + 8.
; 8,20,32,44,56,68,80,92,104,116,128,140,152,164,176,188,200,212,224,236,248,260,272,284,296,308,320,332,344,356,368,380,392,404,416,428,440,452,464,476,488,500,512,524,536,548,560,572,584,596,608,620,632,644,656,668,680,692,704,716,728,740,752,764,776,788,800,812,824,836,848,860,872,884,896... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rdx
// Store
lea addresses_WT+0x12985, %r14
nop
nop
nop
nop
add $36886, %r11
mov $0x5152535455565758, %rdx
movq %rdx, %xmm7
vmovups %ymm7, (%r14)
nop
nop
add %rdx,... |
.size 8000
.text@50
jp ltimaint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
xor a, a
ldff(0f), a
ldff(ff), a
ld a, f0
ldff(05), a
ldff(06), a
ld a, 04
ldff(ff), a
ld a, 05
ldff(07), a
ei
nop
halt
.text@1000
ltimaint:
nop
.text@1030
ld c, 0f
ld a, 10
ldff(05), a
nop
ldff a, (c)
.text@... |
org 0x8600 ;início do bootsector
call clearscreen
mov ax, 0
mov si, ax
mov di, ax
mov ss, ax
mov ds, ax
start:
call readOption
pop ax
mov ah, 0x0E
int 10h
jmp exit
clearscreen:
mov ah, 00h ; Apaga o que estiver escrito na tela anteriormente
mov al, 0... |
SECTION code_driver
PUBLIC _disk_write
EXTERN asm_disk_write
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called from diskio.h
;
; DRESULT disk_write (
; BYTE pdrv, /* Physical drive number to identify the driv... |
; A072918: a(n) = p(n) - sigma(n), where p(n) is the least prime greater than sigma(n).
; 1,2,1,4,1,1,3,2,4,1,1,1,3,5,5,6,1,2,3,1,5,1,5,1,6,1,1,3,1,1,5,4,5,5,5,6,3,1,3,7,1,1,3,5,1,1,5,3,2,4,1,3,5,7,1,7,3,7,1,5,5,1,3,4,5,5,3,1,1,5,1,2,5,13,3,9,1,5,3,5,6,1,5,3,1,5,7,1,7,5,1,5,3,5,7,5,3,2,1,6
seq $0,203 ; a(n) = sigma(n)... |
; A290257: a(n) is the size of the Durfee square of the integer partition having viabin number n.
; 1,1,1,1,1,2,1,1,1,2,1,2,2,2,1,1,1,2,1,2,2,2,1,2,2,2,2,3,2,2,1,1,1,2,1,2,2,2,1,2,2,2,2,3,2,2,1,2,2,2,2,3,2,2,2,3,3,3,2,3,2,2,1,1,1,2,1,2,2,2,1,2,2,2,2,3,2,2,1,2,2,2,2,3,2,2,2,3,3,3,2,3,2,2,1,2,2,2,2,3
lpb $0
mov $2,$0
... |
db 0 ; species ID placeholder
db 70, 110, 180, 50, 60, 60
; hp atk def spd sat sdf
db STEEL, ROCK ; type
db 45 ; catch rate
db 205 ; base exp
db NO_ITEM, HARD_STONE ; items
db GENDER_F50 ; gender ratio
db 35 ; step cycles to hatch
INCBIN "gfx/pokemon/aggron/front.dimensions"
db GROWTH_SLOW ; gro... |
; A081585: Third row of Pascal-(1,3,1) array A081578.
; 1,9,33,73,129,201,289,393,513,649,801,969,1153,1353,1569,1801,2049,2313,2593,2889,3201,3529,3873,4233,4609,5001,5409,5833,6273,6729,7201,7689,8193,8713,9249,9801,10369,10953,11553,12169,12801,13449,14113,14793,15489,16201,16929,17673,18433,19209,20001,20809,21633,... |
; A183156: The number T(n) of isometries of all subspaces of the finite metric space {1,2,...,n} (as a subspace of the reals with the Euclidean metric).
; Submitted by Jon Maiga
; 1,2,7,22,59,142,319,686,1435,2950,5999,12118,24379,48926,98047,196318,392891,786070,1572463,3145286,6290971,12582382,25165247,50331022,10066... |
Music_IntroBattle_Ch1::
tempo 98
volume 7, 7
duty 3
vibrato 6, 3, 4
toggleperfectpitch
notetype 12, 11, 1
rest 8
octave 2
A_ 2
A_ 2
notetype 12, 11, 4
octave 3
D_ 4
notetype 12, 11, 1
octave 2
A_ 2
A_ 2
notetype 12, 11, 4
octave 3
D# 4
notetype 12, 11, 1
octave 2
A_ 2
A_ 2
notetype 12, 11, 4
o... |
/**
******************************************************************************
* @file startup_stm32f10x_hd.s
* @author MCD Application Team
* @version V3.3.0
* @date 04/16/2010
* @brief STM32F10x High Density Devices vector table for RIDE7 toolchain.
* This module performs:
* ... |
/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... |
.data
### Provided stack data ###
stack_beg: .word 0 : 100
stack_end:
### Provided queue data ###
sequence_queue: .word 0 : 10
# Ascii messages ###
user_input_prompt: .asciiz "Enter the pattern that you just watched \n"
lose_message: .asciiz "Sorry, you lost. Try again sometime! \n"
win_message: "Cong... |
# Dan Ellard
# hello.asm-- An Ant-32 "Hello World" program.
# g0 - holds the address of the string
# g1 - holds the address of the end of the loop
# g2 - holds the address of the start of the loop
# g3 - holds the next character to be printed.
lc g0, $str_data # load the address of the string into g... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x16a0b, %r9
nop
dec %rax
mov $0x6162636465666768, %rcx
movq %rcx, (%r9)
nop
nop
nop
nop
nop
dec %rbp
lea addresses_normal_ht+0xe4f3, %rsi
lea addresses_A_ht+0x9b0b, %rdi
no... |
;------------------------------------------------------------------------------
;
; 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... |
SECTION "Map_1732", ROM0[$B800]
Map_1732_Header:
hdr_tileset 17
hdr_dimensions 7, 7
hdr_pointers_a Map_1732_Blocks, Map_1732_TextPointers
hdr_pointers_b Map_1732_Script, Map_1732_Objects
hdr_pointers_c Map_1732_InitScript, Map_1732_RAMScript
hdr_palette $06
... |
// 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 "components/policy/core/common/cloud/cloud_policy_validator.h"
#include <stddef.h>
#include <utility>
#include "base/callback_helpers.h"
#i... |
INCLUDE "config_private.inc"
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC rc_01_output_sioa_oterm_msg_bell
PUBLIC rc_01_output_sioa_oterm_msg_bell_0
EXTERN rc_01_output_sioa_oterm_msg_putc_send
rc_01_output_sioa_oterm_msg_bell:
; can use: af, bc, de, hl
bit 0,(ix+7)
ret z ... |
; A204815: Final nonzero digit of n^n in base 5.
; 1,1,4,2,1,1,1,3,1,4,4,1,1,3,1,2,1,2,4,4,1,1,4,2,1,1,1,3,1,4,1,1,1,3,1,3,1,2,4,4,1,1,4,2,1,4,1,3,1,4,4,1,1,3,1,1,1,2,4,4,1,1,4,2,1,3,1,3,1,4,1,1,1,3,1,2,1,2,4,4,1,1,4,2,1
pow $0,$0
lpb $0
mov $2,$0
mov $0,$1
lpb $2
dif $2,5
lpe
mod $2,5
lpe
mov $0,$2
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.