URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Subversion Repositories open8_urisc
[/] [open8_urisc/] [trunk/] [taskmgr/] [task_1_const.s] - Rev 318
Go to most recent revision | Compare with Previous | Blame | View Log
; Copyright (c)2022 Jeremy Seth Henry ; 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 conditions and the following disclaimer. ; * Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution, ; where applicable (as part of a user interface, debugging port, etc.) ; ; THIS SOFTWARE IS PROVIDED BY JEREMY SETH HENRY ``AS IS'' AND ANY ; EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ; DISCLAIMED. IN NO EVENT SHALL JEREMY SETH HENRY BE LIABLE FOR ANY ; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ; THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ; ;------------------------------------------------------------------------------ ; task_1_const.s ; ; Revision History ; Author Date Change ;---------------- -------- --------------------------------------------------- ; Seth Henry 7/15/22 Initial Release ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ; Task Manager Macros & Defines ;------------------------------------------------------------------------------ ; Task supervisory functions (optional, but must be defined) .MACRO TASK1_PANIC .ENDM .MACRO TASK1_SUPV_FN0 .ENDM .MACRO TASK1_SUPV_FN1 .ENDM .MACRO TASK1_SUPV_FN2 .ENDM .MACRO TASK1_SUPV_FN3 .ENDM .MACRO TASK1_SUPV_FN4 .ENDM ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ; I/O Mapping (HDL -> ASSY) ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ; Pointer Defines and Memory Management ;------------------------------------------------------------------------------ .MACRO INSTANCE_TASK1_POINTERS .ENDM ; Memory Structures and Variable Organization ; Variable Size Description ; -------- ---- ------------------------------------------------------- ; Allocate the variable structures in memory .ENUM TASK1_VARMEM TSK1_TL INSTANCEOF str_task_label .ENDE .MACRO SET_TASK1_LABEL LDI R0, #$54 ; T STA R0, TSK1_TL.Label+0 LDI R0, #$31 ; 1 STA R0, TSK1_TL.Label+1 .ENDM .MACRO INITIALIZE_TASK1_VARS SET_TASK1_LABEL .ENDM ;------------------------------------------------------------------------------
Go to most recent revision | Compare with Previous | Blame | View Log