text stringlengths 1 1.05M |
|---|
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosQFHandState DOS wrapper
;
; (c) osFree Project 2022, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokus... |
// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <ClientLib/OptionWidget.hpp>
namespace bw
{
}
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, 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 distribution. Th... |
; size_t bv_priority_queue_max_size(bv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC bv_priority_queue_max_size
EXTERN asm_bv_priority_queue_max_size
defc bv_priority_queue_max_size = asm_bv_priority_queue_max_size
|
; A140431: 2*A094555(n).
; Submitted by Stefano Spezia
; 0,2,2,12,22,92,222,772,2102,6732,19342,59732,175782,534172,1588862,4793892,14327062,43090412,129052782,387595252,1161911942,3487483452,10458955102,31383855812,94137586422,282440721292,847266239822
mov $1,$0
min $0,1
sub $0,3
pow $0,$1
sub $0,1
mov $2,3
pow $2,$1... |
;12、试编写一程序,要求比较两个字符串 STRING1 和 STRING2 所含字符是否完全相同,若相同则显示 MATCH,若不相同则显示 NO MATCH。
.model small
.data
STRING1 db 'hello world!',0
STRING2 db 'hello china!',0
matchString db 'MATCH$'
nomatchString db 'NO MATCH$'
.code
start:
mov ax,@data
mov ds,ax
call compare
... |
; void sp1_PrintAtInv(uchar row, uchar col, uchar colour, uint tile)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_PrintAtInv
EXTERN asm_sp1_PrintAtInv
_sp1_PrintAtInv:
ld hl,2
add hl,sp
ld d,(hl)
inc hl
inc hl
ld e,(hl)
inc hl
inc hl
ld a,(hl)
inc hl
inc hl
ld c,(hl)
... |
#include <mbgl/style/conversion.hpp>
#include <mbgl/style/rapidjson_conversion.hpp>
#include <string>
#include <sstream>
namespace mbgl {
namespace style {
namespace conversion {
template <class T, class...Args>
optional<T> convertJSON(const std::string& json, Error& error, Args&&...args) {
JSDocument document;
... |
; A256534: Number of ON cells at n-th stage in simple 2-dimensional cellular automaton (see Comments lines for definition).
; 0,4,16,28,64,76,112,172,256,268,304,364,448,556,688,844,1024,1036,1072,1132,1216,1324,1456,1612,1792,1996,2224,2476,2752,3052,3376,3724,4096,4108,4144,4204,4288,4396,4528,4684,4864,5068,5296,554... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x106f3, %r14
and %r13, %r13
mov (%r14), %r9d
inc %r9
lea addresses_WT_ht+0x10ddd, %rsi
lea addresses_UC_ht+0x1998d, %rdi
xor $27191, %r12
mov $108, %rcx
rep movsl
inc %rcx
lea ... |
# Return (2^x - 1)
# Test to find maximum XOR-value of at-most k-elements from 1 to n
.data
nStr: .asciiz "Enter n: "
n: .word 0
kStr: .asciiz "Enter k: "
k: .word 0
retVal: .word 0
str: .asciiz "Maximum XOR-value: "
x: .word 0
result: .word 0
.text
runtime:
addi $sp, $sp, -4
sw $ra, 0($sp)
lw $ra, 0(... |
// Copyright 2019 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/task/single_thread_task_executor.h"
#include "base/message_loop/message_pump.h"
#include "base/message_loop/message_pump_type.h"
#include ... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea rdi, [rsp-08]
mov dword [rdi], 0
FNSTCW [rdi]
mov eax, dword [rdi]
mov edi, 0
;TEST_END_RECORDING
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1a877, %r10
nop
nop
nop
nop
nop
add $24496, %r14
movb $0x61, (%r10)
nop
nop
sub $40025, %r8
lea addresses_A_ht+0xe7f7, %rax
nop
nop
nop
nop
inc %rcx
movl $0x61626364... |
// Copyright 2019 Mobilinkd LLC <rob@mobilinkd.com>
// All rights reserved.
#pragma once
#include <ap_axi_sdata.h>
#include <hls_stream.h>
#include <stdint.h>
using idata_type = ap_axiu<1,0,0,0>;
using odata_type = ap_axiu<3,0,0,0>;
using istream_type = hls::stream<idata_type>;
using ostream_type = hls::stream<odata... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
EXTERN OPENSSL_ia32cap_P
global asm_RC4
ALIGN 16
asm_RC4:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_asm_RC4:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
or rsi,rsi
jne NEAR $... |
copyright zengfr site:http://github.com/zengfr/romhack
0389A8 move.b #$0, ($2f,A6)
0389AE cmpi.b #$a, ($14,A6)
copyright zengfr site:http://github.com/zengfr/romhack
|
; %include './syscall.asm'
;------------------------------------------
; int strlen(String message)
; String length calculation function
;
; rdi - 1st arg with string address
; rax - return value
slen:
mov rax, rdi
nextchar:
cmp byte [rax], 0
jz finished
inc rax
jmp nextchar
... |
Name: zel_enmy00.asm
Type: file
Size: 534138
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: CC70CC43DDF19B7FA4E6E68D97705E51FA75EFAA
Description: null
|
/*
* Copyright (c) 2012, Peter Thorson. 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 o... |
// This is a generated file, modify: generate/templates/struct_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
}
#include <iostream>
#include "../include/functions/copy.h"
#include "../include/repository_init_options.h"
using namespace v8;
usin... |
.586
.XMM
.MODEL FLAT, C
.STACK
.DATA
dispatchLabel dword Opcode_Move ; done
dword Opcode_LoadK ; done
dword Opcode_LoadBool
dword Opcode_LoadNil
dword Opcode_GetUpVal
dword Opcode_GetGlobal ; done
... |
DOSSEG
.MODEL SMALL
.STACK 100h
.DATA
hobptr dw 0
hob dw 32605 dup(0) ; allocate hob
; error messages
oomstr db 10,13,'Out of memory! Can not allocate another class.','$',0,0
.CODE
jmp START
; ------------ STANDARD FUNCTIONS BEGIN ----------:
new PROC
mov ax, hobptr ... |
; A169424: Number of reduced words of length n in Coxeter group on 27 generators S_i with relations (S_i)^2 = (S_i S_j)^32 = I.
; 1,27,702,18252,474552,12338352,320797152,8340725952,216858874752,5638330743552,146596599332352,3811511582641152,99099301148669952,2576581829865418752,66991127576500887552,1741769316989023076... |
; A034871: Odd-numbered rows of Pascal's triangle.
; 1,1,1,3,3,1,1,5,10,10,5,1,1,7,21,35,35,21,7,1,1,9,36,84,126,126,84,36,9,1,1,11,55,165,330,462,462,330,165,55,11,1,1,13,78,286,715,1287,1716,1716,1287,715,286,78,13,1,1,15,105,455,1365,3003,5005
mov $1,1
lpb $0
sub $2,2
add $0,$2
add $1,2
lpe
bin $1,$0
mov $0,$... |
IFDEF RAX
fix_and_swapcontext PROTO STDCALL :QWORD
.code
swapcontext PROC
push r8
push r9
push rdi
push rsi
push rbp
push rdx ; other
push rcx ; current
lea r8, gotback
mov r9, rsp
; without some stack padding someone overrides our values, no idea why?
push rax
push rax
push rax
push rax
push rax
... |
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <vector>
#include <map>
#include <queue>
#include <stack>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
int main() {
std::ios::s... |
; A006234: a(n) = n*3^(n-4).
; 1,4,15,54,189,648,2187,7290,24057,78732,255879,826686,2657205,8503056,27103491,86093442,272629233,860934420,2711943423,8523250758,26732013741,83682825624,261508830075,815907549834,2541865828329,7908027021468,24571369673847,76255974849870,236393522034597,732057358558752,2264802453041139,70... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x136b8, %rsi
lea addresses_WC_ht+0x1cae, %rdi
nop
cmp %r8, %r8
mov $59, %rcx
rep movsw
inc %r9
lea addresses_A_ht+0x11dae, %r14
nop
nop
nop
inc %rbx
movb (%r14), %r9b
sub %r8, ... |
SECTION code_threads_mutex
PUBLIC asm_spinlock_acquire
EXTERN __thread_context_switch
asm_spinlock_acquire:
; enter : hl = & spinlock
;
; exit : hl = & spinlock
; carry reset
;
; spinlock acquired
;
; uses : f
scf
rr (hl) ; atomic operation
... |
//
// Copyright (c) 2011-2012, ARM Limited. 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. The full text of the license may be found at
// http://opensource.or... |
; A096320: a(n) = (n^2+n+4)/2, modulo 10.
; Submitted by Christian Krause
; 2,3,5,8,2,7,3,0,8,7,7,8,0,3,7,2,8,5,3,2,2,3,5,8,2,7,3,0,8,7,7,8,0,3,7,2,8,5,3,2,2,3,5,8,2,7,3,0,8,7,7,8,0,3,7,2,8,5,3,2,2,3,5,8,2,7,3,0,8,7,7,8,0,3,7,2,8,5,3,2,2,3,5,8,2,7,3,0,8,7,7,8,0,3,7,2,8,5,3,2
add $0,11
bin $0,2
sub $0,53
mod $0,10
|
; A103488: a(n) = 2^(n^2-1).
; 1,8,256,32768,16777216,34359738368,281474976710656,9223372036854775808,1208925819614629174706176,633825300114114700748351602688,1329227995784915872903807060280344576,11150372599265311570767859136324180752990208,374144419156711147060143317175368453031918731001856,50216813883093446110686315... |
#include "main.h"
#include <FreeRTOS.h>
#include <task.h>
#include <timers.h>
#if defined STM32H7
#include <stm32h7xx_hal.h>
// STM32H743ZI blue LED
#define LED_PORT GPIOB
#define LED_PIN GPIO_PIN_7
#define LED_PORT_CLK_ENABLE __HAL_RCC_GPIOB_CLK_ENABLE
#elif def... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xa987, %rsi
lea addresses_D_ht+0x4c86, %rdi
nop
nop
nop
nop
dec %rbx
mov $60, %rcx
rep movsw
inc %r9
lea addresses_WC_ht+0xd06, %r8
nop
and %r14, %r14
movl $0x61626364, (%r8)
nop
nop
nop
... |
// The following example builds a CodeDom source graph for a simple
// class that represents document properties. The source for the
// graph is generated, saved to a file, compiled into an executable,
// and run.
#using <System.dll>
using namespace System;
using namespace System::CodeDom;
using namespace System::... |
; A178936: Floor((2*3^n+3*2^n)/5).
; 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,247070647003767,741210652... |
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021, 2022 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files ... |
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
%ifdef __YASM_VERSION_ID__
%i... |
// Copyright (c) 2001-2008 Hartmut Kaiser
//
// 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)
#if !defined(BOOST_SPIRIT_KARMA_ACTION_MAR_07_2007_0851AM)
#define BOOST_SPIRIT_KARMA_ACTION_MAR_07_2007_0851AM
#if d... |
/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/source/sysman/frequency/linux/os_frequency_imp_prelim.h"
#include "igfxfmid.h"
#include "sysman/linux/os_sysman_imp.h"
namespace L0 {
const bool LinuxFrequencyImp::canControl = true; // canControl is true... |
[bits 32]
VID_MEMORY equ 0xb8000
WOB equ 0x0f ; wee woo
print_str_pm:
pusha
mov edx, VID_MEMORY
; 呂
print_str_pm_loop:
mov al, [ebx]
mov ah, WOB
cmp al, 0
je print_str_pm_finish
mov [edx], ax
add ebx, 1
add edx, 2
jmp print_str_pm_loop
print_str_pm_finish:
popa
... |
; A290199: Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 721", based on the 5-celled von Neumann neighborhood.
; 1,1,5,11,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,... |
;----------------------------------------------------------------------
; putw.asm - user-callable entry point to _putw() function.
;----------------------------------------------------------------------
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1996, 2000 by Inprise Corporation
; ... |
global color
extern fputc
section .text
color:
push ebp
mov ebp, esp
sub esp, 24
mov eax, dword [ebp+14H]
mov dword [esp+4H], eax
mov eax, dword [ebp+8H]
mov dword [esp], eax
call fputc
mov eax, dword [ebp+14H]... |
; A266538: Twice the partial sums of A006257 (Josephus problem).
; 0,2,4,10,12,18,28,42,44,50,60,74,92,114,140,170,172,178,188,202,220,242,268,298,332,370,412,458,508,562,620,682,684,690,700,714,732,754,780,810,844,882,924,970,1020,1074,1132,1194,1260,1330,1404,1482,1564,1650,1740,1834,1932,2034,2140,2250,2364,2482,260... |
;;
;; Copyright (c) 2020, 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 the ... |
; Status reports (take forever to process)
#include text.asm
unrecoverable_exception:
_text_string(13,24,except)
andi k1,0xff
srl k1,2
_text_value(8*10+13,24,k1,1)
_text_string(8*14+13,24,errcode)
mfc0 k1,epc
... |
; A022397: Fibonacci sequence beginning 1, 27.
; Submitted by Jon Maiga
; 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,10... |
;=================================================
; Name: Moya, Branden
; Username: bmoya001@ucr.edu
;
; Assignment name: assn5
; Lab section: 021
; TA: Bryan Marsh
;
; I hereby certify that I have not recieved
; assistance on this assignment, or used code, from
; ANY outside source other than the instuction team.
;... |
/* stuff needed for libgcc on win32. */
#ifdef L_chkstk
.global ___chkstk
.global __alloca
___chkstk:
__alloca:
pushl %ecx /* save temp */
movl %esp,%ecx /* get sp */
addl $0x8,%ecx /* and point to return addr */
probe: cmpl $0x1000,%eax /* > 4k ?*/
jb done
subl $0x1000,%ecx /* yes, move ... |
db 0 ; species ID placeholder
db 40, 45, 40, 65, 65, 40
; hp atk def spd sat sdf
db ELECTRIC, ELECTRIC ; type
db 120 ; catch rate
db 59 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/elect... |
; A023562: Convolution of A023531 and odd numbers.
; 0,1,3,5,8,12,16,20,25,31,37,43,49,56,64,72,80,88,96,105,115,125,135,145,155,165,176,188,200,212,224,236,248,260,273,287,301,315,329,343,357,371,385,400,416,432,448,464,480,496,512,528,544,561
lpb $0
add $1,$0
sub $0,1
add $1,$0
trn $2,1
add $2,2
trn $0,$... |
L__routine_start__Z11test_devicev_0:
test_device():
push rsi #270.20
call rand #272.14
mov ecx, DWORD PTR [rsp] #202.23
mov edx, ecx ... |
; A011000: a(n) = binomial coefficient C(n,47).
; 1,48,1176,19600,249900,2598960,22957480,177100560,1217566350,7575968400,43183019880,227692286640,1119487075980,5166863427600,22512762077400,93052749919920,366395202809685,1379370175283520,4981058966301600,17302625882942400,57963796707857040,187692294101632320,5886712860... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: pareaBuild.asm
AUTHOR: John Wedgwood, Oct 9, 1991
METHODS:
Name Description
---- -----------
REVISION HISTORY:
Name Date Des... |
REF fc_main
data 0xFCFC ; Flag for valid Force Command binary
data 0x0000 ; SAMS page count - 0x0000 means simply / no sams required
data 0x0000 ; Flag 0xFCFC == program safely uses screen, 0x0000 == FC restore screen on return
data fc_main ; program start address
|
/*
Copyright (c) 2014-2015 NicoHood
See the readme for credit to other people.
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 rights
to use, ... |
; size_t b_vector_insert_n_callee(b_vector_t *v, size_t idx, size_t n, int c)
SECTION code_adt_b_vector
PUBLIC _b_vector_insert_n_callee, l0_b_vector_insert_n_callee
_b_vector_insert_n_callee:
pop af
pop hl
pop bc
pop de
exx
pop bc
push af
l0_b_vector_insert_n_callee:
ld a,c
exx
... |
; stdio_outchar
; 05.2008 aralbrec
XLIB stdio_outchar
LIB l_jpix
INCLUDE "../../stdio.def"
; all stream character output to attached file or device passes through this function
;
; enter : ix = FILE *
; a = char for output
; bc' = number of chars output thus far
; MUST NOT ALTER DE'/HL' FO... |
copyright zengfr site:http://github.com/zengfr/romhack
0039FE movem.l D0-D3, -(A6)
003A02 movem.l D0-D3, -(A6)
0042B4 clr.b ($17,A6) [weapon+42]
009ACA dbra D5, $9ac8
057A64 clr.b ($42,A6) [weapon+ 2, weapon+ 4]
057A68 tst.b ($40,A6)
057B6E clr.b ($42,A6)
057B72 clr.b ($40,A6)
057DB0 clr.b ... |
; A082413: a(n) = (2*9^n + 3^n)/3.
; 1,7,57,495,4401,39447,354537,3189375,28700001,258286887,2324542617,20920765455,188286534801,1694577750327,15251196564297,137260759512735,1235346806916801,11118121176157767
mov $2,3
pow $2,$0
mov $1,$2
pow $2,2
div $1,2
add $1,$2
div $1,3
mul $1,2
add $1,1
|
UM: EQU 1
SECTION TEXT
ROT: INPUT N1
COPY N1, N4 + UM ;comentario qualquer
COPY N2, N3
COPY N3, N4
OUTPUT N4
STOP
SECTION DATA
N1: SPACE
N2: CONST -16
N3: SPACE
N4: SPACE 2
|
; A344404: a(n) = Sum_{d|n} floor(n/d^2).
; 1,2,3,5,5,7,7,10,10,12,11,16,13,17,16,21,17,24,19,26,23,27,23,33,26,32,30,36,29,41,31,42,36,42,36,52,37,47,43,53,41,57,43,57,51,57,47,69,50,64,56,68,53,74,57,74,63,72,59,87,61,77,71,85,67,90,67,89,76,90,71
add $0,1
mov $2,$0
lpb $0
mov $3,$2
add $6,$0
lpb $6
dif $3... |
TITLE PR0A - Prepare for printing
page 56,132
;***
; PR0A - Prepare for printing
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; BASIC Syntax mapping to included runtime entry points:
;
; - LPRINT [USING] Statement :
;
; LPRINT [USING "...";] [list of expressions]
; ------ -------------- -----... |
; item ids
; indexes for:
; - ItemNames (see data/items/names.asm)
; - ItemDescriptions (see data/items/descriptions.asm)
; - ItemAttributes (see data/items/attributes.asm)
; - ItemEffects (see engine/items/item_effects.asm)
const_def
const NO_ITEM ; 00
const MASTER_BALL ; 01
const ULTRA_BALL ; 02
const BR... |
; A256257: 6 times numbers of Gould's sequence A001316.
; 6,12,12,24,12,24,24,48,12,24,24,48,24,48,48,96,12,24,24,48,24,48,48,96,24,48,48,96,48,96,96,192,12,24,24,48,24,48,48,96,24,48,48,96,48,96,96,192,24,48,48,96,48,96,96,192,48,96,96,192,96,192,192,384,12,24,24,48,24,48,48,96,24,48,48,96,48,96,96,192
mov $1,$0
lpb ... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_dkud1_UpnUp1
_ff_dkud1_UpnUp1:
BINARY "font/fzx/fonts/dkud1/UpnUp/up&up.fzx"
|
#pragma once
#include <Arduino.h>
#include <ArduinoJson.h>
#include <Streaming.h>
#include "Config.hpp"
#include "Firmware.hpp"
#include "Hardware.hpp"
#include "Http.hpp"
#include "Mqtt.hpp"
#include "Ota.hpp"
#include "System.hpp"
#include "Timer.hpp"
#include "Transducer/AbstractActuator.hpp"
#include "Transducer/A... |
#pragma once
#ifndef ZGRAPH_GRAPH_ZADJACENCY_LIST_DIGRAPH_HPP
#define ZGRAPH_GRAPH_ZADJACENCY_LIST_DIGRAPH_HPP
#include <cstdint>
#include <iostream>
#include <map>
#include <set>
#include <array>
#include "zgraph/graph/detail/zgraph_items.hpp"
#include "zgraph/graph/detail/zgraph_maps.hpp"
#include "zgraph/graph/zg... |
; ===============================================================
; May 2017
; ===============================================================
;
; void *tshr_saddrcdown(void *saddr)
;
; Modify screen address to move down one character (eight pixels)
;
; ===============================================================
S... |
; uint in_LookupKey(uchar c)
; 09.2005 aralbrec
SECTION code_clib
PUBLIC in_LookupKey
PUBLIC _in_LookupKey
EXTERN in_keytranstbl
; Given the ascii code of a character, returns the scan row and mask
; corresponding to the key that needs to be pressed to generate the
; character. Eg: Calling LookupKey with character '... |
; A003461: Bode numbers multiplied by 10: 4 + 3*floor(2^(n-1)).
; 4,7,10,16,28,52,100,196,388,772,1540,3076,6148,12292,24580,49156,98308,196612,393220,786436,1572868,3145732,6291460,12582916,25165828,50331652,100663300,201326596,402653188,805306372,1610612740,3221225476,6442450948,12884901892,25769803780,51539607556,10... |
; A136506: a(n) = binomial(2^n + 2, n).
; 1,4,15,120,3060,278256,90858768,105637584000,436355999662176,6431591598617108352,340881559632021623909760,65533747894341651530074060800,46081376018330435634530315478453248
mov $1,2
pow $1,$0
add $1,2
bin $1,$0
mov $0,$1
|
%define BPM 100
%include "../src/sointu.inc"
BEGIN_PATTERNS
PATTERN 64, HLD, HLD, HLD, HLD, HLD, HLD, HLD, 0, 0, 0, 0, 0, 0, 0, 0
END_PATTERNS
BEGIN_TRACKS
TRACK VOICES(1),0
END_TRACKS
BEGIN_PATCH
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
SU_LOADVAL MONO,VALUE(0)
SU_LOADVAL MON... |
ShouldOverrideFileLoad:
; Y = Graphics file being loaded
CPY #$0A ; 0A = Ice/Mire floor file
BNE .no
LDA $040C ; Dungeon number
CMP #$12 ; Ice Palace
BEQ .yes
.no
CLC : RTS
.yes
SEC : RTS
BgGraphicsLoading:
; Instructions overwritten
STZ $00
STX $01
STA $02
... |
;
; jidctflt.asm - floating-point IDCT (64-bit SSE & SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice ... |
dc.w AniTails2P_Tail00-AniTails2P_Tail
dc.w AniTails2P_Tail01-AniTails2P_Tail
dc.w AniTails2P_Tail01-AniTails2P_Tail
dc.w AniTails2P_Tail03-AniTails2P_Tail
AniTails2P_Tail00:dc.b $20, 0, $FF
AniTails2P_Tail01:dc.b 7, 1, 2, 3, $FF
AniTails2P_Tail03:dc.b $FC, 4, 5, 6, $FF
even
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Problem 5:
;; Write an assembly language program to find the largest number in 15 binary
;; numbers read from Data Space. Get the numbers from the Data Space starts
;; from 0x0100. Output the result to Port B. (use register z to g... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r9
push %rax
push %rsi
lea addresses_WT_ht+0xaba3, %r11
nop
nop
nop
nop
cmp %r9, %r9
movw $0x6162, (%r11)
nop
nop
nop
nop
cmp $38269, %r9
lea addresses_UC_ht+0xfcb3, %rsi
nop
nop
nop
nop
xor $39870, %r12
movups (%rsi), %xmm1
vpex... |
; A066983: a(n+2) = a(n+1) + a(n) + (-1)^n, with a(1) = a(2) = 1.
; 1,1,1,3,3,7,9,17,25,43,67,111,177,289,465,755,1219,1975,3193,5169,8361,13531,21891,35423,57313,92737,150049,242787,392835,635623,1028457,1664081,2692537,4356619,7049155,11405775,18454929,29860705,48315633,78176339,126491971,204668311,331160281,53582859... |
# mediaEMediaQuadrados.asm
#
# DESC: Escrever um programa que le 10 inteiros do teclado que calcule a sua media e a media de seus quadrados e informar os resultados ao usuario
#
# DDA: 18-03-2021
.data
str1: "Digite um numero: "
arr: .space 40
i: 0
arr_length: 10
.text
# Ganhar acesso a primeira posicao de arr
... |
; A086374: Number of factors over Q in the factorization of T_n(x) + 1 where T_n(x) is the Chebyshev polynomial of the first kind.
; 1,2,3,2,3,4,3,2,5,4,3,4,3,4,7,2,3,6,3,4,7,4,3,4,5,4,7,4,3,8,3,2,7,4,7,6,3,4,7,4,3,8,3,4,11,4,3,4,5,6,7,4,3,8,7,4,7,4,3,8,3,4,11,2,7,8,3,4,7,8,3,6,3,4,11,4,7,8,3,4,9,4,3,8,7,4,7,4,3,12,7,4... |
//------------------------------------------------------------------------------
// File: DDMM.cpp
//
// Desc: DirectShow base classes - implements routines for using DirectDraw
// on a multimonitor system.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xca41, %rax
nop
nop
dec %r14
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
movups %xmm1, (%rax)
nop
and $24734, %rax
lea addresses_normal_ht+0xa74d, %rsi
lea addresses_WT_ht+0x13e... |
; ----------------------------------------------------------------------------
; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and
; Amstrad CPC.
; ----------------------------------------------------------------------------
; ----------------------------------------------------------------------------... |
// The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.com>
//
// 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 r... |
; FILE *fopen(const char *filename, const char *mode)
SECTION code_stdio
PUBLIC _fopen
EXTERN l0_fopen_callee
_fopen:
pop af
pop hl
pop de
push de
push hl
push af
jp l0_fopen_callee
|
; A017394: a(n) = (11*n)^6.
; 0,1771561,113379904,1291467969,7256313856,27680640625,82653950016,208422380089,464404086784,941480149401,1771561000000,3138428376721,5289852801024,8550986578849,13339032325696,20179187015625,29721861554176,42761175875209,60254729561664,83344647990241,113379904000000,151939915084881,2008594... |
; A192068: a(n) = Fibonacci(2*n) - (n mod 2).
; 0,3,7,21,54,144,376,987,2583,6765,17710,46368,121392,317811,832039,2178309,5702886,14930352,39088168,102334155,267914295,701408733,1836311902,4807526976,12586269024,32951280099,86267571271,225851433717,591286729878
lpb $0
mov $2,$0
trn $0,2
seq $2,5248 ; Bisection ... |
; A165866: Totally multiplicative sequence with a(p) = 45.
; Submitted by Jon Maiga
; 1,45,45,2025,45,2025,45,91125,2025,2025,45,91125,45,2025,2025,4100625,45,91125,45,91125,2025,2025,45,4100625,2025,2025,91125,91125,45,91125,45,184528125,2025,2025,2025,4100625,45,2025,2025,4100625,45,91125,45,91125,91125,2025,45,18452... |
; A056545: a(n) = 4*n*a(n-1) + 1 with a(0)=1.
; Submitted by Jamie Morken(s2)
; 1,5,41,493,7889,157781,3786745,106028861,3392923553,122145247909,4885809916361,214975636319885,10318830543354481,536579188254433013,30048434542248248729,1802906072534894923741,115385988642233275119425,7846247227671862708120901,5649298003923... |
;;; Copyright (c) 1995, Colin Plumb.
;;; For licensing and other legal details, see the file legal.c.
;;;
;;; Assembly primitives for bignum library, 80386 family, 32-bit code.
;;;
;;; Several primitives are included here. Only lbnMulAdd1 is *really*
;;; critical, but once that's written, lnmMulN1 and lbnMulSub1 are q... |
; A075692: Upper irredundance number for queens graph Q_n on n^2 nodes.
; 1,1,2,4,5,7,9,11,13,15
mov $1,$0
pow $1,2
sub $1,$0
add $0,1
mul $1,2
div $1,$0
mov $0,$1
add $0,1
|
; A246780: Strictly increasing terms of the sequence A246778: a(1)= A246778(1) and for n>0 a(n+1) is next term greater than a(n) after that a(n) appears in A246778 for the first time.
; 2,3,4,6,8,9,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52... |
;Compressed bitmaps for the font used by HT2.
;
; Five nibbles (2.5 bytes) per character
; Will be unpacked to 5 bytes per character
; Currently 0x00 to 0x1a => 27 different characters
; - Compressed space in RAM = 27*2.5 = 67.5 => 68 bytes = 0x44
; - Uncompressed space in RAM = 27*5 = 135 bytes = 0x87
; Then right-sh... |
/*! \file
\brief A character width.
Copyright (C) 2019-2021 kaoru https://www.tetengo.org/
*/
#include <cstddef>
#include <boost/preprocessor.hpp>
#include <boost/test/unit_test.hpp>
#include <tetengo/text/grapheme_splitting/character_width.hpp>
namespace
{
class concrete_character_wi... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/resiliencehub/model/DeleteAppRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ResilienceHub::Model;
using namespace Aws::Utils::Json;
... |
; A052907: Expansion of 1/(1 - 2*x^2 - 2*x^3).
; Submitted by Christian Krause
; 1,0,2,2,4,8,12,24,40,72,128,224,400,704,1248,2208,3904,6912,12224,21632,38272,67712,119808,211968,375040,663552,1174016,2077184,3675136,6502400,11504640,20355072,36014080,63719424,112738304,199467008,352915456,624410624,1104764928,19546521... |
; *****************************************************************************
; *****************************************************************************
;
; Name: sourunary.asm
; Purpose: Sour16 unary routines
; Date: 21st June 2020
; Author: Paul Robson (paul@robsons.org.uk)
;
; ************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.