repo_id
string
size
int64
file_path
string
content
string
x893/CNC-STM32
23,394
src/libcmsis/startup/gcc/startup_stm32f2xx.s
/** ****************************************************************************** * @file startup_stm32f2xx.s * @author MCD Application Team * @version V1.1.3 * @date 05-March-2012 * @brief STM32F2xx Devices vector table for RIDE7 toolchain. * This module performs: * ...
x893/CNC-STM32
13,077
src/libcmsis/startup/gcc/startup_stm32f10x_hd.s
/** ****************************************************************************** * @file startup_stm32f10x_hd.s * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief STM32F10x High Density Devices vector table for RIDE7 toolchain. * This module perfo...
x893/CNC-STM32
12,453
src/libcmsis/startup/gcc/startup_stm32f10x_cl.s
/** ****************************************************************************** * @file startup_stm32f10x_cl.s * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief STM32F10x Connectivity line Devices vector table for RIDE7 toolchain. * This module performs: *...
x893/CNC-STM32
20,208
src/libcmsis/startup/gcc/startup_stm32f401xx.s
/** ****************************************************************************** * @file startup_stm32f40xx.s * @author MCD Application Team * @version V1.3.0 * @date 08-November-2013 * @brief STM32F401xx Devices vector table for RIDE7 toolchain. * This module per...
x893/STM32F103-DualCDC
11,871
Libraries/CMSIS/Core/CM3/startup/arm/startup_stm32f10x_ld.s
;******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_ld.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x Low Density Devices vector table for RVMDK ;* ...
x893/STM32F103-DualCDC
12,261
Libraries/CMSIS/Core/CM3/startup/arm/startup_stm32f10x_md.s
;******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_md.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x Medium Density Devices vector table for RVMDK ...
x893/STM32F103-DualCDC
15,068
Libraries/CMSIS/Core/CM3/startup/arm/startup_stm32f10x_hd.s
;******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_hd.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x High Density Devices vector table for RVMDK ;*...
x893/STM32F103-DualCDC
15,236
Libraries/CMSIS/Core/CM3/startup/arm/startup_stm32f10x_cl.s
;******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_cl.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x Connectivity line devices vector table for RVMD...
x893/STM32F103-DualCDC
9,491
Libraries/CMSIS/Core/CM3/startup/gcc/startup_stm32f10x_ld.s
/** ****************************************************************************** * @file startup_stm32f10x_ld.s * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief STM32F10x Low Density Devices vector table for RIDE7 toolchain. * This module perform...
x893/STM32F103-DualCDC
9,985
Libraries/CMSIS/Core/CM3/startup/gcc/startup_stm32f10x_md.s
/** ****************************************************************************** * @file startup_stm32f10x_md.s * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief STM32F10x Medium Density Devices vector table for RIDE7 toolchain. * This module perf...
x893/STM32F103-DualCDC
13,077
Libraries/CMSIS/Core/CM3/startup/gcc/startup_stm32f10x_hd.s
/** ****************************************************************************** * @file startup_stm32f10x_hd.s * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief STM32F10x High Density Devices vector table for RIDE7 toolchain. * This module perfo...
x893/STM32F103-DualCDC
12,453
Libraries/CMSIS/Core/CM3/startup/gcc/startup_stm32f10x_cl.s
/** ****************************************************************************** * @file startup_stm32f10x_cl.s * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief STM32F10x Connectivity line Devices vector table for RIDE7 toolchain. * This module performs: *...
x893/STM32F103-DualCDC
11,976
Libraries/CMSIS/Core/CM3/startup/iar/startup_stm32f10x_ld.s
;/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_ld.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x Low Density Devices vector table for EWARM5.x ...
x893/STM32F103-DualCDC
12,212
Libraries/CMSIS/Core/CM3/startup/iar/startup_stm32f10x_md.s
;/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_md.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x Medium Density Devices vector table for ;* ...
x893/STM32F103-DualCDC
16,199
Libraries/CMSIS/Core/CM3/startup/iar/startup_stm32f10x_hd.s
;/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_hd.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x High Density Devices vector table for EWARM5.x...
x893/STM32F103-DualCDC
15,811
Libraries/CMSIS/Core/CM3/startup/iar/startup_stm32f10x_cl.s
;/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_cl.s ;* Author : MCD Application Team ;* Version : V3.1.2 ;* Date : 09/28/2009 ;* Description : STM32F10x Connectivity line devices vector table for ;*...
XAMPPRocky/tokei
1,232
tests/data/gas.S
// 67 lines 46 code 10 comments 11 blanks #include "config.h" /* BIG FAT WARNING GOES HERE */ #define dbg(char) \ mov \char, %ax ;\ out %ax, $0xe9 ;\ #endif .align 16 .code16 .section .resettext, "xa", @progbits reset_vector: cli jmp switch_modes .section .text switch_modes: /* * The developer manual builds u...
xarantolus/ax
1,521
testdata/string_reverse.S
.intel_syntax noprefix .global main # R10 is an address of a buffer for storing a single byte (char) # Use r11 as input_string address, r12 as input_progress, r13 as input string length # Then r14 as output string, r15 as output progress .section .text main: xor rbx, rbx xor rcx, rcx .LConfusedStonks_0: .LUpgrad...
xarantolus/ax
1,360
examples/programs/hex/hex_naive.s
.intel_syntax noprefix .section .text .global _start _start: .Lread_start: mov rax, 0 # Read mov rdi, 0 # From Stdin lea rsi, [rip+char] # To char mov rdx, 1 # one byte syscall # Error handling: reading <= 0 bytes is an error cmp rax, 0 JLE .Lloop_end mov al, [rip+char] m...
xarantolus/ax
2,299
examples/programs/args/args.S
.intel_syntax noprefix .section .rodata .Largv: .ascii "--------------------------------------------------\nargv values:\n--------------------------------------------------\n" .Largv_len: .quad .Largv_len - .Largv .Lenvp: .ascii "--------------------------------------------------\nenvp values:\n----------------------...
XasWorks/esp-libopus
20,117
celt/arm/celt_pitch_xcorr_arm.s
; Copyright (c) 2007-2008 CSIRO ; Copyright (c) 2007-2009 Xiph.Org Foundation ; Copyright (c) 2013 Parrot ; Written by Aurélien Zanelli ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; - Redistributions of sou...
xavierleroy/arm64-barriers
4,155
blit.S
#ifdef __APPLE__ #define G(x) _##x #else #define G(x) x #endif .text .align 3 .global G(blit_dmb) G(blit_dmb): .cfi_startproc sub sp, sp, #16 .cfi_adjust_cfa_offset 16 .cfi_offset 30, -8 str x30, [sp, #8] L140: add x2, x2, x2 add x2, x2, #1 orr x5, xzr, #1 L139: cmp x5, x2 b.g...
xaxaxa/workspace
1,057
ukernel/arch/i386/misc.S
.global _handle_syscall,_set_esp_and_jmp,_call_child_process,_call_child_process_returnto _handle_syscall: //save gs push %gs //save all registers push %ebp push %edi push %esi push %edx push %ecx push %ebx push %eax //get the kernel's gs segment call _get_kthread_gs //switch gs mov %eax, %gs //call sy...
xboot/xfel
1,931
payloads/v831/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,913
payloads/v831/jtag/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,498
payloads/v821/write32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,549
payloads/v821/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,498
payloads/v821/read32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,783
payloads/h2_h3/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,802
payloads/h2_h3/h2-ddr/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
8,838
payloads/h2_h3/h2-ddr/source/memcpy.S
/* * memcpy.S */ .text .global memcpy .type memcpy, %function .align 4 memcpy: /* determine copy direction */ cmp r1, r0 bcc .Lmemcpy_backwards moveq r0, #0 /* quick abort for len=0 */ moveq pc, lr stmdb sp!, {r0, lr} /* memcpy() returns dest addr */ subs r2, r2, #4 blt .Lmemcpy_fl4 ...
xboot/xfel
2,042
payloads/h2_h3/h2-ddr/source/memset.S
/* * memcpy.S */ .text .global memset .type memset, %function .align 4 memset: stmfd sp!, {r0} /* remember address for return value */ and r1, r1, #0x000000ff /* we write bytes */ cmp r2, #0x00000004 /* do we have less than 4 bytes */ blt .Lmemset_lessthanfour /* first we will word alig...
xboot/xfel
1,802
payloads/h2_h3/h3-ddr/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
8,838
payloads/h2_h3/h3-ddr/source/memcpy.S
/* * memcpy.S */ .text .global memcpy .type memcpy, %function .align 4 memcpy: /* determine copy direction */ cmp r1, r0 bcc .Lmemcpy_backwards moveq r0, #0 /* quick abort for len=0 */ moveq pc, lr stmdb sp!, {r0, lr} /* memcpy() returns dest addr */ subs r2, r2, #4 blt .Lmemcpy_fl4 ...
xboot/xfel
2,042
payloads/h2_h3/h3-ddr/source/memset.S
/* * memcpy.S */ .text .global memset .type memset, %function .align 4 memset: stmfd sp!, {r0} /* remember address for return value */ and r1, r1, #0x000000ff /* we write bytes */ cmp r2, #0x00000004 /* do we have less than 4 bytes */ blt .Lmemset_lessthanfour /* first we will word alig...
xboot/xfel
1,765
payloads/h2_h3/jtag/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xrock
8,137
payloads/write-arm32.S
.text .arm .global _start _start: mov r0, #0 mcr p15, 0, r0, c8, c7, 0 mcr p15, 0, r0, c7, c5, 0 mcr p15, 0, r0, c7, c5, 6 mcr p15, 0, r0, c7, c10, 4 mcr p15, 0, r0, c7, c5, 4 b reset _memmove: cmp r1, r0 bcc .Lmemcpy_backwards moveq r0, #0 moveq pc, lr stmdb sp!, {r0, lr} subs r2, r2, #4 blt .Lmem...
xboot/xrock
1,686
payloads/write-arm64.S
.global _start _start: isb dsb sy b reset _memmove: sub sp, sp, #0x30 str x0, [sp, #24] str x1, [sp, #16] str x2, [sp, #8] ldr x1, [sp, #24] ldr x0, [sp, #16] cmp x1, x0 b.hi ml2 ldr x0, [sp, #24] str x0, [sp, #32] ldr x0, [sp, #16] str x0, [sp, #40] b ml1 ml0: ldr x1, [sp, #40] add x0, x1, #0x1 st...
xboot/xrock
1,067
payloads/dump-arm32/src/start.S
.text .arm .global _start _start: mov r0, #0 mcr p15, 0, r0, c8, c7, 0 mcr p15, 0, r0, c7, c5, 0 mcr p15, 0, r0, c7, c5, 6 mcr p15, 0, r0, c7, c10, 4 mcr p15, 0, r0, c7, c5, 4 b reset .align 2 _uart_address: .long 0xff4c0000 _dump_address: .long 0x00000000 _dump_size: .long 0x00000000 .align 2 _maskrom...
xboot/xfel
1,949
payloads/v3s_s3/v3s-ddr/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
8,838
payloads/v3s_s3/v3s-ddr/source/memcpy.S
/* * memcpy.S */ .text .global memcpy .type memcpy, %function .align 4 memcpy: /* determine copy direction */ cmp r1, r0 bcc .Lmemcpy_backwards moveq r0, #0 /* quick abort for len=0 */ moveq pc, lr stmdb sp!, {r0, lr} /* memcpy() returns dest addr */ subs r2, r2, #4 blt .Lmemcpy_fl4 ...
xboot/xfel
2,042
payloads/v3s_s3/v3s-ddr/source/memset.S
/* * memcpy.S */ .text .global memset .type memset, %function .align 4 memset: stmfd sp!, {r0} /* remember address for return value */ and r1, r1, #0x000000ff /* we write bytes */ cmp r2, #0x00000004 /* do we have less than 4 bytes */ blt .Lmemset_lessthanfour /* first we will word alig...
xboot/xfel
1,931
payloads/v3s_s3/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,949
payloads/v3s_s3/s3-ddr/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
8,838
payloads/v3s_s3/s3-ddr/source/memcpy.S
/* * memcpy.S */ .text .global memcpy .type memcpy, %function .align 4 memcpy: /* determine copy direction */ cmp r1, r0 bcc .Lmemcpy_backwards moveq r0, #0 /* quick abort for len=0 */ moveq pc, lr stmdb sp!, {r0, lr} /* memcpy() returns dest addr */ subs r2, r2, #4 blt .Lmemcpy_fl4 ...
xboot/xfel
2,042
payloads/v3s_s3/s3-ddr/source/memset.S
/* * memcpy.S */ .text .global memset .type memset, %function .align 4 memset: stmfd sp!, {r0} /* remember address for return value */ and r1, r1, #0x000000ff /* we write bytes */ cmp r2, #0x00000004 /* do we have less than 4 bytes */ blt .Lmemset_lessthanfour /* first we will word alig...
xboot/xfel
1,912
payloads/v3s_s3/jtag/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,967
payloads/f1c100s_f1c200s_f1c500s/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,985
payloads/f1c100s_f1c200s_f1c500s/ddr/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
8,838
payloads/f1c100s_f1c200s_f1c500s/ddr/source/memcpy.S
/* * memcpy.S */ .text .global memcpy .type memcpy, %function .align 4 memcpy: /* determine copy direction */ cmp r1, r0 bcc .Lmemcpy_backwards moveq r0, #0 /* quick abort for len=0 */ moveq pc, lr stmdb sp!, {r0, lr} /* memcpy() returns dest addr */ subs r2, r2, #4 blt .Lmemcpy_fl4 ...
xboot/xfel
2,042
payloads/f1c100s_f1c200s_f1c500s/ddr/source/memset.S
/* * memcpy.S */ .text .global memset .type memset, %function .align 4 memset: stmfd sp!, {r0} /* remember address for return value */ and r1, r1, #0x000000ff /* we write bytes */ cmp r2, #0x00000004 /* do we have less than 4 bytes */ blt .Lmemset_lessthanfour /* first we will word alig...
xboot/xfel
1,948
payloads/f1c100s_f1c200s_f1c500s/jtag/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,543
payloads/r128/write32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,507
payloads/r128/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,559
payloads/r128/read32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,954
payloads/a523_a527_t527/jmp-arm64/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,536
payloads/r528_t113/write32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,931
payloads/r528_t113/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,550
payloads/r528_t113/read32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,912
payloads/r528_t113/jtag/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
2,047
payloads/d1_f133/f133-ddr/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,586
payloads/d1_f133/f133-ddr/source/memcpy.S
#include <linkage.h> .global memcpy .type memcpy, %function .align 3 memcpy: move t6, a0 sltiu a3, a2, 128 bnez a3, 4f andi a3, t6, REGSZ - 1 andi a4, a1, REGSZ - 1 bne a3, a4, 4f beqz a3, 2f andi a3, a1, ~(REGSZ - 1) addi a3, a3, REGSZ sub a4, a3, a1 1: lb a5, 0(a1) addi a1, a1, 1 sb a5, 0(t6) addi t6...
xboot/xfel
512,614
payloads/d1_f133/f133-ddr/source/mctl_hal.S
.file "mctl_hal.c" .option nopic .text .Ltext0: .cfi_sections .debug_frame .section .text.set_ddr_voltage,"ax",@progbits .align 1 .weak set_ddr_voltage .type set_ddr_voltage, @function set_ddr_voltage: .LFB37: .file 1 "mctl_hal.c" .loc 1 29 1 .cfi_startproc .LVL0: .loc 1 30 1 ret .cfi_endproc .LFE37: .si...
xboot/xfel
1,588
payloads/d1_f133/f133-ddr/source/memset.S
#include <linkage.h> .global memset .type memset, %function .align 3 memset: move t0, a0 sltiu a3, a2, 16 bnez a3, 4f addi a3, t0, REGSZ - 1 andi a3, a3, ~(REGSZ - 1) beq a3, t0, 2f sub a4, a3, t0 1: sb a1, 0(t0) addi t0, t0, 1 bltu t0, a3, 1b sub a2, a2, a4 2: andi a1, a1, 0xff slli a3, a1, 8 or a1, a3...
xboot/xfel
2,039
payloads/d1_f133/d1-ddr/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,586
payloads/d1_f133/d1-ddr/source/memcpy.S
#include <linkage.h> .global memcpy .type memcpy, %function .align 3 memcpy: move t6, a0 sltiu a3, a2, 128 bnez a3, 4f andi a3, t6, REGSZ - 1 andi a4, a1, REGSZ - 1 bne a3, a4, 4f beqz a3, 2f andi a3, a1, ~(REGSZ - 1) addi a3, a3, REGSZ sub a4, a3, a1 1: lb a5, 0(a1) addi a1, a1, 1 sb a5, 0(t6) addi t6...
xboot/xfel
512,614
payloads/d1_f133/d1-ddr/source/mctl_hal.S
.file "mctl_hal.c" .option nopic .text .Ltext0: .cfi_sections .debug_frame .section .text.set_ddr_voltage,"ax",@progbits .align 1 .weak set_ddr_voltage .type set_ddr_voltage, @function set_ddr_voltage: .LFB37: .file 1 "mctl_hal.c" .loc 1 29 1 .cfi_startproc .LVL0: .loc 1 30 1 ret .cfi_endproc .LFE37: .si...
xboot/xfel
1,588
payloads/d1_f133/d1-ddr/source/memset.S
#include <linkage.h> .global memset .type memset, %function .align 3 memset: move t0, a0 sltiu a3, a2, 16 bnez a3, 4f addi a3, t0, REGSZ - 1 andi a3, a3, ~(REGSZ - 1) beq a3, t0, 2f sub a4, a3, t0 1: sb a1, 0(t0) addi t0, t0, 1 bltu t0, a3, 1b sub a2, a2, a4 2: andi a1, a1, 0xff slli a3, a1, 8 or a1, a3...
xboot/xfel
1,520
payloads/d1_f133/write32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,569
payloads/d1_f133/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,520
payloads/d1_f133/read32/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,552
payloads/d1_f133/jtag/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,931
payloads/v851_v853/spi/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/xfel
1,912
payloads/v851_v853/jtag/source/start.S
/* * start.S * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
xboot/libxnes
36,714
documents/test-roms/scrolltest/scroll.s
;ͻ ;Split screen multidirection scrolling with MMC1 mapper ;Written by Cadaver, 1-2/2000 ;Fixed to work on Nintendulator by Cadaver, 1/2004, added NTSC detection ;More stuff maybe to follow.. ;...
xboot/libxnes
2,380
documents/test-roms/instr_test-v5/source/07-abs_xy.s
.include "instr_test.inc" instrs: entry $BD,"LDA a,X" ; AXY = a,XY entry $B9,"LDA a,Y" entry $BC,"LDY a,X" entry $BE,"LDX a,Y" entry $9D,"STA a,X" ; a,XY = A entry $99,"STA a,Y" entry $FE,"INC a,X" ; a,XY = op a,XY entry $DE,"DEC a,X" entry $1E,"ASL a,X" entry $5E,"LSR a,X" entry $3E,"ROL a,X" entry $7...
xboot/libxnes
1,282
documents/test-roms/instr_test-v5/source/02-implied.s
.include "instr_test.inc" instrs: entry $2A,"ROL A" ; A = op A entry $0A,"ASL A" entry $6A,"ROR A" entry $4A,"LSR A" entry $8A,"TXA" ; AXY = AXY entry $98,"TYA" entry $AA,"TAX" entry $A8,"TAY" entry $E8,"INX" ; XY = op XY entry $C8,"INY" entry $CA,"DEX" entry $88,"DEY" entry $38,"SEC" ; flags = op fl...
xboot/libxnes
1,497
documents/test-roms/instr_test-v5/source/06-absolute.s
.include "instr_test.inc" instrs: entry $AD,"LDA a" ; AXY = a entry $AE,"LDX a" entry $AC,"LDY a" entry $8D,"STA a" ; a = AXY entry $8E,"STX a" entry $8C,"STY a" entry $EE,"INC a" ; a = op a entry $CE,"DEC a" entry $0E,"ASL a" entry $4E,"LSR a" entry $2E,"ROL a" entry $6E,"ROR a" entry $6D,"ADC a" ;...
xboot/libxnes
1,346
documents/test-roms/instr_test-v5/source/11-stack.s
.include "instr_test.inc" instrs: entry $48,"PHA" entry $08,"PHP" entry $68,"PLA" entry $28,"PLP" entry $9A,"TXS" entry $BA,"TSX" instrs_size = * - instrs instr_template: pha jmp instr_done instr_template_size = * - instr_template values2: .byte 0,$FF,$01,$02,$04,$08,$10,$20,$40,$80 values2_size = * - v...
xboot/libxnes
1,210
documents/test-roms/instr_test-v5/source/01-basics.s
CUSTOM_NMI = 1 CUSTOM_IRQ = 1 .include "shell.inc" zp_res interrupt_count nmi: inc interrupt_count rti irq: inc interrupt_count lsr $4015 rti main: set_test 2,"Interrupts could not be disabled" mov SNDCHN,#0 ; disable interrupts mov $4010,#0 mov SNDMODE,#$C0 mov PPUCTRL,#0 cli mov interrup...
xboot/libxnes
1,534
documents/test-roms/instr_test-v5/source/08-ind_x.s
.include "instr_test.inc" instrs: entry $A1,"LDA (z,X)" ; A = (z,X) entry $81,"STA (z,X)" ; (z,X) = A entry $C1,"CMP (z,X)" ; A op (z,X) entry $61,"ADC (z,X)" ; A = A op (z,X) entry $E1,"SBC (z,X)" entry $01,"ORA (z,X)" entry $21,"AND (z,X)" entry $41,"EOR (z,X)" .ifndef OFFICIAL_ONLY entry $03,"SLO (z,...
xboot/libxnes
1,869
documents/test-roms/instr_test-v5/source/05-zp_xy.s
.include "instr_test.inc" instrs: entry $B5,"LDA z,X" ; AXY = z,XY entry $B4,"LDY z,X" entry $B6,"LDX z,Y" entry $95,"STA z,X" ; z,XY = AXY entry $94,"STY z,X" entry $96,"STX z,Y" entry $F6,"INC z,X" ; z,XY = op z,XY entry $D6,"DEC z,X" entry $16,"ASL z,X" entry $56,"LSR z,X" entry $36,"ROL z,X" entry ...
xboot/libxnes
1,309
documents/test-roms/instr_test-v5/source/09-ind_y.s
.include "instr_test.inc" instrs: entry $B1,"LDA (z),Y" ; A = (z),Y entry $91,"STA (z),Y" ; (z),Y = A entry $D1,"CMP (z),Y" ; A op (z),Y entry $11,"ORA (z),Y" ; A = A op (z),Y entry $F1,"SBC (z),Y" entry $71,"ADC (z),Y" entry $31,"AND (z),Y" entry $51,"EOR (z),Y" .ifndef OFFICIAL_ONLY entry $13,"SLO (z)...
xboot/libxnes
1,228
documents/test-roms/instr_test-v5/source/03-immediate.s
.include "instr_test.inc" instrs: entry $A9,"LDA #n" ; AXY = #n entry $A2,"LDX #n" entry $A0,"LDY #n" entry $69,"ADC #n" ; A = A op #n entry $E9,"SBC #n" entry $09,"ORA #n" entry $29,"AND #n" entry $49,"EOR #n" entry $C9,"CMP #n" ; AXY op #n entry $E0,"CPX #n" entry $C0,"CPY #n" .ifndef OFFICIAL_ONLY e...
xboot/libxnes
1,552
documents/test-roms/instr_test-v5/source/04-zero_page.s
.include "instr_test.inc" instrs: entry $A5,"LDA z" ; AXY = z entry $A6,"LDX z" entry $A4,"LDY z" entry $85,"STA z" ; z = AXY entry $86,"STX z" entry $84,"STY z" entry $E6,"INC z" ; z = op z entry $C6,"DEC z" entry $06,"ASL z" entry $46,"LSR z" entry $26,"ROL z" entry $66,"ROR z" entry $65,"ADC z" ;...
xboot/libxnes
1,859
documents/test-roms/instr_test-v5/source/common/testing.s
; Utilities for writing test ROMs ; In NVRAM so these can be used before initializing runtime, ; then runtime initialized without clearing them nv_res test_code ; code of current test nv_res test_name,2 ; address of name of current test, or 0 of none ; Sets current test code and optional name. Also resets ; checksum...
xboot/libxnes
3,210
documents/test-roms/instr_test-v5/source/common/print.s
; Prints values in various ways to output, ; including numbers and strings. newline = 10 zp_byte print_temp_ ; Prints indicated register to console as two hex ; chars and space ; Preserved: A, X, Y, flags print_a: php pha print_reg_: jsr print_hex lda #' ' jsr print_char_ pla plp rts print_x: php pha txa...
xboot/libxnes
5,224
documents/test-roms/instr_test-v5/source/common/crc_fast.s
; Fast table-based CRC-32 ; Initializes fast CRC tables and resets checksum. ; Preserved: Y init_crc_fast = reset_crc ; Updates checksum with byte from A ; Preserved: X, Y ; Time: 54 clocks update_crc_fast: stx checksum_temp ; Updates checksum with byte from A ; Preserved: Y ; Time: 42 clocks .macro update_crc_fast...
xboot/libxnes
3,570
documents/test-roms/instr_test-v5/source/common/shell_misc.s
; Reports internal error and exits program internal_error: assert_failed: pla tay pla init_cpu_regs print_str newline,"internal error, PC=" jsr print_hex jsr print_y lda #255 jmp exit .import __NVRAM_LOAD__, __NVRAM_SIZE__ .macro fill_ram_ Begin, End ; Simpler to count from negative size up to 0, ; and adj...
xboot/libxnes
2,125
documents/test-roms/instr_test-v5/source/common/build_rom.s
; Builds program as iNES ROM ; Default is 32K PRG and 8K CHR ROM, NROM (0) ; CHR_RAM selects UNROM (2) ; CART_WRAM selects MMC1 (1) .if 0 ; Options to set before .include "shell.inc": CHR_RAM = 1 ; Use CHR-RAM instead of CHR-ROM CART_WRAM = 1 ; Use mapper that supports 8K WRAM in cart MAPPER = n ; Specify ...
xboot/libxnes
5,402
documents/test-roms/instr_test-v5/source/common/console.s
; Scrolling text console with word wrapping, 30x29 characters. ; ; * Defers PPU initialization until first flush/ newline. ; * Works even if PPU doesn't support scrolling. ; * Keeps border around edge of screen for TV overscan. ; * Requires vertical or single-screen mirroring. ; * Requires ASCII font in CHR. .ifndef C...
xboot/libxnes
1,092
documents/test-roms/instr_test-v5/source/common/text_out.s
; Text output as expanding zero-terminated string at text_out_base ; The final exit result byte is written here final_result = $6000 ; Text output is written here as an expanding ; zero-terminated string text_out_base = $6004 bss_res text_out_temp zp_res text_out_addr,2 init_text_out: ldx #0 ; Put valid data fi...
xboot/libxnes
3,048
documents/test-roms/instr_test-v5/source/common/ppu.s
; PPU utilities bss_res ppu_not_present ; Sets PPUADDR to w ; Preserved: X, Y .macro set_ppuaddr w bit PPUSTATUS setb PPUADDR,>w setb PPUADDR,<w .endmacro ; Delays by no more than n scanlines .macro delay_scanlines n .if CLOCK_RATE <> 1789773 .error "Currently only supports NTSC" .endif delay ((n)*341)/3 .e...
xboot/libxnes
2,752
documents/test-roms/instr_test-v5/source/common/shell.s
; Shell that sets up testing framework and calls main ; Detect inclusion loops (otherwise ca65 goes crazy) .ifdef SHELL_INCLUDED .error "shell.s included twice" .end .endif SHELL_INCLUDED = 1 ; Temporary variables that ANY routine might modify, so ; only use them between routine calls. temp = <$A temp2 = <$B tem...
xboot/libxnes
3,670
documents/test-roms/instr_test-v5/source/common/delay.s
; Delays in CPU clocks, milliseconds, etc. All routines are re-entrant ; (no global data). No routines touch X or Y during execution. ; Code generated by macros is relocatable; it contains no JMPs to itself. zp_res delay_temp_ ; only written to ; Delays n clocks, from 2 to 16777215 ; Preserved: A, X, Y, flags .macro ...
xboot/libxnes
2,812
documents/test-roms/instr_test-v5/source/common/instr_test_end.s
; Offset of current instruction zp_byte instrs_idx zp_byte failed_count zp_byte interrupt_occurred .ifdef OUR_CUSTOM_IRQ irq: pla pha and #$10 beq :+ ldx #$A2 ; fix stack txs jsr reset_crc ; force failure jmp force_failure .endif nmi: bit interrupt_occurred bpl @interrupt bit $4015 rti @interrupt...
xboot/libxnes
1,580
documents/test-roms/instr_test-v5/source/common/crc.s
; CRC-32 checksum calculation zp_res checksum,4 ; Current CRC-32; no need to invert zp_byte checksum_temp zp_byte checksum_off_ ; Turns CRC updating on/off. Allows nesting. ; Preserved: A, X, Y crc_off: dec checksum_off_ rts crc_on: inc checksum_off_ beq :+ jpl internal_error ; catch unbalanced crc calls : r...
xboot/libxnes
11,918
documents/test-roms/cpu_flag_concurrency/source/test_cpu_flag_concurrency.s
; Expected output, and explanation: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Written by Joel Yliluoma - http://iki.fi/bisqwit/ .segment "LIB" .include "shell.inc" .include "colors.inc" .include "sync_apu.s" .segment "CODE" zp_res irq_temp zp_res nmi_temp zp_res irq_count...
xboot/libxnes
1,856
documents/test-roms/cpu_flag_concurrency/source/common/testing.s
; Utilities for writing test ROMs ; In NVRAM so these can be used before initializing runtime, ; then runtime initialized without clearing them nv_res test_code ; code of current test nv_res test_name,2 ; address of name of current test, or 0 of none ; Sets current test code and optional name. Also resets ; checksum...
xboot/libxnes
5,535
documents/test-roms/cpu_flag_concurrency/source/common/print.s
; Prints values in various ways to output, ; including numbers and strings. newline = 10 zp_byte print_temp_ ; Prints indicated register to console as two hex ; chars and space ; Preserved: A, X, Y, flags print_a: php pha print_reg_: jsr print_hex lda #' ' jsr print_char_ pla plp rts print_x: php pha txa...