1
0
mirror of https://github.com/livingcomputermuseum/UniBone.git synced 2026-05-04 23:16:32 +00:00
Files
livingcomputermuseum.UniBone/10.01_base/4_deploy/pru0_datout.lst
Joerg Hoppe 2530d9cbb5 Initial
2019-04-05 11:30:26 +02:00

55 lines
2.4 KiB
Plaintext

PRU Assembler Unix v2.3.1 Sun Mar 31 20:55:28 2019
Tools Copyright (c) 2012-2017 Texas Instruments Incorporated
pru0_datout.asmsrc PAGE 1
1;
2; pru0_datout.asmsrc: PRU0 loop to copy XFR to GPIO out
3;
4; Copyright (c) 2018, Joerg Hoppe
5; j_hoppe@t-online.de, www.retrocmp.com
6;
7; Permission is hereby granted, free of charge, to any person obtaining a
8; copy of this software and associated documentation files (the "Software"),
9; to deal in the Software without restriction, including without limitation
10; the rights to use, copy, modify, merge, publish, distribute, sublicense,
11; and/or sell copies of the Software, and to permit persons to whom the
12; Software is furnished to do so, subject to the following conditions:
13;
14; The above copyright notice and this permission notice shall be included in
15; all copies or substantial portions of the Software.
16;
17; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20; JOERG HOPPE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21; IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23;
24;
25; 12-nov-2018 JH entered beta phase
26;
27;
28; Assembler function, which endlessly reads r14 from XFR area
29; and copies to output pins DATOUT
30; needs 15ns to loop
31;
32; to be declared in C as
33; extern "C" {
34; void pru0_dataout(void) ;
35; }
36; See Compiler 2.2 Guide, Chapter 6.6
37
38 .global pru0_dataout
39
40 ; a 32bit parameter is received in r14
41 ; 10 ns delay
42 00000000 pru0_dataout:
43 ; do nothing at first
44 ; Device ID 14 = "other PRU"
45 00000000 0000002E87018E xin 14,&r14,4
46 00000004 00000010EEEEFE mov r30,r14
47 00000008 00000021000000! jmp pru0_dataout ; never returns
No Assembly Errors, No Assembly Warnings