text stringlengths 1 1.05M |
|---|
; 8086 assembly file
; by:czfshine
; date: 2018/04/02 21:06:03
;从键盘上输入一串字符(用回车键结束,使用10号功能调用。),
;将其中的小写英文字母变换为大写英文字母,其他字符保持不变。
;然后将变换后的字符串显示出来。
; The Main Data segment
DATA SEGMENT
buf DB 80,?,80 dup(?) ;
DATA ENDS
;entry code segment
CODE SEGMENT
ASSUME CS:CODE ,DS:DATA
START: ;entry point
... |
;;; @@@ arch:x86_32
;;; @@@ endian:little
;;; @@@ syntax:intel
;;;
;;; x86-32 sys_execve("/bin/sh") shellcode
;;;
;;; @_hugsy_
;;; eax = sys_execve
mov eax, __NR_SYS_execve
;;; write /bin/sh @esp
mov dword ptr [esp], "nib/"
mov dword ptr [esp+4], "hs//"
;;; ebx = @/bin/sh
mov ebx, esp
;;; nullify the other args
xor e... |
; A190640: Numbers whose base-3 expansion ends in 2 and does not contain any 1's.
; 2,8,20,26,56,62,74,80,164,170,182,188,218,224,236,242,488,494,506,512,542,548,560,566,650,656,668,674,704,710,722,728,1460,1466,1478,1484,1514,1520,1532,1538,1622,1628,1640,1646,1676,1682,1694,1700,1946,1952,1964,1970,2000,2006,2018,202... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x115ee, %rsi
lea addresses_WT_ht+0xcb62, %rdi
nop
nop
nop
add %r12, %r12
mov $7, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_D_ht+0x9f62, %rsi
nop
nop
nop
c... |
; A171769: Partial sums of A042964 (numbers congruent to 2 or 3 mod 4).
; 2,5,11,18,28,39,53,68,86,105,127,150,176,203,233,264,298,333,371,410,452,495,541,588,638,689,743,798,856,915,977,1040,1106,1173,1243,1314,1388,1463,1541,1620,1702,1785,1871,1958,2048,2139,2233,2328,2426,2525,2627,2730,2836,2943,3053,3164,3278,339... |
;
; Sharp OZ family port (graphics routines)
; Stefano Bodrato - Aug 2002
;
; Page the graphics bank in/out - used by all gfx functions
; Simply does a swap...
;
;
; $Id: swapgfxbk.asm,v 1.4 2017-01-02 22:57:58 aralbrec Exp $
;
PUBLIC swapgfxbk
PUBLIC _swapgfxbk
PUBL... |
/*
Author: Inan Evin
www.inanevin.com
Copyright 2018 Inan Evin
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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rbp
push %rdx
push %rsi
lea addresses_UC_ht+0x6578, %rbp
nop
nop
nop
nop
nop
cmp $30762, %r11
movl $0x61626364, (%rbp)
nop
nop
nop
nop
inc %rdx
pop %rsi
pop %rdx
pop %rbp
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %r9
push ... |
; int dup_fastcall(int fd)
SECTION code_fcntl
PUBLIC _dup_fastcall
EXTERN asm_dup
defc _dup_fastcall = asm_dup
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x2d05, %rdx
nop
nop
nop
nop
cmp %rcx, %rcx
mov (%rdx), %rbx
nop
nop
and $34092, %r15
lea addresses_WC_ht+0x11bf1, %rsi
lea addresses_UC_ht+0x15c05, %rdi
nop
dec %r15
mov $30, ... |
; A014635: a(n) = 2*n*(4*n - 1).
; 0,6,28,66,120,190,276,378,496,630,780,946,1128,1326,1540,1770,2016,2278,2556,2850,3160,3486,3828,4186,4560,4950,5356,5778,6216,6670,7140,7626,8128,8646,9180,9730,10296,10878,11476,12090,12720,13366,14028,14706,15400,16110,16836,17578,18336,19110,19900,20706,21528,22366,23220,24090,249... |
SFX_Cry25_3_Ch1:
dutycycle 165
unknownsfx0x20 6, 244, 64, 7
unknownsfx0x20 15, 227, 48, 7
unknownsfx0x20 4, 244, 64, 7
unknownsfx0x20 5, 179, 72, 7
unknownsfx0x20 8, 209, 80, 7
endchannel
SFX_Cry25_3_Ch2:
dutycycle 119
unknownsfx0x20 6, 195, 18, 7
unknownsfx0x20 15, 179, 4, 7
unknownsfx0x20 3, 195, 18, 7
... |
print_string:
;parameter: bx
pusha
;while(string[i] != 0){print string[i]; i++}
start:
mov al, [bx]; 'bx is the address of the first position of the string'
cmp al, 0 ;check if string[i] is equal to 0
je done ;jump to end if they're equal
mov ah, 0x0e ;set to TTY mode
... |
// Copyright (c) 2012-2015 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 "utilstrencodings.h"
#include "test/test_sharkbyte.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Associated header
//
#include "filesystem17.h"
// System headers
//
#include <cstring>
#include <dirent.h>
#include <libgen.h>
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#includ... |
;代码清单5-1
;文件名:c05_mbr.asm
;文件说明:硬盘主引导扇区代码
;创建日期:2011-3-31 21:15
mov ax,0xb800 ;指向文本模式的显示缓冲区
mov es,ax
;以下显示字符串"Label offset:"
mov byte [es:0x00],'L'
mov byte [es:0x01],0x07
mov byte [es:0x02],'a'
mov byt... |
#include "gui/searchbar/searchbar.h"
#include "gui/gui_utils/graphics.h"
#include "gui/label_button/label_button.h"
#include <QHBoxLayout>
#include <QIcon>
#include <QLabel>
#include <QLineEdit>
#include <QPixmap>
#include <QPushButton>
#include <QStyle>
#include <QToolButton>
namespace hal
{
Searchbar::Searchba... |
;---------------------------------------------
; Command's table below with all jump vectors
;---------------------------------------------
cmdTable
;--- A ---
;--- B ---
;--- C ---
db "cd"
db "*"
dw changeDir
db "cls"
db "*"
dw clearScreen
;--- D ---
db "dir"
db "*"
dw listDir
;--- E --... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; MultU64x32.nasm
;
; Abstract:
;
; Calculate the product of a 64-bit integer and a 32-bit ... |
; CISP 310 - Michael Dinh
; Assignment 8 - Greater Than
; 11/09/2020
INCLUDE io.h
.DATA
; data
numbers DWORD 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
arraySize DWORD ?
biggerThan DWORD ?
; program variables
prompt1 BYTE "Enter array size (up to 10)", 0
prompt2 BYTE "Enter number (up to 9)", 0
string BYTE 40 DUP (?)
resultLb BY... |
;********************************************************************************************************
; uC/LIB
; CUSTOM LIBRARY MODULES
;
; (c) Copyright 2004-2011; Micrium, Inc.; Weston, FL
;
; ... |
[bits 32]
%define ERROR_CODE nop ; 若在相关的异常中cpu已经自动压入了错误码,为保持栈中格式统一,这里不做操作.
%define ZERO push 0 ; 若在相关的异常中cpu没有压入错误码,为了统一栈中格式,就手工压入一个0
extern idt_table ;idt_table是C中注册的中断处理程序数组
section .data
global interrupt_entry_table
interrupt_entry_table:
%macro VECTOR 2
section .text
intr%1entry: ; 每个中断处理程序都要... |
//-------------------------------------------------------------------------------------
// DirectXTexUtil.cpp
//
// DirectX Texture Library - Utilities
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkId=248926
//-------------... |
//
// Created by sergio on 13/05/19.
//
#include "../include/Tensor.h"
#include <utility>
// Disable "loss of data" warnings
#pragma warning( disable : 4267)
#include <memory>
Tensor::Tensor(const Model& model, const std::string& operation) {
// Get operation by the name
this->op.oper = TF_GraphOperationByN... |
;******************************************************************
; 6502 BBC Micro Compressed VGM (VGC) Music Player
; By Simon Morris
; https://github.com/simondotm/vgm-player-bbc
; https://github.com/simondotm/vgm-packer
;******************************************************************
;-------------------------... |
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
dnl alignment dst/src1/src2, A=0mod8, N=4mod8
dnl A/A/A A/A/N A/N/A A/N/N N/A/A N/A/N N/N/A N/N/N
dnl
dnl K6-2 1.2 1.5 1.5 1.2 1.2 1.5 1.... |
; A178936: Floor((2*3^n+3*2^n)/5).
; Submitted by Jon Maiga
; 1,2,6,15,42,116,330,951,2778,8180,24234,72087,215034,642644,1923018,5759223,17258010,51734708,155125482,465219159,1395342906,4185399572,12554940426,37662304695,112981880922,338935576436,1016786596650,3050319524631,9150878043258,27452473068500,82357097082954,... |
;
; Basic keyboard handling for the Jupiter ACE
; By Stefano Bodrato Feb. 2001
;
; getkey() Wait for keypress
;
;
; $Id: fgetc_cons.asm,v 1.3 2001/10/22 09:33:55 stefano Exp $
;
XLIB fgetc_cons
.fgetc_cons
.kwait
call $336
and a
jr nz,kwait
.kwait1
call $336
and a
jr z,kwait1
cp 5 ; Delete?
jr nz,nodel
l... |
//
// Copyright (c) 2013-2021 The SRS Authors
//
// SPDX-License-Identifier: MIT
//
#ifndef SRT_SERVER_H
#define SRT_SERVER_H
#include <srs_core.hpp>
#include <srt/srt.h>
#include <thread>
#include <memory>
#include <srs_app_hybrid.hpp>
class srt_handle;
class srt_server {
public:
srt_server(unsigned short p... |
; A011245: a(n) = (n+1)*(2*n+1)*(3*n+1)*(4*n+1).
; 1,120,945,3640,9945,22176,43225,76560,126225,196840,293601,422280,589225,801360,1066185,1391776,1786785,2260440,2822545,3483480,4254201,5146240,6171705,7343280,8674225,10178376,11870145,13764520,15877065,18223920,20821801,23688000,26840385,30297400,34078065,38201976,42... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, 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... |
#include <iostream>
using namespace std;
/**
* Definition for singly-linked list.
*/
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
bool hasCycle(ListNode *head) {
ListNode *slow = head;
ListNode *fast = head;
w... |
# --------------------------------------- #
# Libraries
# --------------------------------------- #
.text 0x00500000
.include "../Libraries/SyscallsFunctions.asm"
.include "../Libraries/macros.asm"
.include "../Libraries/BubbleSort.asm"
# --------------------------------------------------- #
# Main data section
# ---... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_AF
;TEST_FILE_META_END
; Test32RR2
mov edi, 0x8
mov eax, 0x12
;TEST_BEGIN_RECORDING
test edi, eax
;TEST_END_RECORDING
|
copyright zengfr site:http://github.com/zengfr/romhack
003C8E jsr $f98.w
0048CA move.w ($6,PC,D0.w), D1 [enemy+2B]
0048E4 move.b #$2, ($2b,A0) [enemy+A3]
0048EA lea ($1060,PC) ; ($594c), A4 [enemy+2B]
004916 jsr $3f0c.w [enemy+2B]
004966 jsr $f98.w [enemy+2B]
0049A8 moveq #$0, D0 [enemy+2B]... |
; A040757: Continued fraction for sqrt(786).
; Submitted by Christian Krause
; 28,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56,28,56
trn $0,1
mod $0,2
add $0,1
mul $0,28
|
; A044615: Numbers n such that string 5,7 occurs in the base 8 representation of n but not of n+1.
; 47,111,175,239,303,367,383,431,495,559,623,687,751,815,879,895,943,1007,1071,1135,1199,1263,1327,1391,1407,1455,1519,1583,1647,1711,1775,1839,1903,1919,1967,2031,2095,2159,2223,2287,2351
mov $5,$0
add $5,1
mov $7,$0
lp... |
SECTION code_driver
PUBLIC ide_idle
EXTERN __IO_IDE_COMMAND
EXTERN __IDE_CMD_IDLE
EXTERN ide_wait_ready
EXTERN ide_test_error
EXTERN ide_write_byte
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called by
; the main program... |
#include "AppDocFrame.h"
#include "../GameEngine/Application.h"
#include "../OSEnvironment/OSEnvironment.h"
#include "../CIAgents/CIAgentManager.h"
AppDocFrame::AppDocFrame(Application* app, std::string frameName)
: AppFrame(app, frameName)
, mWebBrowser(mApp->getBrowser())
{
mCodeDesignWidget=new CICodeDesignWidget(... |
/*
* Qt4 bitcoin GUI.
*
* W.J. van der Laan 2011-2012
* The Bitcoin Developers 2011-2012
*/
#include "bitcoingui.h"
#include "transactiontablemodel.h"
#include "addressbookpage.h"
#include "sendcoinsdialog.h"
#include "signverifymessagedialog.h"
#include "optionsdialog.h"
#include "aboutdialog.h"
#include "clientm... |
; A010678: Period 2: repeat (0,7).
; 0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0,7,0
mod $0,2
mul $0,7
|
#################
# Improved VERSION
# This program takes an array v and computes
# min {|v[i]|} , the minimum of the absolute value ,
# where v[i] is the i-th element in the array
.data
.align 2
v:
.word 10
.word -47
.word 22
.word -3
.word 15
.word 27
.word -4
m:
.word 0
.text
... |
; A153403: Numbers n such that 10*n+3 is not prime.
; Submitted by Jamie Morken(w2)
; 3,6,9,12,13,14,15,18,20,21,24,25,27,30,32,33,34,36,39,40,41,42,45,47,48,49,51,53,54,55,57,58,60,62,63,66,69,70,71,72,75,76,78,79,80,81,83,84,87,89,90,91,92,93,94,96,97,99,100,102,104,105,107,108,111,113,114,117,118,120,123,124,125,126... |
; A059152: A hierarchical sequence (W'2{2}c - see A059126).
; 4,16,4,64,4,16,4,256,4,16,4,64,4,16,4,1024,4,16,4,64,4,16,4,256,4,16,4,64,4,16,4,4096,4,16,4,64,4,16,4,256,4,16,4,64,4,16,4,1024,4,16,4,64,4,16,4,256,4,16,4,64,4,16,4,16384,4,16,4,64,4,16,4,256,4,16,4,64,4,16
add $0,1
mov $1,4
lpb $0
dif $0,2
mul $1,4
l... |
; A160084: Numerator of Hermite(n, 25/26).
; Submitted by Christian Krause
; 1,25,287,-9725,-534143,-205375,897567295,22855682875,-1552252148095,-100608070196375,2206749279595615,395224009253637875,1675906409804450305,-1561130921287643963375,-46392205796871853724545,6227466374611334891576875,390895142755423670672865025... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/EventCode.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namesp... |
; A086575: a(n) = 4*(10^n - 1).
; Submitted by Jon Maiga
; 0,36,396,3996,39996,399996,3999996,39999996,399999996,3999999996,39999999996,399999999996,3999999999996,39999999999996,399999999999996,3999999999999996,39999999999999996,399999999999999996,3999999999999999996,39999999999999999996,399999999999999999996
mov $2,1... |
;
; Copyright (C) 2021 by Intel Corporation
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
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: 89 e5 mov %esp,%ebp
d... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x211c, %rbx
lfence
mov (%rbx), %rsi
nop
inc %rbx
lea addresses_D_ht+0x1f14, %r15
nop
nop
and %rsi, %rsi
movb $0x61, (%r15)
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0x8f5c, ... |
; A059990: Number of points of period n under the dual of the map x->2x on Z[1/6].
; 1,1,7,5,31,7,127,85,511,341,2047,455,8191,5461,32767,21845,131071,9709,524287,349525,2097151,1398101,8388607,1864135,33554431,22369621,134217727,89478485,536870911,119304647
seq $0,126646 ; a(n) = 2^(n+1) - 1.
lpb $0
dif $0,3
lpe
|
MAC ST_WORD_X_ZP
.TableLo SET {1}
.TableHi SET {2}
.AddrZP SET {3}
LDA .TableLo,X
STA .AddrZP
LDA .TableHi,X
STA .AddrZP+1
ENDM
MAC MOVSW_ZP_ZP
.SrcZP SET {1}
.DestZP SET {2}
LDA .SrcZP
STA .DestZP
LDA .SrcZP+1
STA .DestZP+1
... |
; A080754: a(n) = ceiling(n*(1+sqrt(2))).
; 3,5,8,10,13,15,17,20,22,25,27,29,32,34,37,39,42,44,46,49,51,54,56,58,61,63,66,68,71,73,75,78,80,83,85,87,90,92,95,97,99,102,104,107,109,112,114,116,119,121,124,126,128,131,133,136,138,141,143,145,148,150,153,155,157,160,162,165,167,169,172,174,177,179,182,184,186,189,191,194,... |
#include "cpp_header.h"
int main()
{
map<int,int> mm;
mm[1] = 1;
mm[2] = 2;
mm[3] = 3;
mm[4] = 4;
mm[5] = 5;
for(auto m : mm)
{
cout << "1, " << m.first << ", " << m.second << "\n";
for(auto m2 : mm)
{
cout << "----------------2, " << m2.first << ", " << m2.second << "\n";
}
}
return 0;
}
|
; A164874: Triangle read by rows: T(1,1)=2; T(n,k)=2*T(n-1,k)+1, 1<=k<n; T(n,n)=2*(T(n-1,n-1)+1).
; 2,5,6,11,13,14,23,27,29,30,47,55,59,61,62,95,111,119,123,125,126,191,223,239,247,251,253,254,383,447,479,495,503,507,509,510,767,895,959,991,1007,1015,1019,1021,1022,1535,1791,1919,1983,2015,2031,2039,2043,2045,2046,3071... |
// Copyright (C) 2010,2011,2012 GlavSoft LLC.
// All rights reserved.
//
//-------------------------------------------------------------------------
// This file is part of the TightVNC software. Please visit our Web site:
//
// http://www.tightvnc.com/
//
// This program is free software; you ca... |
; A268384: Characteristic function of A001317.
; 0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,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,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,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,0,0,0,0,0,0,0,0,0,0... |
; A089928: a(n) = 2*a(n-1) + 2*a(n-3) + a(n-4).
; 1,2,4,10,25,60,144,348,841,2030,4900,11830,28561,68952,166464,401880,970225,2342330,5654884,13652098,32959081,79570260,192099600,463769460,1119638521,2703046502,6525731524,15754509550,38034750625,91824010800
add $0,1
seq $0,78057 ; Expansion of (1+x)/(1-2*x-x^2).
sub $... |
#include "BehaviorTreeAIController.h"
#include "BossPlugin.h"
#include "BehaviorTree/BehaviorTree.h"
#include "BossPluginUtils.h"
#include "BehaviorTree/BlackboardComponent.h"
ABehaviorTreeAIController::ABehaviorTreeAIController()
{
BehaviorTreeComponent = CreateDefaultSubobject<UBehaviorTreeComponent>(TEXT("Behaviou... |
///////////////////////////////////////////////////////////////////////////////
// File: DDTrackerLinear.cc
// Description: Position n copies at given intervals along an axis
///////////////////////////////////////////////////////////////////////////////
#include <cmath>
#include <algorithm>
#include "FWCore/MessageL... |
/* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
; This is a sample program "Hello World" for print_letters asm library
; 0123456789 <-- This is the screen position
; 1 H Hello starts at 6,1 going down, and italics, and green
; 2 e World starts at 5,5 lets do this bold and blue
; 3 l
; 4 l
; 5 World
DEVI... |
;**************************************************************************
; arch/z80/src/z80/z80_head.asm
;
; Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved.
; Author: Gregory Nutt <gnutt@nuttx.org>
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitt... |
ffffff
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
xor a, a
ldff(40), a
ld hl, fea0
lbegin_fill_oam:
dec l
ld(hl), a
jrnz lbegin_fill_oam
ld d, 10
ld a, d
ld(hl), a
inc l
ld a, 0f
ld(hl), a
inc l
ld a, 40
ldff(41), a
... |
getCell:
; Inputs
; a - y
; c - x
; Outputs (all can be ignored)
; e - unchanged
; d - 0
; a - value read from backScreen
; bc - (backScreen)
; hl - offset into bc
ld d,0
ld e,ScreenWidth
call DE_Times_A ; answer in HL
ld b,0
add hl,bc
; HL contains offset
; add offset to start of buffer
... |
#include "include/image_editor_pro/image_editor_pro_plugin.h"
#include <flutter_linux/flutter_linux.h>
#include <gtk/gtk.h>
#include <sys/utsname.h>
#include <cstring>
#define IMAGE_EDITOR_PRO_PLUGIN(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), image_editor_pro_plugin_get_type(), \
Image... |
#subruledef big_endian
{
PUSH {rlist: u8} => 0b1101010 @ 0b0 @ rlist
PUSH {rlist: u8}, LR => 0b1101010 @ 0b1 @ rlist
}
#ruledef little_endian
{
{val: big_endian} => val[7:0] @ val[15:8]
}
PUSH 0b00001111 ; = 0x0fd4
PUSH 0b00001111, LR ; = 0x0fd5 |
; A232181: First bisection of harmonic numbers (denominators).
; Submitted by Christian Krause
; 1,6,60,140,2520,27720,360360,360360,12252240,77597520,5173168,118982864,8923714800,80313433200,2329089562800,72201776446800,13127595717600,13127595717600,485721041551200,485721041551200,19914562703599200,122332313750680800
... |
; A104356: Smallest m such that A104350(m) has exactly n trailing zeros in decimal representation.
; 1,5,10,15,20,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,8388608,16777216,33554432,67108864,134217728,268435456,536870912,1073741824,2147483648
mov $3,1
lpb $0
... |
; A017058: a(n) = (7*n + 6)^6.
; 46656,4826809,64000000,387420489,1544804416,4750104241,12230590464,27680640625,56800235584,107918163081,192699928576,326940373369,531441000000,832972004929,1265319018496,1870414552161,2699554153024,3814697265625,5289852801024,7212549413161,9685390482496,12827693806929,16777216000000,216... |
; A209983: (A209982)/2.
; 0,10,26,58,90,154,186,282,346,442,506,666,730,922,1018,1146,1274,1530,1626,1914,2042,2234,2394,2746,2874,3194,3386,3674,3866,4314,4442,4922,5178,5498,5754,6138,6330,6906,7194,7578,7834
cal $0,210000 ; Number of unimodular 2 X 2 matrices having all terms in {0,1,...,n}.
mov $1,1
lpb $1
mov $... |
/* ************************************************************************
* Copyright (c) 2019-2021 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "roclapack_geql2.hpp"
template <typename T, typename U>
rocblas_status rocsolver_geql2_impl(rocbla... |
; ---------------------------------------------------------------------------
; HUD counter sizes
; ---------------------------------------------------------------------------
Hud_100000: dc.l 100000
Hud_10000: dc.l 10000
Hud_1000: dc.l 1000
Hud_100: dc.l 100
Hud_10: dc.l 10
Hud_1: dc.l 1
; -------------------------... |
#include <iostream>
using namespace std;
// Bai 1: Kiem tra chuoi co bat dau aa ket thuc bb
bool isAABB(const char *);
// Bai 2: Co ton tai DFA kiem dinh chuoi aa..abb..b
// so lan a xuat hien = so lan b xuat hien?
// Cau tra loi la khong the
// Neu gioi han chuoi co huu han cho truoc 2n ki tu,
// vi du nhu co 4 ky ... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
dnl AMD64 mpn_gcd_1 -- mpn by 1 gcd.
dnl Based on the K7 gcd_1.asm, by Kevin Ryde. Rehacked for AMD64 by Torbjorn
dnl Granlund.
dnl Copyright 2000-2002, 2005, 2009, 2011, 2012 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 redis... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x17b90, %rcx
nop
nop
nop
nop
and %r12, %r12
movl $0x61626364, (%rcx)
nop
nop
nop
nop
nop
add $54418, %r15
lea addresses_normal_ht+0x1931e, %r10
nop
nop
and $26426, %r12
m... |
; A142749: Primes congruent to 22 mod 59.
; Submitted by Jon Maiga
; 199,317,907,1733,2087,2441,2677,3739,4093,4211,4447,4801,4919,5273,5981,6217,6571,6689,7043,9049,9403,9521,10111,10937,11173,11527,12589,13297,14713,14831,17191,18253,18371,19079,19433,20023,20731,20849,21557,21911,22147,22501,22619,22973,23209,23327,... |
;/** @file
;
; This code provides low level routines that support the Virtual Machine
; for option ROMs.
;
; Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;**/
;---------------------------------------------------------------------------
... |
; A125168: a(n) = gcd(n, A032741(n)) where A032741(n) is the number of proper divisors of n.
; 1,1,1,2,1,3,1,1,1,1,1,1,1,1,3,4,1,1,1,5,3,1,1,1,1,1,3,1,1,1,1,1,3,1,1,4,1,1,3,1,1,7,1,1,5,1,1,3,1,5,3,1,1,1,1,7,3,1,1,1,1,1,1,2,1,1,1,1,3,7,1,1,1,1,5,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,3,1,1,1,1,1,1,4,1,1,1,1,7,1,1,1,1,1,3,1,1... |
[bits 16]
; Switch to protected mode
switch_to_pm :
cli ; We must switch of interrupts until we have
; set - up the protected mode interrupt vector
; otherwise interrupts will run riot.
lgdt [gdt_descriptor] ;... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "RemoteProcess.h"
#include "RemoteObject.h"
#include "RemoteObjectGraphModel.h"
#include "RemoteObjectPropertyModel.h"
#include <stdio.h>
#include <stdlib.h>
namespace Inspector {
RemoteProces... |
#include "GeneratorType.hpp"
std::string getGeneratorNameByType(GeneratorType gt)
{
using GT=GeneratorType;
switch(gt)
{
case GT::downtown:return "Downtown";
case GT::seaport:return "Seaport";
case GT::suburbs:return "Suburbs";
case GT::warehouse:return "Warehouse";
}
return "";
}
|
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
//
// cl /O2 /GX bn.cpp zzn2.cpp zzn.cpp ecn2.cpp ecn.cpp big.cpp miracl.lib
// Program to generate BN curves for use by ake12*.cpp
//
#include <iostream>
#include "big.h"
#include "ecn.h"
#include "ecn2.h"
//#include "zzn12.h"
using namespace std;
Miracl precision=100;
int main()
{
int i,ns;
int sign;
... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* 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 appl... |
; A014286: a(n) = Sum_{j=0..n} j*Fibonacci(j).
; 0,1,3,9,21,46,94,185,353,659,1209,2188,3916,6945,12223,21373,37165,64314,110826,190265,325565,555431,945073,1604184,2717016,4592641,7748859,13052145,21950853,36863494,61824694,103559033,173264921,289575995,483474153,806435428,1343928100,2237767329,3723117751,6189711205,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x6f20, %rsi
lea addresses_UC_ht+0x11b20, %rdi
nop
nop
nop
nop
nop
sub %r14, %r14
mov $28, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $1095, %rsi
lea addresses_D_ht+0xfb20, %rdx
no... |
; A011640: 66th cyclotomic polynomial.
; Submitted by Jon Maiga
; 1,1,0,-1,-1,0,1,1,0,-1,-1,-1,0,1,1,0,-1,-1,0,1,1
add $0,7
mov $2,$0
lpb $0
sub $0,1
div $2,18
add $3,1
trn $3,$2
add $3,$4
sub $4,$3
lpe
mov $0,$3
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x4636, %r11
nop
nop
and %rsi, %rsi
mov (%r11), %bx
nop
sub $41790, %rax
lea addresses_WT_ht+0x1aaa1, %rsi
lea addresses_normal_ht+0x17416, %rdi
nop
nop
nop
nop
and %rdx, %rdx
mov $116,... |
; A064613: Second binomial transform of the Catalan numbers.
; Submitted by Jon Maiga
; 1,3,10,37,150,654,3012,14445,71398,361114,1859628,9716194,51373180,274352316,1477635912,8016865533,43773564294,240356635170,1326359740956,7351846397334,40913414754324,228508350629892,1280446630065720,7196461754402898,405569785375364... |
; A328990: a(n) = (3*b(n)+b(n-1)+1)/2, where b = A005409.
; 2,7,19,48,118,287,695,1680,4058,9799,23659,57120,137902,332927,803759,1940448,4684658,11309767,27304195,65918160,159140518,384199199,927538919,2239277040,5406093002,13051463047,31509019099,76069501248,183648021598,443365544447,1070379110495,2584123765440,62386... |
; A007570: a(n) = F(F(n)), where F is a Fibonacci number.
; 0,1,1,1,2,5,21,233,10946,5702887,139583862445,1779979416004714189,555565404224292694404015791808
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1... |
/*
* FreeRTOS Kernel V10.4.2
* 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, ... |
; A143785: Antidiagonal sums of the triangle A120070.
; 3,8,20,36,63,96,144,200,275,360,468,588,735,896,1088,1296,1539,1800,2100,2420,2783,3168,3600,4056,4563,5096,5684,6300,6975,7680,8448,9248,10115,11016,11988,12996,14079,15200,16400,17640,18963,20328,21780,23276,24863,26496,28224,30000,31875,33800,35828,37908,40095,... |
processor 6502
include "scenesetup.inc"
ORG SCENEADR
include "frames.inc" |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiGuideCreateControl.asm
AUTHOR: Jon Witort
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
----- ----... |
; A229148: a(n) = n^5*(7*n+5)/2.
; 0,6,304,3159,16896,62500,182736,453789,999424,2007666,3750000,6603091,11073024,17822064,27697936,41765625,61341696,88031134,123766704,170850831,232000000,310391676,409713744,534216469,688766976,878906250,1110908656,1391843979,1729641984,2133159496,2612250000,3177835761,3841982464,4617... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.