repo_id string | size int64 | file_path string | content string |
|---|---|---|---|
vproc/vicuna | 2,673 | test/alu/vwadd-w_8.S | # Copyright TU Wien
# Licensed under the Solderpad Hardware License v2.1, see LICENSE.txt for details
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
.text
.global main
main:
la a0, vdata_start
li t0, 32
vsetvli t0, t0, e8,m2,tu,mu
li t0, 1
... |
vproc/vicuna | 3,033 | test/misc/max_reduction.S | # Copyright TU Wien
# Licensed under the Solderpad Hardware License v2.1, see LICENSE.txt for details
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
.text
.global main
main:
la a0, vdata_start
la a2, vdata_start+1
li t0, 16
vsetvli zero,t0... |
vroland/epdiy | 3,394 | src/diff.S | #include <xtensa/config/core-isa.h>
#include <xtensa/config/core-matmap.h>
#include "sdkconfig.h"
#ifdef CONFIG_IDF_TARGET_ESP32S3
.text
.align 4
.global epd_interlace_4bpp_line_VE
.type epd_interlace_4bpp_line_VE,@function
// // CRASH AND BURN for debugging
// EE.MOVI.32.A q3, a2, 0
// EE.MO... |
vroland/epdiy | 3,624 | src/output_common/lut.S | #include <xtensa/config/core-isa.h>
#include <xtensa/config/core-matmap.h>
#include "sdkconfig.h"
#ifdef CONFIG_IDF_TARGET_ESP32S3
.text
.align 4
.global calc_epd_input_1ppB_1k_S3_VE_aligned
.type calc_epd_input_1ppB_1k_S3_VE_aligned,@function
// // CRASH AND BURN for debugging
// EE.MOVI.32.A q3, a... |
vsergeev/apfcp | 2,299 | examples/linked_list.S | # Linked List (linked_list.S)
.section .text
.global main
# struct list { int data; struct list *next; };
#
# [ int data; ][ list *next; ] 8 bytes total
# \ 4 bytes / \ 4 bytes /
# list *list_alloc(int data);
list_alloc:
pushl $8 # %eax = malloc(8);
call malloc
addl $4, %esp
testl %eax, %e... |
vsergeev/apfcp | 1,439 | examples/tee.S | # Tee (tee.S)
.section .text
.global _start
_start:
push %ebp
mov %esp, %ebp
subl $4, %esp # int fd; on the stack
cmpl $2, 4(%ebp) # if (argc != 2)
jne tee_usage # goto tee_usage;
tee_open:
# syscall open(argv[1], O_CREAT|O_WRONLY|O_TRUNC, 0644);
movl $0x05, %eax
movl 12(%ebp), %eb... |
vsergeev/apfcp | 1,102 | examples/example-stack.S | # Example of Stack Usage (example-stack.S)
.section .text
.global _start
_start:
# Stack is now
# | ... | <-- %esp = 0x8xxxxxxx
movl $0x05, %eax # Load 0x00000005 into %eax
pushl %eax # Push dword 0x00000005 onto the stack
incl %eax # %eax += 1
pushl %eax # Push dwo... |
vsergeev/apfcp | 1,242 | examples/example-cond-jmp.S | # Example of Conditional Jumps (example-cond-jmp.S)
.section .text
.global _start
_start:
# cmpl %oper1, %oper2
# updates flags based on result of %oper2 - %oper1
cmpl %eax, %ecx
cmpl $0xFF, %eax
# conditional jumps
je label_foo # jump if %oper2 == %oper1
jg label_bar # jump if %oper2 > %oper1
jl ... |
vsergeev/apfcp | 2,404 | examples/morse_encoder.S | # Morse Word Encoder (morse_encoder.S)
.section .text
.global main
main:
movl $inputWord, %esi # Pointer to input word
movl $outputMorse, %edi # Pointer to output morse
movl $0, %eax # Clear %eax
encode_loop:
movb (%esi), %al # Read the next byte of input to %al
incl %e... |
vsergeev/apfcp | 1,239 | examples/99_bottles_of_beer.S | # 99 Bottles of Beer on the Wall (example-10.S)
.section .text
.global main
main:
movl $99, %eax # Start with 99 bottles!
# We could use a cdecl callee preserved register,
# but we'll make it hard on ourselves to practice
# caller saving/restoring
# printf(char *format, ...);
more_beer:
# Save %eax... |
vsergeev/apfcp | 3,956 | examples/extra/base64.S | # Accompanying slide
# \begin{frame}[fragile,t]
# \frametitle{Base-64 Representation of Binary Data}
# \begin{itemize}
# \item Some ASCII-based communication channels do not handle binary data well (email, http, etc.).
# \item Base-64 encoding expresses binary data with a set of 64 printable ASCII characters.
# \... |
vsergeev/apfcp | 2,466 | examples/extra/hexdump.S | # Simple Hexdump (hexdump.S)
.section .text
.global _start
_start:
pushl %ebp
movl %esp, %ebp
# Allocate int fd; char buff[16]; on stack
subl $20, %esp
# Check if argc != 2
cmpl $2, 4(%ebp)
jne print_usage
# syscall open(argv[1], O_RDONLY);
movl $0x05, %eax
movl 12(%ebp), %ebx
movl $0x00, %ecx
... |
vsergeev/apfcp | 1,903 | examples/extra/line_counter.S | # File Line Counter (line_counter.S)
.section .text
.global main
# int main(int argc, char *argv[]) {
main:
# Function prologue
pushl %ebp
movl %esp, %ebp
# Allocate space for FILE *fp; unsigned int lc;
subl $8, %esp
# libc retaddr at %ebp+4
# argc is at %ebp+8
# **argv is at %ebp+12
# *argv[0] is ... |
VSharp-team/VSharp | 1,239 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/s390x/callsignalhandlerwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
.macro CALL_SIGNAL_HANDLER_WRAPPER Alignment
.globl C_FUNC(SignalHandlerWorkerReturnOffset\Alignment)
C_FUNC(SignalHandlerWor... |
VSharp-team/VSharp | 3,459 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/s390x/context2.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of _CONTEXT_CaptureContext for the IBM s390x platform.
// This function is processor dependent. It is used by exception handling,
// and is always apply to the c... |
VSharp-team/VSharp | 2,128 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/s390x/exceptionhelper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
//////////////////////////////////////////////////////////////////////////
//
// This function creates a stack frame right bel... |
VSharp-team/VSharp | 1,472 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/i386/callsignalhandlerwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.intel_syntax noprefix
#include "unixasmmacros.inc"
#include "asmconstants.h"
.macro CALL_SIGNAL_HANDLER_WRAPPER Alignment
.globl C_FUNC(SignalHandlerWorkerReturnOffset\Alignment)
... |
VSharp-team/VSharp | 4,009 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/i386/context2.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.intel_syntax noprefix
#include "unixasmmacros.inc"
#include "asmconstants.h"
//
// Implementation of CONTEXT_CaptureContext for the Intel x86 platform.
//
// extern void CONTEXT_C... |
VSharp-team/VSharp | 1,973 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/i386/exceptionhelper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.intel_syntax noprefix
#include "unixasmmacros.inc"
#include "asmconstants.h"
//////////////////////////////////////////////////////////////////////////
//
// EXTERN_C void ThrowExc... |
VSharp-team/VSharp | 1,712 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/arm/callsignalhandlerwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
.syntax unified
#ifndef __armv6__
.thumb
#endif
.macro CALL_SIGNAL_HANDLER_WRAPPER Alignment
.globl C_FUNC(SignalHandlerWork... |
VSharp-team/VSharp | 4,755 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/arm/context2.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of _CONTEXT_CaptureContext for the ARM platform.
// This function is processor dependent. It is used by exception handling,
// and is always apply to the current... |
VSharp-team/VSharp | 1,539 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/arm/exceptionhelper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
.syntax unified
#ifndef __armv6__
.thumb
#endif
// EXTERN_C void ThrowExceptionFromContextInternal(CONTEXT* context, PAL_SEHE... |
VSharp-team/VSharp | 1,321 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/loongarch64/callsignalhandlerwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
.macro CALL_SIGNAL_HANDLER_WRAPPER Alignment
.globl C_FUNC(SignalHandlerWorkerReturnOffset\Alignment)
C_FUNC(SignalHandlerWork... |
VSharp-team/VSharp | 1,827 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/loongarch64/dispatchexceptionwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of the PAL_DispatchExceptionWrapper that is
// interposed between a function that caused a hardware fault
// and PAL_DispatchException that throws an SEH excepti... |
VSharp-team/VSharp | 7,187 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/loongarch64/context2.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of _CONTEXT_CaptureContext for the LOONGARCH platform.
// This function is processor dependent. It is used by exception handling,
// and is always apply to the c... |
VSharp-team/VSharp | 1,610 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/loongarch64/exceptionhelper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
//////////////////////////////////////////////////////////////////////////
//
// This function creates a stack frame right bel... |
VSharp-team/VSharp | 1,190 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/amd64/callsignalhandlerwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.intel_syntax noprefix
#include "unixasmmacros.inc"
#include "asmconstants.h"
.macro CALL_SIGNAL_HANDLER_WRAPPER Alignment
.globl C_FUNC(SignalHandlerWorkerReturnOffset\Alignment)
... |
VSharp-team/VSharp | 1,690 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/amd64/dispatchexceptionwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of the PAL_DispatchExceptionWrapper that is
// interposed between a function that caused a hardware fault
// and PAL_DispatchException that throws an SEH excepti... |
VSharp-team/VSharp | 8,714 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/amd64/context2.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of _CONTEXT_CaptureContext for the Intel x86 platform.
// This function is processor dependent. It is used by exception handling,
// and is always apply to the c... |
VSharp-team/VSharp | 2,199 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/amd64/exceptionhelper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.intel_syntax noprefix
#include "unixasmmacros.inc"
#include "asmconstants.h"
//////////////////////////////////////////////////////////////////////////
//
// This function creates ... |
VSharp-team/VSharp | 1,294 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/arm64/callsignalhandlerwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
.macro CALL_SIGNAL_HANDLER_WRAPPER Alignment
.globl C_FUNC(SignalHandlerWorkerReturnOffset\Alignment)
C_FUNC(SignalHandlerWor... |
VSharp-team/VSharp | 1,730 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/arm64/dispatchexceptionwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of the PAL_DispatchExceptionWrapper that is
// interposed between a function that caused a hardware fault
// and PAL_DispatchException that throws an SEH excepti... |
VSharp-team/VSharp | 6,544 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/arm64/context2.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of _CONTEXT_CaptureContext for the ARM platform.
// This function is processor dependent. It is used by exception handling,
// and is always apply to the current... |
VSharp-team/VSharp | 2,001 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/arm64/exceptionhelper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
//////////////////////////////////////////////////////////////////////////
//
// This function creates a stack frame right bel... |
VSharp-team/VSharp | 1,106 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/ppc64le/callsignalhandlerwrapper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
.macro CALL_SIGNAL_HANDLER_WRAPPER Alignment
.globl C_FUNC(SignalHandlerWorkerReturnOffset\Alignment)
C_FUNC(SignalHandlerWor... |
VSharp-team/VSharp | 4,862 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/ppc64le/context2.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// Implementation of _CONTEXT_CaptureContext for the IBM power ppc64le platform.
// This function is processor dependent. It is used by exception handling,
// and is always apply ... |
VSharp-team/VSharp | 2,017 | VSharp.CoverageInstrumenter/coreclr/pal/src/arch/ppc64le/exceptionhelper.S | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
//////////////////////////////////////////////////////////////////////////
//
// This function creates a stack frame right bel... |
vsfteam/vsf | 5,368 | example/kernel_test/project/mdk/gcc/startup_ARMCM7.S | /* File: startup_ARMCM7.S
* Purpose: startup file for Cortex-M7 devices. Should use with
* GCC for ARM Embedded Processors
* Version: V2.0
* Date: 01 August 2014
*
/* Copyright (c) 2011 - 2014 ARM LIMITED
All rights reserved.
Redistribution and use in source and binary forms, with or without
modificati... |
vsfteam/vsf | 11,418 | example/kernel_test/project/mdk/RTE/Device/CMSDK_CM4_FP/startup_CMSDK_CM4.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM4.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM4 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 10,364 | example/kernel_test/project/mdk/RTE/Device/CMSDK_CM7_SP/startup_CMSDK_CM7.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM7.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM7 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 9,745 | example/kernel_test/project/mdk/RTE/Device/CMSDK_CM0/startup_CMSDK_CM0.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM0.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM0 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 11,418 | example/kernel_test/project/mdk/RTE/Device/CMSDK_CM7/startup_CMSDK_CM7.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM7.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM7 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 10,360 | example/kernel_test/project/mdk/RTE/Device/CMSDK_CM3/startup_CMSDK_CM3.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM3.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM3 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 6,284 | source/hal/driver/GigaDevice/GD32VF103/GD32VF103C8/startup_gcc/start.S | // See LICENSE for license details.
#include "riscv_encoding.h"
.section .init
.weak PendSV_Handler
.weak SysTick_Handler
.weak eclic_bwei_handler
.weak eclic_pmovi_handler
.weak WWDGT_IRQHandler
.weak LVD_IRQHandler
.weak TAMPER_IRQHandler
.weak RTC_IRQHandler
.we... |
vsfteam/vsf | 7,902 | source/hal/driver/GigaDevice/GD32VF103/GD32VF103C8/startup_gcc/entry.S | // See LICENSE for license details
#ifndef ENTRY_S
#define ENTRY_S
//#include "hal/vsf_hal_cfg.h"
#include "riscv_encoding.h"
#include "riscv_bits.h"
#include "n200_eclic.h"
//#include "n200_timer.h"
###############################################
###############################################
# Disable Interrupt
#... |
vsfteam/vsf | 9,881 | source/hal/driver/hercules/cmem7/common/Vendor/CMSIS/CME_M7/startup/arm/startup_cmem7.S | ;*****************************************************************************
;* @file start_cmem7.h
;*
;* @brief CMEM7 startup file
;*
;*
;* @version V1.0
;* @date 3. September 2013
;*
;* @note
;*
;*****************************************************************************
;* @... |
vsfteam/vsf | 10,809 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_CM0plus/Source/ARM/startup_CMSDK_CM0plus.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM0plus.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM0plus Device
; * @version V3.05
; * @date 09. November 2016
; ***************************************************************... |
vsfteam/vsf | 15,316 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_ARMv8MML/Source/ARM/startup_CMSDK_ARMv8MML.s | ;/**************************************************************************//**
; * @file startup_CMSDK_ARMv8MML.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_ARMv8MML Device
; * @version V1.04
; * @date 09. November 2016
; *************************************************************... |
vsfteam/vsf | 10,801 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_CM0/Source/ARM/startup_CMSDK_CM0.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM0.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM0 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 14,541 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_ARMv8MBL/Source/ARM/startup_CMSDK_ARMv8MBL.s | ;/**************************************************************************//**
; * @file startup_CMSDK_ARMv8MBL.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_ARMv8MBL Device
; * @version V1.05
; * @date 09. November 2016
; *************************************************************... |
vsfteam/vsf | 13,183 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_ARMv8MBL/Source/GCC/startup_CMSDK_ARMv8MBL.S | /**************************************************************************//**
* @file startup_CMSDK_ARMv8MBL.s
* @brief CMSIS Core Device Startup File for
* CMSDK_ARMv8MBL Device
* @version V1.00
* @date 12. July 2016
************************************************************************... |
vsfteam/vsf | 10,801 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_CM1/Source/ARM/startup_CMSDK_CM1.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM0.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM0 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 11,418 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_CM7/Source/ARM/startup_CMSDK_CM7.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM7.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM7 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 11,418 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_CM3/Source/ARM/startup_CMSDK_CM3.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM3.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM3 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 11,418 | source/hal/driver/arm/mps2/common/V2M-MPS2_CMx_BSP/1.7.1/Device/CMSDK_CM4/Source/ARM/startup_CMSDK_CM4.s | ;/**************************************************************************//**
; * @file startup_CMSDK_CM4.s
; * @brief CMSIS Core Device Startup File for
; * CMSDK_CM4 Device
; * @version V3.05
; * @date 09. November 2016
; ***********************************************************************... |
vsfteam/vsf | 16,039 | source/hal/driver/ST/STM32F103/STM32F103ZE/startup_stm32f103xe.s | ;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
;* File Name : startup_stm32f103xe.s
;* Author : MCD Application Team
;* Description : STM32F103xE Performance Line Devices vector table for EWARM toolchain.
;* This module performs:
;* ... |
vsfteam/vsf | 14,251 | source/hal/driver/Nuvoton/M480/M484/startup_M484.s | ;/******************************************************************************
; * @file startup_M480.s
; * @version V1.00
; * @brief CMSIS Cortex-M4 Core Device Startup File for M480
; *
; * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
;***************************************************... |
vsfteam/vsf | 2,270 | source/hal/driver/Allwinner/F1CX00S/F1C100S/startup/app/asm/iar/startup.S | /*****************************************************************************
* Copyright(C)2009-2022 by VSF Team *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* ... |
vsfteam/vsf | 2,151 | source/hal/driver/Allwinner/F1CX00S/F1C100S/startup/spl/asm/iar/spl_entry.S | /*****************************************************************************
* Copyright(C)2009-2022 by VSF Team *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* ... |
vsfteam/vsf | 6,165 | source/hal/arch/arm/arm9/startup/app/asm/iar/entry.S | /*****************************************************************************
* Copyright(C)2009-2022 by VSF Team *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* ... |
vsfteam/vsf | 11,110 | source/component/3rd-party/segger/raw/RTT/SEGGER_RTT_ASM_ARMv7M.S | /*********************************************************************
* (c) SEGGER Microcontroller GmbH *
* The Embedded Experts *
* www.segger.com *
************************************... |
vshymanskyy/wasm2mpy | 15,006 | runtime/esp8266-rom.S |
// THIS FILE IS AUTO-GENERATED
// https://gist.github.com/agatti/2b486f925ec535ecf4d475cc96ac881d
.file "rom.S"
.section .text
.Ltext0:
// __adddf3
.section .text.__adddf3,"ax",@progbits
.align 4
.global __adddf3
.type __adddf3, @function
__adddf3:
addi a1, a1, -16 // Allocate stack
s32i a12, a1,... |
vsladkov/reload-emulator | 1,463 | platforms/rp2040/systems/apple2/src/utils.S | #include "pico/config.h"
#include "hardware/regs/addressmap.h"
#include "hardware/regs/sio.h"
// Offsets suitable for ldr/str (must be <= 0x7c):
#define ACCUM0_OFFS (SIO_INTERP0_ACCUM0_OFFSET - SIO_INTERP0_ACCUM0_OFFSET)
#define ACCUM1_OFFS (SIO_INTERP0_ACCUM1_OFFSET - SIO_INTERP0_ACCUM0_OFFSET)
#define ... |
vsladkov/reload-emulator | 1,464 | platforms/rp2040/systems/apple2e/src/utils.S | #include "pico/config.h"
#include "hardware/regs/addressmap.h"
#include "hardware/regs/sio.h"
// Offsets suitable for ldr/str (must be <= 0x7c):
#define ACCUM0_OFFS (SIO_INTERP0_ACCUM0_OFFSET - SIO_INTERP0_ACCUM0_OFFSET)
#define ACCUM1_OFFS (SIO_INTERP0_ACCUM1_OFFSET - SIO_INTERP0_ACCUM0_OFFSET)
#define ... |
vsladkov/reload-emulator | 2,374 | platforms/rp2040/systems/oric/src/utils.S | #include "pico/config.h"
#include "hardware/regs/addressmap.h"
#include "hardware/regs/sio.h"
// Offsets suitable for ldr/str (must be <= 0x7c):
#define ACCUM0_OFFS (SIO_INTERP0_ACCUM0_OFFSET - SIO_INTERP0_ACCUM0_OFFSET)
#define ACCUM1_OFFS (SIO_INTERP0_ACCUM1_OFFSET - SIO_INTERP0_ACCUM0_OFFSET)
#define ... |
vsladkov/reload-emulator | 3,927 | src/devices/prodos_hdc_rom.S | ; cl65 -t none prodos_hdc_rom.S
; bin2hdr -i prodos_hdc_rom -o prodos_hdc_rom.h -a prodos_hdc_rom
.feature c_comments
/*
MIT License
Copyright (c) 2023 Oliver Schmidt (https://a2retro.de/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fil... |
Vulcalien/minicraft-gba | 1,436 | src/header.s | @ GBA ROM Header
.section .header, "ax"
.global _start
.arm
_start:
@@@@@@@@@@@@@@@@@@@@@@
@ ROM Header @
@@@@@@@@@@@@@@@@@@@@@@
@ ROM Entry Point
b start_vector
@ Nintendo Logo
.word 0x51aeff24, 0x21a29a69, 0x0a82843d
.word 0xad09e484, 0x988b2411, 0x217f81c0... |
vusec/kasper | 1,864 | static/kspecem/kspecem_regs.S | #include "sysdep.h"
#include "calling.h"
ENTRY (kspecem_asm_save_registers)
/* only save registers if (are_irqs_disabled >= 0) == TRUE */
cmp $0xffffffffffffffff,%rsi
jle kspecem_asm_save_registers_end
/* Save registers. */
movq %rax, (RAX)(%rdi)
movq %rbx, (RBX)(%rdi)
... |
vusec/bhi-spectre-bhb | 1,136 | pocs/intra_mode/src/snippet.S | ; Thursday, September 9th 2021
;
; Enrico Barberis - e.barberis@vu.nl
; Pietro Frigo - p.frigo@vu.nl
; Marius Muench - m.muench@vu.nl
; Herbert Bos - herbertb@cs.vu.nl
; Cristiano Giuffrida - giuffrida@cs.vu.nl
;
; Vrije Universiteit Amsterdam - Amsterdam, The Netherlands
;Must match with main.c MAX_HISTORY_SIZE !
%de... |
vusec/bhi-spectre-bhb | 1,075 | pocs/inter_mode/src/snippet.S | ; Thursday, September 9th 2021
;
; Enrico Barberis - e.barberis@vu.nl
; Pietro Frigo - p.frigo@vu.nl
; Marius Muench - m.muench@vu.nl
; Herbert Bos - herbertb@cs.vu.nl
; Cristiano Giuffrida - giuffrida@cs.vu.nl
;
; Vrije Universiteit Amsterdam - Amsterdam, The Netherlands
;Must match with main.c MAX_HISTORY_SIZE !
%de... |
vusec/bhi-spectre-bhb | 1,601 | re/x64/bhb_size/src/snippet.S | ; Thursday, September 9th 2021
;
; Enrico Barberis - e.barberis@vu.nl
; Pietro Frigo - p.frigo@vu.nl
; Marius Muench - m.muench@vu.nl
; Herbert Bos - herbertb@cs.vu.nl
; Cristiano Giuffrida - giuffrida@cs.vu.nl
;
; Vrije Universiteit Amsterdam - Amsterdam, The Netherlands
;Must match with main.c MAX_HISTORY_SIZE !
%de... |
vusec/bhi-spectre-bhb | 1,138 | re/x64/bhi_test/src/snippet.S | ; Thursday, September 9th 2021
;
; Enrico Barberis - e.barberis@vu.nl
; Pietro Frigo - p.frigo@vu.nl
; Marius Muench - m.muench@vu.nl
; Herbert Bos - herbertb@cs.vu.nl
; Cristiano Giuffrida - giuffrida@cs.vu.nl
;
; Vrije Universiteit Amsterdam - Amsterdam, The Netherlands
;Must match with main.c MAX_HISTORY_SIZE !
%de... |
vusec/ridl | 1,719 | tests/source/utils.S | .text
.globl enable_ac
enable_ac:
pushf
orq $(1 << 18), (%rsp)
popf
ret
.text
.globl disable_ac
disable_ac:
pushf
andq $~(1 << 18), (%rsp)
popf
ret
.text
.globl retpol_probe
retpol_probe:
call 1f
movzbq (%rsi), %rax
shlq $STRIDE_SHIFT, %rax
movzbq (%rdi, %rax), %rax
1:
leaq 2f(%rip), %rax
.rept 64
imul... |
vusec/inspectre-gadget | 2,652 | experiments/fineibt-bypass/src/snippet.S | #define MAX_HISTORY_SIZE 420
.intel_syntax noprefix
.section .text
# The kernel interface uses %rdi, %rsi, %rdx, %r10, %r8 and %r9
# ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# ; fill_bhb
# ; - arg 1 - rdi: ptr to history
# ; - arg 2 - rsi: syscall nr
# ; - arg 3 - rdx: syscall ... |
vusec/inspectre-gadget | 3,691 | experiments/native-bhi/src/snippet.S | # Must match with main.c MAX_HISTORY_SIZE !
#define MAX_HISTORY_SIZE 420
.intel_syntax noprefix
.section .text
# ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# ; fill_bhb
# ; - arg 1 - rdi: ptr to history
# ; - arg 2 - rsi: syscall nr
# ; - arg 3 - rdx: syscall arg1
# ; - arg 4 - r... |
vusec/inspectre-gadget | 2,313 | experiments/dispatch-gadgets/1stage-common_timer_del-of_css/snippet.S | #define MAX_HISTORY_SIZE 420
.intel_syntax noprefix
.section .text
# The kernel interface uses %rdi, %rsi, %rdx, %r10, %r8 and %r9
# ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# ; fill_bhb
# ; - arg 1 - rdi: ptr to history
# ; - arg 2 - rsi: syscall nr
# ; - arg 3 - rdx: syscall ... |
vusec/inspectre-gadget | 2,526 | experiments/dispatch-gadgets/1stage-m_show-of_css/snippet.S | #define MAX_HISTORY_SIZE 420
.intel_syntax noprefix
.section .text
# ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# ; fill_bhb
# ; - arg 1 - rdi: ptr to history
# ; - arg 2 - rsi: syscall nr
# ; - arg 3 - rdx: syscall arg1
# ; - arg 4 - rcx: syscall arg2
# ; - arg 5 - rcx: syscall ... |
vusec/inspectre-gadget | 2,425 | experiments/dispatch-gadgets/2stage-m_show-of_css/snippet.S | #define MAX_HISTORY_SIZE 420
.intel_syntax noprefix
.section .text
# ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# ; fill_bhb
# ; - arg 1 - rdi: ptr to history
# ; - arg 2 - rsi: syscall nr
# ; - arg 3 - rdx: syscall arg1
# ; - arg 4 - rcx: syscall arg2
# ; - arg 5 - rcx: syscall ... |
vusec/slam | 1,875 | slam/intel/lib/bhi.S | # Assembly code for Branch History Injection.
#
# Date: November 23, 2023
# Author: Mathé Hertogh - Vrije Universiteit Amsterdam
# Must match with HISTORY_LEN in bhi.c!
#define HISTORY_LEN 512
.intel_syntax noprefix
.section .text
# ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
# ;... |
vusec/inspectre-gadget | 1,518 | tests/test-cases/disjoint_range/gadget.s | .intel_syntax noprefix
disjoint_range:
mov rax, QWORD PTR [rdi + 0x28] # Load secret
mov rsi, QWORD PTR [rsi + 0x30] # Load secret
# JE
cmp rax, 0xf
je exit
mov rcx, QWORD PTR [rax] # Transmission 0
# transmitted_secret_range_w_branches: (0x11,0xf)
mov r8, ... |
vusec/inspectre-gadget | 1,372 | tests/test-cases/slam_covert/gadget.s | .intel_syntax noprefix
multiple_bb:
cmp r8, 0x0
je trans1
cmp r8, 0x1
je trans2
cmp r8, 0x2
je trans3
cmp r8, 0x3
je trans4_5
# -- exploitable gadgets
trans0:
mov r9, QWORD PTR [rdi] # load of secet
mov r10, QWORD PTR [r9 + 0x5890] # exploitable w ... |
vusec/einstein | 1,522 | apps/postgresql-15.1/src/backend/port/tas/sunstudio_sparc.s | !-------------------------------------------------------------------------
!
! sunstudio_sparc.s
! compare and swap for Sun Studio on Sparc
!
! Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
! Portions Copyright (c) 1994, Regents of the University of California
!
! IDENTIFICATION
! src/backen... |
vvaltchev/tilck | 8,506 | boot/legacy/boot.S | /* SPDX-License-Identifier: BSD-2-Clause */
.intel_syntax noprefix
#include <tilck_gen_headers/config_global.h>
#include <tilck_gen_headers/config_boot.h>
#define BASE_LOAD_SEG 0x07C0 /* x86 BIOS constant, do *not* touch */
.org 0x0000
.global _start
.section .text
.code16
_start:
jmp reloc
/* Fill t... |
vvaltchev/tilck | 2,316 | boot/legacy/boot_enable_a20.S | # SPDX-License-Identifier: CC0-1.0
.intel_syntax noprefix
.section .text
.global smart_enable_A20
.code16
# Function: check_a20
#
# Purpose:
# to check the status of the a20 line in a completely self-contained
# state-preserving way. The function can be modified as necessary by removing
# push's at the begin... |
vvaltchev/tilck | 2,030 | boot/efi/x86_64/switchmode.S | # SPDX-License-Identifier: BSD-2-Clause
.intel_syntax noprefix
#include <tilck_gen_headers/config_global.h>
#define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002
.global switch_to_pm32_and_jump_to_kernel
.section .text
.code64
switch_to_pm32_and_jump_to_kernel:
# arg1 in RDI: mbi
# arg2 in RSI: kernel's entry poin... |
vvaltchev/tilck | 5,654 | boot/legacy/stage3/rm_calls.S | # SPDX-License-Identifier: BSD-2-Clause
.intel_syntax noprefix
#include <tilck_gen_headers/config_global.h>
#include <tilck_gen_headers/config_boot.h>
# Usable (un)real mode functions
.code16
.global realmode_test_out
.global realmode_int_10h
.global realmode_int_13h
.global realmode_int_15h
.global realmode_int_1... |
vvaltchev/tilck | 8,063 | boot/legacy/stage3/entry.S | # SPDX-License-Identifier: BSD-2-Clause
.intel_syntax noprefix
#include <tilck_gen_headers/config_global.h>
#include <tilck_gen_headers/config_boot.h>
.section .text
.global _start
.global main
.global realmode_call_asm
_start:
main:
# Clear the direction flag since the C compiler has the right
# to assume t... |
vvaltchev/tilck | 3,478 | kernel/arch/riscv/start.S | # SPDX-License-Identifier: BSD-2-Clause
#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/riscv/asm_defs.h>
#include <multiboot.h>
.section .bss
.global kernel_initial_stack
.comm kernel... |
vvaltchev/tilck | 1,989 | kernel/arch/riscv/trap_entry.S | # SPDX-License-Identifier: BSD-2-Clause
#define ASM_FILE 1
#include <tilck_gen_headers/config_global.h>
#include <tilck/kernel/arch/riscv/asm_defs.h>
.section .text
.global asm_trap_entry
.global asm_trap_entry_resume
.global context_switch
.align 3
FUNC(asm_trap_entry):
# load kernel sp from sscratch, if is zer... |
vvaltchev/tilck | 1,601 | kernel/arch/riscv/misc.S | # SPDX-License-Identifier: BSD-2-Clause
#define ASM_FILE 1
#include <tilck_gen_headers/config_global.h>
#include <tilck_gen_headers/config_sched.h>
#include <tilck/kernel/arch/riscv/asm_defs.h>
#include <multiboot.h>
.section .text
.global asm_nop_loop
.global asm_do_bogomips_loop
# Loop used to perform short dela... |
vvaltchev/tilck | 1,658 | kernel/arch/riscv/kernel_yield.S | # SPDX-License-Identifier: BSD-2-Clause
#define ASM_FILE 1
#include <tilck_gen_headers/config_global.h>
#include <tilck_gen_headers/config_kernel.h>
#include <tilck_gen_headers/config_debug.h>
#include <tilck/kernel/arch/riscv/asm_defs.h>
#include <multiboot.h>
.section .text
.global asm_save_regs_and_schedule
.gl... |
vvaltchev/tilck | 2,048 | kernel/arch/riscv/fpu.S | # SPDX-License-Identifier: BSD-2-Clause
#define ASM_FILE 1
#include <tilck_gen_headers/config_global.h>
#include <tilck_gen_headers/config_kernel.h>
#include <tilck_gen_headers/config_debug.h>
#include <tilck/kernel/arch/riscv/asm_defs.h>
.section .text
.global asm_save_fpu
.global asm_restore_fpu
FUNC(asm_save_fp... |
vvaltchev/tilck | 2,896 | kernel/arch/riscv/fault_resumable.S | # SPDX-License-Identifier: BSD-2-Clause
#define ASM_FILE 1
#include <tilck_gen_headers/config_global.h>
#include <tilck/kernel/arch/riscv/asm_defs.h>
.section .text
.global fault_resumable_call
FUNC(fault_resumable_call):
save_fp_ra
addi sp, sp, -4 * RISCV_SZPTR
la t2, __disable_preempt # pus... |
vvaltchev/tilck | 1,095 | kernel/arch/i386/irq_handlers.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>
.section .text
.global irq_entry_points
.global asm_irq_entry
# IRQs common entry point
FUNC(asm_irq_entry):
kernel_entry_common
push_cus... |
vvaltchev/tilck | 4,115 | kernel/arch/i386/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/i386/asm_defs.h>
#include <multiboot.h>
.code32
.section bss
.global ker... |
vvaltchev/tilck | 2,953 | kernel/arch/i386/syscall_entry.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_mm.h>
#include <tilck/kernel/arch/i386/asm_defs.h>
.code32
.section .text
.global syscall_int80_entry
.glo... |
vvaltchev/tilck | 3,269 | kernel/arch/i386/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>
.code32
.section .text
.global asm_nop_loop
.global asm_do_bogomips_loop
.g... |
vvaltchev/tilck | 2,688 | kernel/arch/i386/kernel_yield.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_debug.h>
#include <tilck/kernel/arch/i386/asm_defs.h>
#include <multiboot.h>
.section .text
.code32
.globa... |
vvaltchev/tilck | 2,192 | kernel/arch/i386/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>
.code32
.section .text
.global fault_resumable_call
FUNC(fault_resumable_call):
mov ecx, [__current]
push [ecx + TI_F_RESUME_RS_OFF] ... |
vvaltchev/tilck | 2,406 | kernel/arch/i386/fault_handlers.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>
.section .text
.global fault_entry_points
.global double_fault_handler_asm
.macro fault number
FUNC(fault\number):
push 0
push \number
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.