URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Subversion Repositories open8_urisc
[/] [open8_urisc/] [trunk/] [taskmgr/] [task_0_const.s] - Rev 334
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_0_consts.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 TASK0_PANIC .ENDM .MACRO TASK0_SUPV_FN0 .ENDM .MACRO TASK0_SUPV_FN1 .ENDM .MACRO TASK0_SUPV_FN2 .ENDM .MACRO TASK0_SUPV_FN3 .ENDM .MACRO TASK0_SUPV_FN4 .ENDM ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ; I/O Mapping (HDL -> ASSY) ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------ ; Pointer Defines and Memory Management ;------------------------------------------------------------------------------ .MACRO INSTANCE_TASK0_POINTERS .ENDM ; Memory Structures and Variable Organization ; Variable Size Description ; -------- ---- ------------------------------------------------------- ; Allocate the variable structures in memory .ENUM TASK0_VARMEM TSK0_TL INSTANCEOF str_task_label .ENDE .MACRO SET_TASK0_LABEL LDI R0, #$54 ; T STA R0, TSK0_TL.Label+0 LDI R0, #$30 ; 0 STA R0, TSK0_TL.Label+1 .ENDM .MACRO INITIALIZE_TASK0_VARS SET_TASK0_LABEL .ENDM ;------------------------------------------------------------------------------
Go to most recent revision | Compare with Previous | Blame | View Log