text stringlengths 1 1.05M |
|---|
;
; System Call for REX6000
;
; $Id: DbUpdateRecord.asm,v 1.2 2015/01/19 01:33:06 pauloscustodio Exp $
;
; extern INT DbUpdateRecord( int, ... );
;
PUBLIC DbUpdateRecord
.DbUpdateRecord
ld b,a
ld ix,2
add ix,sp
.DbUpdateRecord_1
ld l,(ix+0)
ld h,(ix+1)
push hl
inc ix
inc ix
djnz DbUp... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434445464748",
"RDX": "0x0",
"RDI": "0xE000000E",
"RSI": "0xDFFFFFFE"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
... |
db "SCARECROW@" ; species name
db "Packs of them"
next "follow travelers"
next "through the desert"
page "until the group of"
next "travelers are too"
next "tired to move.@"
|
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "sum_range.h"
TEST_CASE("Test sum range with while", "Range min to max")
{
REQUIRE(sum_range(1, 3) == 6);
REQUIRE(sum_range(1, 4) == 10);
REQUIRE(sum_range(50, 100) == 3825);
} |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x7624, %r15
nop
nop
nop
dec %r8
mov (%r15), %edx
inc %r15
lea addresses_A_ht+0xd0d8, %r9
nop
nop
nop
inc %rcx
mov $0x6162636465666768, %r15
movq %r15, %xmm0
and $0xffffffffffff... |
def main(en:bool, a0:i8<4>, b0:i8<4>, a1:i8<4>, b1:i8<4>, a2:i8<4>, b2:i8<4>, a3:i8<4>, b3:i8<4>, a4:i8<4>, b4:i8<4>, a5:i8<4>, b5:i8<4>, a6:i8<4>, b6:i8<4>, a7:i8<4>, b7:i8<4>, a8:i8<4>, b8:i8<4>, a9:i8<4>, b9:i8<4>, a10:i8<4>, b10:i8<4>, a11:i8<4>, b11:i8<4>, a12:i8<4>, b12:i8<4>, a13:i8<4>, b13:i8<4>, a14:i8<4>, b14... |
/*
* Copyright (c) 2015 - Adjacent Link LLC, Bridgewater, New Jersey
* 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
... |
; A076510: Expansion of 3*(1+2*x+6 x^2)/(1-24*x^3).
; 3,6,18,72,144,432,1728,3456,10368,41472,82944,248832,995328,1990656,5971968,23887872,47775744,143327232,573308928,1146617856,3439853568,13759414272,27518828544,82556485632,330225942528,660451885056
mov $1,1
mov $2,1
lpb $0
sub $0,1
add $2,1
mul $1,$2
dif $2... |
; A091054: Expansion of (1 - 5*x - 2*x^2) / ((1 - x)*(1 + 2*x)*(1 - 6*x)).
; Submitted by Jamie Morken(s3)
; 1,0,6,18,138,762,4698,27930,168090,1007514,6047130,36278682,217680282,1306065306,7836424602,47018482074,282111023514,1692665878938,10155995797914,60935973738906,365615844530586,2193695062989210,13162170386323866... |
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 6.0.0-SNAPSHOT.
* https://openapi-generator.tech
... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_OF|FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF|FLAG_CF
;TEST_FILE_META_END
; allocate 16 byte aligned stack space for the packed values
;TEST_BEGIN_RECORDING
lea ecx, [esp-0x20]
and ecx, 0xfffffff0
; load 128 bit value into xmm0
mov DWORD [ecx], 0x8234567... |
.data
msg1:.asciiz"Enter Number 1 "
msg2:.asciiz"Enter Number 2 "
msg3:.asciiz"The Sum Is: "
.text
li $v0,4
la $a0,msg1
syscall
li $v0,5
syscall
move $t0,$v0
li $v0,4
la $a0,msg2
syscall
li $v0,5
syscall
move $t1,$v0
li $v0,4
la $a0,msg3
syscall
add $t2,$t1,$t0
li $v0,1
move $a0,$t2
syscall
|
; A059155: A hierarchical sequence (S(W'2{3}c) - see A059126).
; 12,120,1008,8160,65472,524160,4194048,33553920,268434432,2147481600,17179865088,137438945280,1099511611392,8796092989440,70368744112128,562949953290240,4503599627108352,36028797018439680,288230376150663168,2305843009211596800,18446744073705357312,14757395... |
////////////////////////////////////////////////////////////////////////////////
//! \file Attributes.hpp
//! \brief The Attributes class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef XML_ATTRIBUTES_HPP
#define XML_ATTRIBUTES_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include "A... |
; A107684: Union of sequences 2^k-1, 2^k and 2^k+1.
; 0,1,2,3,4,5,7,8,9,15,16,17,31,32,33,63,64,65,127,128,129,255,256,257,511,512,513,1023,1024,1025,2047,2048,2049,4095,4096,4097,8191,8192,8193,16383,16384,16385,32767,32768,32769,65535,65536,65537,131071
mov $2,$0
lpb $0
trn $1,$2
add $0,$1
add $1,$0
sub $2,3... |
;////////////////////////////////////////////////////////////////////////////////////////////////////////
;// Part of Injectable Generic Camera System
;// Copyright(c) 2017, Frans Bouma
;// All rights reserved.
;// https://github.com/FransBouma/InjectableGenericCameraSystem
;//
;// Redistribution and use in source and ... |
; A298031: Coordination sequence of Dual(3.4.6.4) tiling with respect to a tetravalent node.
; 1,4,10,16,30,36,48,54,66,72,84,90,102,108,120,126,138,144,156,162,174,180,192,198,210,216,228,234,246,252,264,270,282,288,300,306,318,324,336,342,354,360,372,378,390,396,408,414,426,432,444,450,462,468,480,486,498,504,516,522... |
#include "ClusterProviderStep.h"
using namespace arangodb::graph;
namespace arangodb::graph {
auto operator<<(std::ostream& out, ClusterProviderStep const& step)
-> std::ostream& {
out << step._vertex.getID();
return out;
}
} // namespace arangodb::graph
ClusterProviderStep::ClusterProviderStep(const Vertex... |
; A077265: Number of cycles in the n-th order prism graph.
; 14,28,52,94,170,312,584,1114,2158,4228,8348,16566,32978,65776,131344,262450,524630,1048956,2097572,4194766,8389114,16777768,33555032,67109514,134218430,268436212,536871724,1073742694,2147484578,4294968288,8589935648,17179870306
add $0,2
mov $1,2
lpb $0
sub... |
; A055217: a(n) = sum of the first n coefficients of (1+x+x^2)^n.
; Submitted by Jon Maiga
; 1,3,10,31,96,294,897,2727,8272,25048,75747,228826,690691,2083371,6280650,18925047,57002616,171633840,516632307,1554702516,4677501237,14069962041,42314975352,127240600050,382555886571,1150026301089,3456763664392,10389276050527,3... |
; A067866: Numbers n such that n and 2^n end with the same three digits.
; 736,1736,2736,3736,4736,5736,6736,7736,8736,9736,10736,11736,12736,13736,14736,15736,16736,17736,18736,19736,20736,21736,22736,23736,24736,25736,26736,27736,28736,29736,30736,31736,32736,33736,34736
mul $0,1000
add $0,736
|
org 100h
FOR_RED=$4
FOR_BLUE=$1
FOR_GREEN=$2
BACK_BLUE=$10
BACK_GREEN=$20
BACK_RED=$40
BLINK=$80
INTENSITY=$8
mov ah,FOR_BLUE
call BatBox_ScreenInit
mov ah,09
mov dx,lpEnter
int 21h
mov cx,30
Print:
mov si,lpMsg2
mov [iAttr],cl
call BatBox_Puts
loop Print
mov ch,10
Print1:
mov si,lpMsg
mov [iAttr],ch
call Ba... |
; Define a border V2.01 1998 Tony Tebby
;
; 2003-10-06 2.01 Fixed extended colour calls with width=0. (MK)
;
; A border is put around the inside edge of the hit area, and the active
; area shrunk appropriately.
;
; Registers:
; Entry Exit
; D1 colour
; D2 width
; A0 cdb
;
section con
include 'dev8_keys_er... |
; unsigned char esx_dos_catalog(struct esx_cat *cat)
INCLUDE "config_private.inc"
SECTION code_esxdos
PUBLIC asm_esx_dos_catalog
PUBLIC l_asm_esx_dos_catalog
EXTERN error_znc, __esxdos_error_mc
IF __ZXNEXT
asm_esx_dos_catalog:
; enter : hl = struct esx_cat *cat (some members initialized)
; not... |
// Assembler: KickAssembler
// Rasterbars met behulp van een interrupt service routine
BasicUpstart2(start)
.var scr_clear_char = ' '
.var scr_clear_color = $0f
.var raster = 40
* = $0810 "start"
start:
jsr scr_clear
lda #$00
sta $d020
sta $d021
jsr irq_init
jmp *
irq:
asl $d019
// BEGIN kernel
inc $d020... |
; A061711: a(n) = n!*n^n.
; 1,1,8,162,6144,375000,33592320,4150656720,676457349120,140587147048320,36288000000000000,11388728893445164800,4270826380475341209600,1886009588552176549862400,968725766854884321342259200,572622616354851562500000000000,385957350371934133200258859008000,294238961167812617133047996116992000,251... |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
EXTERN asm_AES_encrypt:NEAR
EXTERN asm_AES_decrypt:NEAR
ALIGN 64
_bsaes_encrypt8 PROC PRIVATE
lea r11,QWORD PTR[$L$BS0]
movdqa xmm8,XMMWORD PTR[rax]
lea rax,QWORD PTR[16+rax]
movdqa xmm7,XMMWORD PTR[80+r11]
pxor xmm15,xmm8
pxor xmm0,xmm8
pxor xmm1,xmm8
pxor xm... |
; ---------------------------------------------------------------------------
; Animation script - Eggman on the "TRY AGAIN" and "END" screens
; ---------------------------------------------------------------------------
Ani_EEgg: dc.w @tryagain1-Ani_EEgg
dc.w @tryagain2-Ani_EEgg
dc.w @end-Ani_EEgg
@tryagain1: dc.b... |
; A306367: a(n) = numerator of (n^2 + 2)/(n + 2).
; 1,1,3,11,3,27,19,17,33,83,17,123,73,57,99,227,43,291,163,121,201,443,81,531,289,209,339,731,131,843,451,321,513,1091,193,1227,649,457,723,1523,267,1683,883,617,969,2027,353,2211,1153,801,1251,2603,451,2811,1459,1009,1569,3251,561,3483,1801,1241,1923,3971,683,4227,2179... |
; A294305: Sum of the tenth powers of the parts in the partitions of n into two distinct parts.
; 0,0,1025,59050,1108650,10815226,71340451,352767124,1427557524,4904576300,14914341925,40791300350,102769130750,240345147350,529882277575,1105458926376,2206044295976,4218551412024,7792505423049,13913571680850,24163571680850,... |
unitInfoType = "vtx_uh60_rscUnitInfoMinimal";
unitInfoTypeLite = "vtx_uh60_rscUnitInfoMinimal";
unitInfoTypeRTD = "vtx_uh60_rscUnitInfoMinimal";
// unitInfoType = "RscUnitInfoAir";
// unitInfoTypeLite = "RscUnitInfoAirRTDBasic";
// unitInfoTypeRTD = "RscUnitInfoAirRTDFullDigital"; |
TITLE Indirect Recursion (Recurse.asm)
; Demonstration of the kind of indirect recursion that
; beginning programmers often use to avoid using
; a loop. As each call to ShowMenu occurs, it piles
; up a lot of return addresses on the stack, which
; must later be unwound before control returns to ma... |
; A066713: RATS(2^n): Reverse Add the digits of 2^n, Then Sort: a(n) = A036839(2^n).
; Submitted by Jamie Morken(s3)
; 2,4,8,16,77,55,11,499,89,277,2255,145,11,1111,44567,111499,12299,1234,3467,113467,677789,144556,1222889,14445667,4577789,55669999,1134899,11356999,12237899,445557799,1223555555,11113366,1122222266,1133... |
# Counter: Wraps an integer, can be incremented
.class Counter:Obj
.field i
# Constructor takes a single argument, an
# Int object
.method $constructor
.args n
enter
load n
load $
store_field $:i
load $ # Return the initialized object
return 1
.method inc
enter
const 1
load $
... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012-2014 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby g... |
;
; Startup for Hübler/Evert-MC
;
; https://hc-ddr.hucki.net/wiki/doku.php/homecomputer/huebler#hueblerevert-mc
;
module hemc_crt0
INCLUDE "target/hemc/def/hemc.def"
;--------
; Include zcc_opt.def to find out some info
;--------
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------
; Some scope defin... |
###############################################################################
# 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... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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, copy, modify, merge, publi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x9e04, %r10
sub %r8, %r8
mov $0x6162636465666768, %rsi
movq %rsi, %xmm7
movups %xmm7, (%r10)
nop
nop
nop
nop
add $7601, %rsi
lea addresses_WC_ht+0x10a74, %rsi
lea addresses_D_ht+0x4c34, %rdi
cmp ... |
; A021198: Decimal expansion of 1/194.
; 0,0,5,1,5,4,6,3,9,1,7,5,2,5,7,7,3,1,9,5,8,7,6,2,8,8,6,5,9,7,9,3,8,1,4,4,3,2,9,8,9,6,9,0,7,2,1,6,4,9,4,8,4,5,3,6,0,8,2,4,7,4,2,2,6,8,0,4,1,2,3,7,1,1,3,4,0,2,0,6,1,8,5,5,6,7,0,1,0,3,0,9,2,7,8,3,5,0,5
add $0,2
mov $2,10
pow $2,$0
div $2,1940
mov $0,$2
mod $0,10
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; zx spectrum ram model ;;
;; generated by target/zx/startup/zx_crt_ram.m4 ;;
;; ;;
;; 48k memory model (flat 64k address space) ;;... |
; A297619: a(n) = 2*a(n-1) + 2*a(n-2) - 4*a(n-3), a(1) = 0, a(2) = 0, a(3) = 8.
; 0,0,8,16,48,96,224,448,960,1920,3968,7936,16128,32256,65024,130048,261120,522240,1046528,2093056,4190208,8380416,16769024,33538048,67092480,134184960,268402688,536805376,1073676288,2147352576,4294836224,8589672448,17179607040,34359214080,... |
; A052536: Number of compositions of n when parts 1 and 2 are of two kinds.
; 1,2,6,17,49,141,406,1169,3366,9692,27907,80355,231373,666212,1918281,5523470,15904198,45794313,131859469,379674209,1093228314,3147825473,9063802210,26098178316,75146709475,216376326215,623030800329,1793945691512,5165460748321,14873351444634,4... |
;Addition of 2 16-bit numbers
jmp START
num1: DB 00H,03H ;1st 16-bit number
num2: DB 05H,06H ;2nd 16-bit number
result: DB 00H,00H,00H ;16-bit result
START: xra a
lhld num1 ;get number 1
xchg
lhld num2 ;get number 2
dad d ;add the numbers
jnc NEXT ;skip if no carry is generated
inr a ;increment if carr... |
; the method used in the original PutInt8 is quite general and could be used with integers of any size
; this method on the other hand, is quite simple and straight-forward, but is not general at all
global _start
extern ExitProcess
%include "lib.h"
section .data
newline db 10, 0
negative_sign db "-", 0
sec... |
; A082081: a(n) = fixed point when the pseudo-log function A008475[ ] is iterated.
; Submitted by Simon Strandgaard
; 0,2,3,4,5,5,7,8,9,7,11,7,13,9,8,16,17,11,19,9,7,13,23,11,25,8,27,11,29,7,31,32,9,19,7,13,37,7,16,13,41,7,43,8,9,25,47,19,49,27,9,17,53,29,16,8,13,31,59,7,61,9,16,64,11,16,67,7,8,9,71,17,73,16,11,23,11,1... |
Name: ys_w49.asm
Type: file
Size: 15766
Last-Modified: '2016-05-13T04:51:16Z'
SHA-1: 8C676387C23DB032CBA3A00B0E0AD785646350D5
Description: null
|
#include "Platform.inc"
#include "States.inc"
radix decimal
SunriseSunset code
global calculateSunriseAndSunset
calculateSunriseAndSunset:
.unknownBank
setSunriseSunsetState SUN_STATE_CALCULATESUNRISE
return
end
|
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Get current volume
;
; $Id: get_volume_list.asm,v 1.1 2011/08/03 08:13:40 stefano Exp $
;
INCLUDE "flos.def"
XLIB get_volume_list
get_volume_list:
jp kjt_get_volume_info
|
; O3 Ozone Project Lab
; main.asm
; link to another asm file icalc.asm
; Hudson Schumaker
bits 64
extern _printf, _o3add, _o3sub, _o3mult, _o3pow, _o3div
section .data
fmtint db "%d", 0xa, 0x0
section .text
global _main
_main:
mov rbp, rsp ; adjust the stack
push rbp
mov rax, 0 ; no floa... |
obj/__user_spin.out: 文件格式 elf32-i386
Disassembly of section .text:
00800020 <__panic>:
#include <stdio.h>
#include <ulib.h>
#include <error.h>
void
__panic(const char *file, int line, const char *fmt, ...) {
800020: 55 push %ebp
800021: 89 e5 mov %esp,%ebp
800023: ... |
; A047330: Numbers that are congruent to {0, 1, 3, 5, 6} mod 7.
; 0,1,3,5,6,7,8,10,12,13,14,15,17,19,20,21,22,24,26,27,28,29,31,33,34,35,36,38,40,41,42,43,45,47,48,49,50,52,54,55,56,57,59,61,62,63,64,66,68,69,70,71,73,75,76,77,78
mov $1,$0
lpb $0
add $1,$0
sub $1,1
mov $3,$0
sub $0,4
trn $0,1
mov $2,$3
t... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xa410, %r10
nop
nop
nop
nop
nop
cmp $54177, %r9
movl $0x61626364, (%r10)
nop
nop
nop
nop
nop
sub $40046, %rax
lea addresses_WC_ht+0x3510, %rsi
lea addresses_WC_ht+0x15c4a, %rd... |
; A316964: Same as A316669, except numbering of the squares starts at 0 rather than 1..
; 0,1,2,4,3,5,8,6,7,9,13,10,11,12,14,19,15,16,17,18,20,26,21,22,23,24,25,27,34,28,29,30,31,32,33,35,43,36,37,38,39,40,41,42,44,53,45,46,47,48,49,50,51,52,54,64,55,56,57,58,59,60,61,62,63,65,76,66,67,68,69,70,71,72,73,74,75,77,89,78,... |
test START 0
EXTDEF foo
foo +ADD #10
EXTREF baz
EXTDEF foo, bar, bar, baz . warning: duplicate export, error: export imported
END test
|
; A152009: (L)-sieve transform of {1,4,7,10,...,3n-2,...} (A016777)
; 1,3,6,10,16,25,39,60,91,138,208,313,471,708,1063,1596,2395,3594,5392,8089,12135,18204,27307,40962,61444,92167
mov $2,7
lpb $0,1
sub $0,1
mul $2,12
sub $2,9
div $2,8
lpe
add $1,$2
sub $1,6
|
// dsu implementation using a map (or unordered_map)
template <typename T>
struct dsu
{
map<T, T> root;
map<T, int> size;
T find(T u)
{
if (!root.count(u)) return root[u] = u;
return root[u] == u ? u : root[u] = find(root[u]);
}
bool join(T u, T v)
{
u = find(u);
... |
;;; Copyright 2020 Tadashi G. Takaoka
;;;
;;; 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 ... |
#include <GLFW/glfw3.h>
int main(void)
{
GLFWwindow* window;
/* Initialize the library */
if (!glfwInit())
return -1;
/* Create a windowed mode window and its OpenGL context */
window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
if (!window)
{
glfwTerminate();
return -1;
}
/* Make the win... |
lda {m1}+1
bpl {la1}
|
; A246507: a(n) = 70*(n+1)*binomial(2*n+1,n+1)/(n+5).
; Submitted by Jon Maiga
; 14,70,300,1225,4900,19404,76440,300300,1178100,4618900,18106088,70984095,278369000,1092063000,4286142000,16830250920,66118842900,259878874500,1021939149000,4020523757250,15824781508536,62313700079400,245478212434000,967428110493000,3814113... |
; A049648: T(n,n+1), array T as in A049687 and T(2n,2n+2), array T given by A049639.
; 1,4,7,11,17,23,31,41,51,61,75,89,105,123,137,153,177,199,223,249,269,291,323,353,381,413,443,473,513,549,587,633,669,705,745,781,829,883,925,965,1021,1073,1127,1189,1233,1279,1347,1409,1467,1529,1581,1637
lpb $0
mov $2,$0
cal $2... |
//--------------------------------------------------------------
// ofApp.h
//--------------------------------------------------------------
#include "ofMain.h"
#include "ofxGui.h"
#include "ofxOscPlus.h"
#include "client.h"
class ofApp : public ofBaseApp{
public: // common OF methods
void setup();
void upd... |
; SCCSID = @(#)IBMIOCTL.INC 1.1 85/04/10
IBM EQU 0FFFFH ;TRUE
INCLUDE IOCTL.INC
SCCSID = @(#)IBMIOCTL.INC 1.1 85/04/10
|
; A104293: a(n) = prime((prime(n)-1)/2).
; 2,3,5,11,13,19,23,31,43,47,61,71,73,83,101,109,113,137,149,151,167,179,193,223,229,233,241,251,263,307,313,337,347,373,379,397,419,431,443,461,463,499,503,521,523,571,607,617,619
seq $0,98090 ; Numbers k such that 2k-3 is prime.
sub $0,3
seq $0,6093 ; a(n) = prime(n) - 1.
add... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D54 move.b #$0, ($5e,A0)
004D5A bra $4dd6
004D6C move.b #$10, ($5e,A0) [123p+ 2]
004D72 bra $4dd6 [123p+ 5E]
004D84 move.b #$20, ($5e,A0) [123p+ 2]
004D8A bra $4dd6 [123p+ 5E]
004D94 ... |
;; @file
; This file provides assembly 64-bit atomic reads/writes required for memory initialization.
;
; Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;;
.686p
.xmm
.model small, c
.CODE
;------------------------------------------------------------... |
;
;/*
; * FreeRTOS Kernel V10.4.1
; * 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 restrictio... |
; A290059: a(n) = binomial(2*prime(n)-1, prime(n)-1) where prime(n) is the n-th prime.
; 3,10,126,1716,352716,5200300,1166803110,17672631900,4116715363800,15033633249770520,232714176627630544,873065282167813104916,212392290424395860814420,3318776542511877736535400,812850570172585125274307760,313626252930612572476495383... |
;; Sub-routine for printing new line
;; using BIOS interrupts print two ASCII symbols:
;; new line = 0x0A
;; carriage return = 0x0D
[bits 16]
print_nl:
;; store all register values
pusha
;; prepare for BIOS interrupt
mov ah, 0x0E
mov al, 0x0A
int 0x10
mov al, 0x0D
int 0x10
;; restore all registers
popa
r... |
!!ARBfp1.0
# This is the fragment program for one
# component data with shading
# We need some temporary variables
TEMP index, normal, finalColor;
TEMP temp1, temp2, temp3;
TEMP sampleColor;
TEMP ndotl, ndoth, ndotv;
TEMP lightInfo, lightResult;
# We are going to use the first
# texture coordinate
ATTRIB ... |
/* /////////////////////////////////////////////////////////////////////////
* File: comstl/functional/functionals.hpp
*
* Purpose: Interface-specific predicates and functions.
*
* Created: 14th June 2002
* Updated: 19th February 2017
*
* Home: http://stlsoft.org/
*
* Copyright (c) 2... |
; A017020: a(n) = (7*n + 3)^4.
; 81,10000,83521,331776,923521,2085136,4100625,7311616,12117361,18974736,28398241,40960000,57289761,78074896,104060401,136048896,174900625,221533456,276922881,342102016,418161601,506250000,607573201,723394816,855036081,1003875856,1171350625,1358954496,1568239201,1800814096,2058346161,2342... |
;
; Copyright 2018-2021 Mahdi Khanalizadeh
;
; 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... |
; A129937: The central binomial numbers Binomial[n,Floor[n/2] minus the SO(n) dimension as an algebraic projective variety dimension.
; 1,1,0,0,0,5,14,42,90,207,407,858,1638,3341,6330,12750,24174,48467,92207,184566,352506,705201,1351825,2703880,5200000,10400275,20057949,40116222,77558354,155117085
mov $2,$0
add $0,1
s... |
; DV3 QL Format Table V3.00 1992 Tony Tebby
section dv3
xdef qlf_table
xdef qlf_tbwa
include 'dev8_mac_vec'
include 'dev8_dv3_keys'
;+++
; DV3 QL5A/B Format Table
;
;---
qlf_table
vec msd_table ; next
dc.b ddf.qdos ; QL5A / QL5B / QLWA format
dc.b 0 ; real date
dc.b 0,4,'QDOS',0,0,0,0
dc.... |
;Rusu Cosmin - gr. 917, 26.11.2015, homework for lab08, problem 08
;8. Write a program which reads the name of a file and two characters from the keyboard.
;The program should replace all occurrences of the first character in that file with the
;second character given by the user.
assume cs:code, ds:data
data segm... |
ORG 2000H
MVI C, 0AH
LXI H, 3000H
LXI D, 3500H
LINK: MOV A, M
STAX D
INX H
INX D
DCR C
JNZ LINK
HLT
ORG 3000H
DB 01H, 02H, 03H, 04H, 05H, 06H, 07H, 08H, 09H, 0AH
END |
#include "Arduino.h"
#include <AS5147P.h>
#define AS5147P_DEBUG
// 1MHz clock (AMS should be able to accept up to 10MHz)
#define SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE1)
#define READCOMMAND 0b0100000000000000 // PAR=0 R/W=R
#define WRITECOMMAND 0b0000000000000000 // PAR=0 R/W=W
namespace AS5147P_REGI... |
_init: formato del fichero elf32-i386
Desensamblado de la sección .text:
00000000 <main>:
char *argv[] = { "sh", 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 ... |
;
; Amstrad CPC library
; ******************************************************
; ** Librería de rutinas para Amstrad CPC **
; ** Raúl Simarro, Artaburu 2009 **
; ******************************************************
;
; $Id: cpc_ScanKeyboard.asm $
;
SECTION code_cli... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 81 ec 30 02 00 00... |
; A063107: Dimension of the space of weight 2n cusp forms for Gamma_0( 39 ).
; 3,12,22,30,40,50,58,68,78,86,96,106,114,124,134,142,152,162,170,180,190,198,208,218,226,236,246,254,264,274,282,292,302,310,320,330,338,348,358,366,376,386,394,404,414,422,432,442,450,460
mov $1,$0
mul $1,28
div $1,3
mov $2,$0
cmp $2,0
add ... |
/*
Before anyone kicks off,
yes this file is based on shallan50k's library file
I just dont like _ and prefer to use camel case
*/
.const sprite0X = $d000
.const sprite0Y = $d001
.const sprite_1_x = $d002
.const sprite_1_y = $d003
.const sprite_2_x = $d004
.const sprite_2_y = $d005
.const sprite_3_x = $d... |
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
; test of IRRE_ASM assembly v4
; specify the label to be used as an entry point. optional.
%entry :main
; items here are placfed in the executable code section
%section code
; use BIND ("@") to define a macro
; the argument list is followed by MARK (":")
add2@ rA rB v0 : ; this macro sets rA = rB + v0
set ad ... |
#pragma once
#include <algorithm>
#include <cassert>
#include <limits>
#include <queue>
#include <vector>
// CUT begin
// MinCostFlow based on AtCoder Library, no namespace, no private variables, compatible with C++11
// **NO NEGATIVE COST EDGES**
// Reference: https://atcoder.github.io/ac-library/production/document_... |
; ASM code generated by mikroVirtualMachine for PIC - V. 8.0.0.0
; Date/Time: 18-Jun-20 11:26:38 PM
; Info: http://www.mikroe.com
; ADDRESS OPCODE ASM
; ----------------------------------------------
$0000 $EF6A F002 GOTO _main
$0008 $ _Delay_1us:
$0008 $0000 NOP
$000A $0000 NOP
$000C $0... |
; A258710: Motzkin numbers A001006 read mod 11.
; Submitted by Christian Krause
; 1,1,2,4,9,10,7,6,4,10,10,1,1,2,4,9,10,7,6,4,9,0,3,3,6,1,5,8,10,7,1,6,10,7,7,3,6,8,4,5,9,6,9,10,8,8,5,10,6,3,1,4,10,9,8,7,7,3,6,8,4,5,9,6,3,5,9,9,7,3,4,2,8,10,3,8,7,8,8,5,10,6,3,1,4,10
seq $0,1006 ; Motzkin numbers: number of ways of draw... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
// dear imgui: Platform Backend for GLFW
// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..)
// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.)
// (Requires: GLFW 3.1+. Prefer GLFW 3.3+ for full feature supp... |
#initial
lui $1,0x2819
ori $1,$1,0x9384
lui $2,0x7cfd
ori $2,$2,0x5738
lui $3,0x883c
ori $3,$3,0x8847
lui $4,0x9382
ori $4,$4,0xacfe
sw $1,0($0)
sw $2,4($0)
sw $3,8($0)
sw $4,12($0)
#lh
ori $5,$0,5
addi $5,$5,1
lh $1,0($5)
ori $6,$0,6
ori $7,$0,7
lh $2,2($6)
xori $5,$2,0x8846
addiu $7,$7,1
lui $4,0xfffe
xor $4,$5,$4
lh... |
; A138297: Rows of triangle A138060 converge to this sequence.
; 1,2,3,4,1,1,2,1,2,3,1,2,3,4,1,2,3,4,1
lpb $0
sub $0,4
lpb $0
add $1,1
sub $0,$1
lpe
lpe
add $0,1
|
SECTION code_fp_math48
PUBLIC asm_llround
EXTERN am48_llround
defc asm_llround = am48_llround
|
/* io/getchar.asm
* Read a char from stdin
*
* Programmer: Mayer Goldberg, 2010
*/
GETCHAR:
IN(R0, IMM(1));
RETURN;
|
; -*- fundamental -*- (asm-mode sucks)
; ****************************************************************************
;
; pxelinux.asm
;
; A program to boot Linux kernels off a TFTP server using the Intel PXE
; network booting API. It is based on the SYSLINUX boot loader for
; MS-DOS floppies.
;
; Copyright 1994... |
#define USE_SYNTAX
#define USE_PGMEM
#define USE_PGMCNV
#define USE_PGMXMS
#define USE_STDIO
#define USE_STDLIB
#define USE_MEM
#define USE_ERROR
#include <pub\config.hpp>
#include <inccnt.list.hpp>
struct pair
{
pg_mem pgm;
uint16 seed;
};
pair table[pg_mem_page_cmax];
word table_cnt;
... |
db "DRAGON@" ; species name
db "It sheds many lay-"
next "ers of skin as it"
next "grows larger. Dur-"
page "ing this process,"
next "it is protected by"
next "a rapid waterfall.@"
|
; the TRAP vector table
.ORIG x0000
.FILL 612 ; x00
.FILL 612 ; x01
.FILL 612 ; x02
.FILL 612 ; x03
.FILL 612 ; x04
.FILL 612 ; x05
.FILL 612 ; x06
.FILL 612 ; x07
.FILL 612 ; x08
.FILL 612 ; x09
.FILL 612 ; x0A
.FILL 612 ; x0B
.FILL 612 ; x0C
.FILL 612 ; x0D... |
#include "XMLHttpRequest.h"
#include <Babylon/JsRuntime.h>
#include <Babylon/Polyfills/XMLHttpRequest.h>
namespace Babylon::Polyfills::Internal
{
namespace
{
namespace ResponseType
{
constexpr const char* Text = "text";
constexpr const char* ArrayBuffer = "arraybuffer";
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.