repo_id
string
size
int64
file_path
string
content
string
vvaltchev/tilck
1,333
kernel/arch/i386/vdso.S
# SPDX-License-Identifier: BSD-2-Clause .intel_syntax noprefix #define ASM_FILE 1 #include <tilck_gen_headers/config_mm.h> #include <tilck/kernel/arch/i386/asm_defs.h> .code32 .text .global vdso_begin .global vdso_end .align 4096 vdso_begin: .align 4 # Sysexit will jump to here when returning to usermode and will...
vvaltchev/tilck
9,829
kernel/arch/x86_64/start.S
# SPDX-License-Identifier: BSD-2-Clause .intel_syntax noprefix #define ASM_FILE 1 #include <tilck_gen_headers/config_global.h> #include <tilck_gen_headers/config_kernel.h> #include <tilck_gen_headers/config_boot.h> #include <tilck/kernel/arch/x86_64/asm_defs.h> #include <multiboot.h> .code32 .section bss .global ...
vvaltchev/tilck
3,274
kernel/arch/x86_64/misc.S
# SPDX-License-Identifier: BSD-2-Clause .intel_syntax noprefix #define ASM_FILE 1 #include <tilck_gen_headers/config_global.h> #include <tilck_gen_headers/config_sched.h> #include <tilck/kernel/arch/i386/asm_defs.h> #include <multiboot.h> .code64 .section .text .global asm_nop_loop .global asm_do_bogomips_loop .gl...
vvaltchev/tilck
1,196
kernel/arch/x86_64/fault_resumable.S
# SPDX-License-Identifier: BSD-2-Clause .intel_syntax noprefix #define ASM_FILE 1 #include <tilck_gen_headers/config_global.h> #include <tilck/kernel/arch/i386/asm_defs.h> .code64 .section .text .global fault_resumable_call FUNC(fault_resumable_call): // our 1st arg (mask) -> i...
VVicer/Cortex_M0_FPGA
2,197
MDK_code/startup_CMSDK_CM0.s
PRESERVE8 THUMB AREA RESET, DATA, READONLY EXPORT __Vectors __Vectors DCD 0x20000000 ; Top of Stack DCD Reset_Handler ; Reset Handler DCD 0 ; NMI Han...
vxcc-backend/vxcc-old
1,718
tests/sum.c3.s
("amd64:cmov" (opt ((max_total_cmov_inline_cost 4) (consteval_iterations 6) (loop_simplify 1) (if_eval 1))) (type ("int" simple ((float 0) (size 4) (align 4)))) (type ("int*" simple ((float 0) (size 8) (align 64)))) (type ("ulong" simple ((float 0) (size 8) (align 8)))) (type ("bool" simple ((float 0) (size 1) (align 1...
vxcc-backend/vxcc-old
2,154
tests/eltwise_add.c3.s
("amd64:cmov" (opt ((max_total_cmov_inline_cost 4) (consteval_iterations 6) (loop_simplify 1) (if_eval 1))) (type ("int*" simple ((float 0) (size 8) (align 64)))) (type ("ulong" simple ((float 0) (size 8) (align 8)))) (type ("bool" simple ((float 0) (size 1) (align 1)))) (type ("int" simple ((float 0) (size 4) (align 4...
vxcc-backend/vxcc-old
2,126
tests/strcpy.c3.s
("amd64:cmov" (opt ((max_total_cmov_inline_cost 4) (consteval_iterations 6) (loop_simplify 1) (if_eval 1))) (type ("char*" simple ((float 0) (size 8) (align 64)))) (type ("ulong" simple ((float 0) (size 8) (align 8)))) (type ("bool" simple ((float 0) (size 1) (align 1)))) (type ("char" simple ((float 0) (size 1) (align...
vxcc-backend/vxcc-old
2,013
tests/addfirst4.c3.s
("amd64:cmov" (opt ((max_total_cmov_inline_cost 4) (consteval_iterations 6) (loop_simplify 1) (if_eval 1))) (type ("int" simple ((float 0) (size 4) (align 4)))) (type ("int*" simple ((float 0) (size 8) (align 64)))) (type ("long" simple ((float 0) (size 8) (align 8)))) (cu-block (((name "addfirst4") (export 1)) (block ...
vxcc-backend/vxcc-old
2,941
tests/coltwise_reduce_sum.c3.s
("amd64:cmov" (opt ((max_total_cmov_inline_cost 4) (consteval_iterations 6) (loop_simplify 1) (if_eval 1))) (type ("int*" simple ((float 0) (size 8) (align 64)))) (type ("ulong" simple ((float 0) (size 8) (align 8)))) (type ("bool" simple ((float 0) (size 1) (align 1)))) (type ("int" simple ((float 0) (size 4) (align 4...
vxcc-backend/vxcc-old
1,920
tests/assignments.c3.s
("amd64:cmov" (opt ((max_total_cmov_inline_cost 4) (consteval_iterations 6) (loop_simplify 1) (if_eval 1))) (type ("int" simple ((float 0) (size 4) (align 4)))) (cu-block (((name "assignments") (export 1)) (block ((args (("int" 1))) (ops (((outs (("int" 0))) (name "imm") (params (("val" (uninit)))) (args ())) ((outs ((...
w296488320/JnitraceForCpp
1,077
nativeLib/src/main/cpp/hook/Dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm/dummy/closure-trampoline-template-arm.S
// .section __TEXT,__text,regular,pure_instructions #if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE) #if defined(__WIN32__) || defined(__APPLE__) #define cdecl(s) _##s #else #define cdecl(s) s #endif .align 4 #if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR) // closure trampoline carray the object pointer, and f...
w296488320/JnitraceForCpp
1,230
nativeLib/src/main/cpp/hook/Dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm64/dummy/closure-trampoline-template-arm64.S
// .section __TEXT,__text,regular,pure_instructions #if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE) #if defined(__WIN32__) || defined(__APPLE__) #define cdecl(s) _##s #else #define cdecl(s) s #endif .align 4 #if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR) // closure trampoline carray the object pointer, and f...
w296488320/JnitraceForCpp
15,273
nativeLib/src/main/cpp/hook/signhook/exts/ucontext/breakpad_getcontext.S
// Copyright (c) 2012, Google Inc. // 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 conditi...
w296488320/JnitraceForCpp
3,802
nativeLib/src/main/cpp/hook/signhook/exts/ucontext/aarch64/setcontext.S
/* Set current context. Copyright (C) 2009-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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; eit...
w296488320/JnitraceForCpp
2,961
nativeLib/src/main/cpp/hook/signhook/exts/ucontext/aarch64/getcontext.S
/* Save current context. Copyright (C) 2009-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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; ei...
w296488320/JnitraceForCpp
2,766
nativeLib/src/main/cpp/hook/signhook/exts/ucontext/aarch64/swapcontext.S
/* Modify saved context. Copyright (C) 2009-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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; ei...
w296488320/JnitraceForCpp
2,292
nativeLib/src/main/cpp/hook/signhook/exts/ucontext/arm/setcontext.S
/* Copyright (C) 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 Licen...
w296488320/JnitraceForCpp
2,312
nativeLib/src/main/cpp/hook/signhook/exts/ucontext/arm/getcontext.S
/* Copyright (C) 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 Licen...
w296488320/JnitraceForCpp
1,649
nativeLib/src/main/cpp/hook/signhook/exts/ucontext/arm/swapcontext.S
/* Copyright (C) 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 Licen...
w3c/Amaya-Editor
2,167
annotlib/Annot.S
{ Author: J. Kahan 1999-2003 } STRUCTURE Annot; DEFPRES AnnotP; CONST C_Empty = ' '; STRUCT { An annotation is made of a description, an HTML body, and, optionally a thread } Annot (ATTR XmlBody = Yes_; Charset = Text) = BEGIN Description; Body = CASE OF { the annotat...
w3c/Amaya-Editor
1,747
annotlib/Topics.S
{ Author: J. Kahan @W3C 2003-2004 } STRUCTURE Topics; DEFPRES TopicsP; CONST C_Empty = ' '; STRUCT { A bookmark collection is a set of bookmarks and topics. } { ======= TOPICS ====== } Topics (ATTR XmlBody = Yes_; Charset = Text) = LIST OF (Item); { a topic item is made of a title, a ref...
w3c/Amaya-Editor
3,209
amaya/Template.S
{ Structure Schema for XTiger Templates Francesc Campoy Flores & I. Vatton January 2007 } STRUCTURE Template; DEFPRES TemplateP; ATTR { generic attributes for internal use } Unknown_attribute = TEXT; { to store an unknown attribute } xmlid = Text; { id } Highlight = Yes_; { to show the...
w3c/Amaya-Editor
1,589
amaya/XML.S
{ Thot structure schema for generic XML documents } STRUCTURE XML; DEFPRES XMLP; ATTR { global attributes for all XML elements } xml_space = xml_space_default, xml_space_preserve; Highlight = Yes_; { to show the XML element corresponding to the current selection in the source view } xmlid...
w3c/Amaya-Editor
1,143
amaya/XLink.S
{ V. Quint June 2000 } STRUCTURE XLink; DEFPRES XLinkP; ATTR type = simple, extended, locator, arc, resource, title_, none_; href_ = TEXT; role = TEXT; arcrole = TEXT; title = TEXT; show = new, replace, embed, other, none_; actuate = onLoad, onRequest, other, none_; from = TEXT; ...
w3c/Amaya-Editor
4,866
amaya/Timeline.S
{ Thot structure schema for Timeline documents Pierre Geneves June 2002} STRUCTURE Timeline; DEFPRES TimelineP; ATTR { global attributes for all elements } id = text; { global attributes for internal processing } Unknown_attribute = text; Ghost_restruct = text; Highlight = Yes_; ...
w3c/Amaya-Editor
15,725
amaya/MathML.S
{ Thot Structure Schema for MathML I. Vatton, V. Quint June 1997 } STRUCTURE MathML; DEFPRES MathMLP; ATTR { att-global } class = TEXT; PseudoClass = Text; style\240 = TEXT; { style } id = TEXT; xref = TEXT; other = TEXT; xmlid = Text; { xml:id } xml_space = xml_space_default, xm...
w3c/Amaya-Editor
150,910
amaya/SVG.S
{ Thot structure schema for Scalable Vector Graphics } STRUCTURE SVG; DEFPRES SVGP; ATTR { global attributes for all SVG elements } {stdAttrs} id = text; xml_base = text; xmlid = Text; { xml:id } xml_space = xml_space_default, xml_space_preserve; { attributes for internal...
w3c/Amaya-Editor
46,386
amaya/HTML.S
{ . Vatton Nonember 1994-2002 } STRUCTURE HTML; DEFPRES HTMLP; ATTR { coreattrs } ID = Text; { id } Class = Text; { class } PseudoClass = Text; Style\240 = Text; { style } Title = Text; { title } { i18n } dir = ltr_, rtl_; { dir } { RDFa } about = Text; { about } proper...
w600/sdk
7,978
platform/boot/iccarm/startup_iar.s
;******************************************************************************** ;* @file startup.s ;* @version V1.00 ;* @date 1/16/2019 ;* @brief CMSIS Cortex-M3 Core Device Startup File for the W60X ;* ;* @note Copyright (C) 2019 WinnerMicro Inc. All rights reserved. ;* ;* <h2><center>&copy; COP...
w600/sdk
8,831
platform/boot/gcc/startup.s
/* File: startup_ARMCM3.S * Purpose: startup file for Cortex-M3 devices. Should use with * GCC for ARM Embedded Processors * Version: V2.0 * Date: 16 August 2013 * /* Copyright (c) 2011 - 2013 ARM LIMITED All rights reserved. Redistribution and use in source and binary forms, with or without modificati...
w600/sdk
11,190
platform/boot/armcc/startup.s
;******************** Copyright (c) 2014 Winner Micro Electronic Design Co., Ltd. ******************** ;* File Name : startup_venus.s ;* Author : ;* Version : ;* Date : ;* Description : ; <h> Stack Configuration ; <o> Stack Size (in Bytes) ; </h> Stack_Size EQU 0...
Wack0/maciNTosh
3,599
arcgrackle/source/crtresxgpr.S
/* * Special support for eabi and SVR4 * * Copyright (C) 1995-2024 Free Software Foundation, Inc. * Written By Michael Meissner * 64-bit support written by David Edelsohn * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publis...
Wack0/maciNTosh
1,667
arcgrackle/source/exhandler_low.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .extern ArcBugcheck .extern RegisterSpace .globl BugcheckTrampoline BugcheckTrampoline: mtspr SPRG3, r31 lis r31, RegisterSpace@h ori r31, r31, RegisterSpace@l clrlwi r31, r31, 2 stw r0, 0(r31) mfsrr0 r0 stw r0, 128(r31) mfsrr1 r0 ...
Wack0/maciNTosh
4,945
arcgrackle/source/floatctx.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .set FP_SIZE, 8 .set GP_SRR0, (SRR0_OFFSET - 8) .set GP_SRR1, (GP_SRR0 + 4) .set GP_1, (GPR1_OFFSET - 8) .set GP_2, (GP_1 + 4) #ifdef _DEBUG .set GP_5, (GPR5_OFFSET - 8) .set GP_6, (GP_5 + 4) #endif .set GP_13, (GPR13_OFFSET - 8) .set GP_14, (GP_13 + 4) .set GP_1...
Wack0/maciNTosh
1,163
arcgrackle/source/arcinvoke.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .global __ArcInvokeImpl __ArcInvokeImpl: mflr r0 stwu r0, -4(r1) mtctr r3 mr r2, r4 mr r3, r5 mr r4, r6 mr r5, r7 bctrl lwzu r0, 0(r1) addi r1, r1, 4 mtlr r0 blr .globl DCFlushRangeNoSync DCFlushRangeNoSync: cmplwi r4, 0 # zero or negative size? blel...
Wack0/maciNTosh
2,977
arcgrackle/source/crt0.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .extern FwMain .extern __executable_start .globl _start _start: // We are currently in little endian mode, // in non-translated mode, // with interrupts disabled. // quick debug test. are we getting here? // r28=ffff_ffff, r30=physaddr of framebuffer //stw r28, ...
Wack0/maciNTosh
2,709
arcgrackle/source/crtsavgpr.S
/* * Special support for eabi and SVR4 * * Copyright (C) 1995-2024 Free Software Foundation, Inc. * Written By Michael Meissner * 64-bit support written by David Edelsohn * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publis...
Wack0/maciNTosh
1,178
arcloader_unin/source/modeswitch.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .global ModeSwitchEntry ModeSwitchEntry: // (ArcFirmEntry Start, PHW_DESCRIPTION HwDesc) // save our arguments // r3 (le entrypoint) into srr0 mr r29, r3 // r4 (argument) into r31 mr r31, r4 mr r30, r5 li r28,-1 //lwz r27, 0(r30) // Disable interrupts. mfms...
Wack0/maciNTosh
1,329
arcloader_grackle/source/modeswitch.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .global ModeSwitchEntry ModeSwitchEntry: // (ArcFirmEntry Start, PHW_DESCRIPTION HwDesc) // save our arguments // r3 (le entrypoint) into srr0 mr r29, r3 // r4 (argument) into r31 mr r31, r4 mr r30, r5 li r28,-1 // Disable interrupts. mfmsr r7 rlwinm r8, r7, ...
Wack0/maciNTosh
3,599
arcunin/source/crtresxgpr.S
/* * Special support for eabi and SVR4 * * Copyright (C) 1995-2024 Free Software Foundation, Inc. * Written By Michael Meissner * 64-bit support written by David Edelsohn * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publis...
Wack0/maciNTosh
1,667
arcunin/source/exhandler_low.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .extern ArcBugcheck .extern RegisterSpace .globl BugcheckTrampoline BugcheckTrampoline: mtspr SPRG3, r31 lis r31, RegisterSpace@h ori r31, r31, RegisterSpace@l clrlwi r31, r31, 2 stw r0, 0(r31) mfsrr0 r0 stw r0, 128(r31) mfsrr1 r0 ...
Wack0/maciNTosh
4,945
arcunin/source/floatctx.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .set FP_SIZE, 8 .set GP_SRR0, (SRR0_OFFSET - 8) .set GP_SRR1, (GP_SRR0 + 4) .set GP_1, (GPR1_OFFSET - 8) .set GP_2, (GP_1 + 4) #ifdef _DEBUG .set GP_5, (GPR5_OFFSET - 8) .set GP_6, (GP_5 + 4) #endif .set GP_13, (GPR13_OFFSET - 8) .set GP_14, (GP_13 + 4) .set GP_1...
Wack0/maciNTosh
1,163
arcunin/source/arcinvoke.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .global __ArcInvokeImpl __ArcInvokeImpl: mflr r0 stwu r0, -4(r1) mtctr r3 mr r2, r4 mr r3, r5 mr r4, r6 mr r5, r7 bctrl lwzu r0, 0(r1) addi r1, r1, 4 mtlr r0 blr .globl DCFlushRangeNoSync DCFlushRangeNoSync: cmplwi r4, 0 # zero or negative size? blel...
Wack0/maciNTosh
6,162
arcunin/source/crt0.S
// Startup code. // Exception handlers are adapted from OpenBIOS: /* * Creation Date: <2001/06/16 21:30:18 samuel> * Time-stamp: <2003/04/04 16:32:06 samuel> * * <init.S> * * Asm glue for ELF images run inside MOL * * Copyright (C) 2001, 2002, 2003 Samuel Rydh (samuel@ibrium.se) * * This program is fr...
Wack0/maciNTosh
2,709
arcunin/source/crtsavgpr.S
/* * Special support for eabi and SVR4 * * Copyright (C) 1995-2024 Free Software Foundation, Inc. * Written By Michael Meissner * 64-bit support written by David Edelsohn * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publis...
Wack0/maciNTosh
1,400
arcloaderold_grackle/source/modeswitch.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .global .ModeSwitchEntry .csect .text[PR] .skip 0x800 .ModeSwitchEntry: // (ArcFirmEntry Start, PHW_DESCRIPTION HwDesc) // save our arguments // r3 (le entrypoint) into srr0 mr r29, r3 // r4 (argument) into r31 mr r31, r4 mr r30, r5 li r28,-1 #if 0 // Already do...
Wack0/paid-the-beak
3,413
exploit2dev.s
.arm.big .create "exploit2dev.bin", 0 .incbin "header.ancast" .align 0x80000 ; Toucan image header .word 0xfd9b5b7a ; magic .word 3 ; section count .word 0x01808000, 0x01808800 ; some space in Napa to clobber .word 0 ; flags .word 0 ; syscfg1 (unused as flag for that is unset) .word 0, 0 ; unused ; Section headers .wor...
Wack0/paid-the-beak
3,411
exploit2.s
.arm.big .create "exploit2.bin", 0 .incbin "sdboot1.ancast" .align 0x80000 ; Toucan image header .word 0xfd9b5b7a ; magic .word 3 ; section count .word 0x01808000, 0x01808800 ; some space in Napa to clobber .word 0 ; flags .word 0 ; syscfg1 (unused as flag for that is unset) .word 0, 0 ; unused ; Section headers .word ...
Wack0/entii-for-workcubes
3,228
arcldr/source/modeswitch.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text ConfigBATsForArcImpl: // clear all BATs li r0,0 mtspr IBAT0U,r0; mtspr IBAT1U,r0; mtspr IBAT2U,r0; mtspr IBAT3U,r0 // IBAT0...3 mtspr DBAT0U,r0; mtspr DBAT1U,r0; mtspr DBAT2U,r0; mtspr DBAT3U,r0 // DBAT0...3 #ifdef HW_RVL mtspr IBAT4U,r0; mtspr IBAT5U,r0; mtsp...
Wack0/entii-for-workcubes
4,500
halartx/source/stall.s
// Timer SPR stuff #include "kxppc.h" #include "halasm.h" .extern HalpPerformanceFrequency // Registers // KeStallExecutionProcessor argument .set Microsecs, r.3 // READ_TB() reads the timebase registers to this pair of registers .set TimerLow32, r.4 .set TimerHigh3...
Wack0/entii-for-workcubes
4,214
halartx/source/cache.s
// Implement cache flushing on Arthur derivatives // (Gekko, Broadway, Espresso) #include <kxppc.h> // Override the workaround for a different processor's errata #undef DISABLE_INTERRUPTS #undef ENABLE_INTERRUPTS #define DISABLE_INTERRUPTS(p0, s0) \ mfmsr p0 ; \ rlwinm s0,p0,0,~MASK_SPR(MSR_EE,1)...
Wack0/entii-for-workcubes
1,141
halartx/source/procreset.s
// Initialise other processor coming out of reset. #include <kxppc.h> .text .align 2 .globl HalpProcessorReset HalpProcessorReset: // Write to HW_VISOLID (a value without bit 0 set so it doesn't enable it) // to tell CPU 0 that this processor is running. lis r.6, 0x0d80 stw r.6, 0x20(r.6) // 0x24 swizzle for 32-b...
Wack0/entii-for-workcubes
1,145
halartx/source/bat.s
// Function to set an unused BAT. #include "kxppc.h" // NT only allocates IBAT/DBAT for the actual MEM1 size rounded up. // So for all of dol/rvl/cafe it would allocate 32MB cached BAT. // However, the entire 0x8xxxxxxx address space is reserved. // The rest of this 256MB range is unused. // Therefore, we can use a...
Wack0/entii-for-workcubes
3,599
arcfw/source/crtresxgpr.S
/* * Special support for eabi and SVR4 * * Copyright (C) 1995-2024 Free Software Foundation, Inc. * Written By Michael Meissner * 64-bit support written by David Edelsohn * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publis...
Wack0/entii-for-workcubes
1,667
arcfw/source/exhandler_low.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .extern ArcBugcheck .extern RegisterSpace .globl BugcheckTrampoline BugcheckTrampoline: mtspr SPRG3, r31 lis r31, RegisterSpace@h ori r31, r31, RegisterSpace@l clrlwi r31, r31, 2 stw r0, 0(r31) mfsrr0 r0 stw r0, 128(r31) mfsrr1 r0 ...
Wack0/entii-for-workcubes
4,945
arcfw/source/floatctx.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .set FP_SIZE, 8 .set GP_SRR0, (SRR0_OFFSET - 8) .set GP_SRR1, (GP_SRR0 + 4) .set GP_1, (GPR1_OFFSET - 8) .set GP_2, (GP_1 + 4) #ifdef _DEBUG .set GP_5, (GPR5_OFFSET - 8) .set GP_6, (GP_5 + 4) #endif .set GP_13, (GPR13_OFFSET - 8) .set GP_14, (GP_13 + 4) .set GP_1...
Wack0/entii-for-workcubes
1,163
arcfw/source/arcinvoke.S
#define _LANGUAGE_ASSEMBLY #include "asm.h" .text .global __ArcInvokeImpl __ArcInvokeImpl: mflr r0 stwu r0, -4(r1) mtctr r3 mr r2, r4 mr r3, r5 mr r4, r6 mr r5, r7 bctrl lwzu r0, 0(r1) addi r1, r1, 4 mtlr r0 blr .globl DCFlushRangeNoSync DCFlushRangeNoSync: cmplwi r4, 0 # zero or negative size? blel...
Wack0/entii-for-workcubes
2,546
arcfw/source/crt0.S
// Startup code. // Exception handlers are adapted from OpenBIOS: /* * Creation Date: <2001/06/16 21:30:18 samuel> * Time-stamp: <2003/04/04 16:32:06 samuel> * * <init.S> * * Asm glue for ELF images run inside MOL * * Copyright (C) 2001, 2002, 2003 Samuel Rydh (samuel@ibrium.se) * * This program is fr...
Wack0/entii-for-workcubes
2,709
arcfw/source/crtsavgpr.S
/* * Special support for eabi and SVR4 * * Copyright (C) 1995-2024 Free Software Foundation, Inc. * Written By Michael Meissner * 64-bit support written by David Edelsohn * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publis...
wagiminator/ATmega-Transistor-Tester
6,649
software/sources/ReadADC.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include "config.h" #include <stdlib.h> //#include "autoinout.h" .GLOBAL ReadADC .GLOBAL W20msReadADC .GLOBAL W10msReadADC .GLOBAL W5msReadADC .func ReadADC .extern wait100us .extern wait5ms .extern wait10ms #define Samples 0 #define RefFlag 1 #d...
wagiminator/ATmega-Transistor-Tester
3,919
software/sources/RefVoltage.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/eeprom.h> #include "config.h" #include "part_defs.h" #define zero_reg r1 #define Ref_Tab_Abstand 50 ; displacement of table is 50mV #define Ref_Tab_Beginn 1000 ; // begin of table is 1000mV .GLOBAL RefVoltage .func RefVolta...
wagiminator/ATmega-Transistor-Tester
8,084
software/sources/wait1000ms.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> .func wait1000ms .global wait5s ; wait 5 seconds .global wait4s ; wait 4 seconds .global wait3s ; wait 3 seconds .global wait2s ; wait 2 seconds .global wait1s ; wait 1 seconds .global wait1000ms ; wait 1 second and wait 1000ms are identic...
wagiminator/ATmega-Transistor-Tester
30,205
software/sources/GetESR_107.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include <avr/eeprom.h> #include "config.h" #include <stdlib.h> .GLOBAL GetESR .func GetESR /* MAX_CNT is the maximum loop counter for repetition of mesurement */ #define MAX_CNT 128 /* ADC_Sleep_Mode enables the sleep ...
wagiminator/ATmega-Transistor-Tester
1,235
software/sources/i2lcd.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include "config.h" .GLOBAL u2lcd .GLOBAL u2lcd_space .extern lcd_data .extern lcd_string .extern lcd_space .func i2lcd ; use allways rcall for nearby functions #define RCALL rcall .section .text .GLOBAL i2lcd i2...
wagiminator/ATmega-Transistor-Tester
14,195
software/sources/samplingADC.S
// June 2015 - Jan 2016, pa3fwm@amsat.org #ifdef SamplingADC_CNT #include "samplingADC_cnt.S" /* take replacement with counter1 use */ #else #ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include "config.h" #include <stdlib.h> .GLOBAL samplingADC_freqgen .func samplingADC_freqgen .endfunc ...
wagiminator/ATmega-Transistor-Tester
1,658
software/sources/get_log.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include "config.h" #include <stdlib.h> #include "config.h" #define Log_Tab_Distance 20 .GLOBAL get_log .func get_log .extern LogTab .section .text ; // get_log interpolate a table with the function -1000*log(1 - (permil/1000)) ; uint16_t...
wagiminator/ATmega-Transistor-Tester
2,082
software/sources/swuart.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include "config.h" #define bitcnt r18 #define temp r21 #define Txbyte r24 #define SER_PORT _SFR_IO_ADDR(SERIAL_PORT) #define SER_DDR _SFR_IO_ADDR(SERIAL_DDR) ;* Software-UART nach Atmel AVR-Application-Note AVR305 ;**************************...
wagiminator/ATmega-Transistor-Tester
5,524
software/sources/wait_for_key_ms.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <stdlib.h> #include "config.h" #include "lcd_defines.h" #ifdef WITH_ROTARY_SWITCH #warning Please use the C-version of this program, if you use the Rotary Switch! #error Modify your Makefile! #endif #define RCALL rcall #define MAX_CS 1...
wagiminator/ATmega-Transistor-Tester
3,686
software/sources/lcd_hw_1_bit.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif ;--------------------------------------------------------------------- #include <avr/io.h> #include "config.h" .section .text ;---------------------------------------------------------------------- ; Global Definitions ;--------------------------------------...
wagiminator/ATmega-Transistor-Tester
14,329
software/sources/samplingADC_cnt.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include <avr/eeprom.h> #include <stdlib.h> #include "config.h" #include "part_defs.h" .GLOBAL samplingADC .func samplingADC #if AUTO_CLOCK_DIV == ((1<<ADPS2) | (1<<ADPS1) | (1<<ADPS0)) #define TICS_PER_ADC_CLOCK 128 #e...
wagiminator/ATmega-Transistor-Tester
7,905
software/sources/PinLayout.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include "config.h" #include "part_defs.h" ;// show the Pin Layout of the device ; void PinLayout(char pin1, char pin2, char pin3) ;// pin1-3 is EBC or SGD or CGA ; typedef struct { ; unsigned long hfe; //0 current ...
wagiminator/ATmega-Transistor-Tester
3,938
software/sources/GetRLmultip.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/eeprom.h> #include <stdlib.h> #include "config.h" #define zero_reg r1 /* unsigned int GetRLmultip(unsigned int cvolt) { */ // interpolate table RLtab corresponding to voltage cvolt /* unsigned int uvolt; */ /* unsigned int y...
wagiminator/ATmega-Transistor-Tester
5,853
software/sources/UfAusgabe.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include <avr/eeprom.h> #include "config.h" #include "part_defs.h" .section .text #define zero_reg r1 #define RCALL rcall /* #include <avr/io.h> */ /* #include "Transistortester.h" */ /* void mVAusgabe(u...
wagiminator/ATmega-Transistor-Tester
24,755
software/sources/lcd_hw_4_bit.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif ;--------------------------------------------------------------------- #include <avr/io.h> #include "config.h" ;#define FAST_SERIAL_OUT /* use no sub-function for bit setting */ #define FAST_SPI_OUTPUT .section .text ;----------------------------------------...
wagerr/wagerr
28,453
src/secp256k1/src/asm/field_10x26_arm.s
@ vim: set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab syntax=armasm: /********************************************************************** * Copyright (c) 2014 Wladimir J. van der Laan * * Distributed under the MIT software license, see the accompanying * * file COPYING or http://www...
wagiminator/ATmega-Transistor-Tester
27,761
software/sources/GetESR.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include <avr/eeprom.h> #include <stdlib.h> #include "config.h" #include "part_defs.h" .GLOBAL GetESR .func GetESR /* MAX_CNT is the maximum loop counter for repetition of mesurement */ #define MAX_CNT 255 /* ADC_Sleep_...
wagiminator/ATmega-Transistor-Tester
2,153
software/sources/RvalOut.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include <avr/eeprom.h> #include <stdlib.h> #include "config.h" #include "part_defs.h" /* #include <avr/io.h> */ /* #include <avr/eeprom.h> */ /* #include <avr/pgmspace.h> */ /* #include "Transistortester.h" */ /* void R...
wagiminator/ATmega-Transistor-Tester
2,937
software/sources/sleep_5ms.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include <avr/common.h> #include "config.h" #include <stdlib.h> #define RCALL rcall .GLOBAL sleep_5ms .func sleep_5ms .extern wait5ms .section .text #define DELAY_10ms (((F_CPU_HZ / 100) - RESTART_DELAY_TICS) / TICS_PER_T2_COUNT) #define ...
wagiminator/ATmega-Transistor-Tester
1,117
software/sources/CombineToLong.S
#ifndef __ASSEMBLER__ #define __ASSEMBLER__ #endif #include <avr/io.h> #include "config.h" #include <stdlib.h> .section .text .func CombineII2Long .global CombineBI2Long .global CombineII2Long // This tricky function replaces the long-winded way of gcc compiler // to build = high*65536 + low // if there is any ...
wagiminator/ATtiny85-TinyKnob
23,124
software/sources/usbdrv/usbdrvasm165.S
/* Name: usbdrvasm165.S * Project: AVR USB driver * Author: Christian Starkjohann * Creation Date: 2007-04-22 * Tabsize: 4 * Copyright: (c) 2007 by OBJECTIVE DEVELOPMENT Software GmbH * License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt) * Revision: $Id$ */ /* Do not link this file! Li...
wagiminator/ATtiny85-TinyKnob
18,682
software/sources/usbdrv/usbdrvasm16.S
/* Name: usbdrvasm16.S * Project: AVR USB driver * Author: Christian Starkjohann * Creation Date: 2007-06-15 * Tabsize: 4 * Copyright: (c) 2007 by OBJECTIVE DEVELOPMENT Software GmbH * License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt) * Revision: $Id$ */ /* Do not link this file! Lin...
wagiminator/ATtiny85-TinyKnob
23,046
software/sources/usbdrv/usbdrvasm12.S
/* Name: usbdrvasm12.S * Project: AVR USB driver * Author: Christian Starkjohann * Creation Date: 2004-12-29 * Tabsize: 4 * Copyright: (c) 2007 by OBJECTIVE DEVELOPMENT Software GmbH * License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt) * This Revision: $Id: usbdrvasm12.S 353 2007-06-21 ...
wagiminator/ATtiny85-TinyKnob
8,840
software/sources/usbdrv/usbdrvasm.S
/* Name: usbdrvasm.S * Project: AVR USB driver * Author: Christian Starkjohann * Creation Date: 2007-06-13 * Tabsize: 4 * Copyright: (c) 2007 by OBJECTIVE DEVELOPMENT Software GmbH * License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) * Revision: $Id: usbdrvasm.S 722 2009-03-...
wagiminator/CH32V003-MacroPad-plus
23,229
software/macropad_plus/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-Mouse-Wiggler
23,229
software/capsblock/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-Mouse-Wiggler
23,229
software/mousewiggler/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-USB-Joystick
23,229
software/joystick/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-USB-Joystick
23,229
software/mousestick/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-Mouse-Wiggler
23,229
software/rubberducky/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-USB-Knob
23,229
software/custom_knob/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-USB-Knob
23,229
software/volume_knob/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/CH32V003-USB-Knob
23,229
software/mousewheel_knob/src/usb_handler.S
// =================================================================================== // Software USB Handler for CH32V003 * v1.0 * // =================================================================================== // // This file contains a copy of rv003usb.S (https://gith...
wagiminator/C64-Collection
9,428
C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/mouse.s
;-------------------------------------------------------------------- ; Atari 8-bit mouse routines -- 05/07/2000 Freddy Offenga ; Some changes by Christian Groessler, Ullrich von Bassewitz ; ; The following devices are supported: ; - Atari trak-ball ; - ST mouse ; - Amiga mouse ; ; Mouse checks are done in the timer 1 ...
wagiminator/C64-Collection
3,576
C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/lseek.s
; ; Christian Groessler, May 2002 ; ; this file provides the lseek() function ; ; off_t __fastcall__ lseek(int fd, off_t offset, int whence); ; .export _lseek .import incsp6,__oserror .import __inviocb,ldax0sp,ldaxysp,fdtoiocb .import __dos_type .import fd_table .importzp sreg,ptr1,ptr2,ptr3,ptr4 .import...
wagiminator/C64-Collection
1,437
C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/savevec.s
; ; save and restore system vectors ; originally by Mark Keates ; ; void _save_vecs(void); ; void _rest_vecs(void); ; .export __save_vecs,__rest_vecs .include "atari.inc" .bss old_dli: .res 2 old_dlist: .res 2 old_vbi: .res 2 old_vbd: .res 2 old_gra: .res 1 old_dma: .res 1 old_prior: .res 1...
wagiminator/C64-Collection
2,407
C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/ucase_fn.s
; ; Christian Groessler, Dec-2001 ; ; ucase_fn ; helper routine to convert a string (file name) to uppercase ; used by open.s and remove.s ; ; Calling parameters: ; AX - points to filename ; Return parameters: ; C - 0/1 for OK/Error (filename too long) ; AX - points to uppercased version of the filename on the s...
wagiminator/C64-Collection
1,391
C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/sysmkdir.s
; ; Initial version: Stefan Haubenthal, 2005-12-24 ; Some fixes: Christian Groessler, 2009-01-28 ; ; unsigned char _sysmkdir (const char* name, ...); ; for SpartaDOS and MYDOS ; .include "atari.inc" .include "errno.inc" .import addysp .import popax .import findfreeiocb .importzp tmp4 .ifdef UCASE_FILENAME .impo...
wagiminator/C64-Collection
1,586
C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/getdefdev.s
; ; Freddy Offenga & Christian Groessler, December 2004 ; ; function to get default device: char *_getdefdev(void); ; ; SpartaDOS: ; the ZCRNAME routine is only used to get the default drive because ; ZCRNAME has two disadvantages: ; 1. It will convert D: into D1: instead of Dn: (n = default drive) ; 2. It will give a ...
wagiminator/C64-Collection
2,913
C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/crt0.s
; ; Startup code for cc65 (ATARI version) ; ; Contributing authors: ; Mark Keates ; Freddy Offenga ; Christian Groessler ; .export _exit .export __STARTUP__ : absolute = 1 ; Mark as startup .constructor initsp, 26 .import initlib, donelib, callmain .import zerobss, pushax .i...