mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-06 22:27:49 -04:00
Complete the RL78 demo. main.c still requires documentation in the comments at the top of the file.
This commit is contained in:
parent
6ac7b7a9da
commit
80341af3f5
3 changed files with 10 additions and 5 deletions
|
@ -69,7 +69,7 @@ portSAVE_CONTEXT MACRO
|
|||
|
||||
PUSH AX ; Save AX Register to stack.
|
||||
PUSH HL
|
||||
#if configMEMORY_MODE == 1
|
||||
#if __DATA_MODEL__ == __DATA_MODEL_FAR__
|
||||
MOV A, CS ; Save CS register.
|
||||
XCH A, X
|
||||
MOV A, ES ; Save ES register.
|
||||
|
@ -104,7 +104,7 @@ portRESTORE_CONTEXT MACRO
|
|||
MOVW usCriticalNesting, AX
|
||||
POP BC ; Restore the necessary general purpose registers.
|
||||
POP DE
|
||||
#if configMEMORY_MODE == 1
|
||||
#if __DATA_MODEL__ == __DATA_MODEL_FAR__
|
||||
POP AX ; Restore the ES register.
|
||||
MOV ES, A
|
||||
XCH A, X ; Restore the CS register.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue