Difference between revisions of "R32V2020 Stack Space"

From Land Boards Wiki
Jump to navigation Jump to search
(Created page with "* 32-bits address/data * Push registers under program control before calling as the way to pass variables to routines * Always pushes the Instruction Pointer when calling subr...")
 
(No difference)

Latest revision as of 11:52, 10 April 2022

  • 32-bits address/data
  • Push registers under program control before calling as the way to pass variables to routines
  • Always pushes the Instruction Pointer when calling subroutines
  • It is the responsibility of the programmer to adjust the stack for pushes that they did earlier (after return)
  • Finite depth of stack
  • Dependent on BlockRAM size
  • Always grows up
  • Data can be passed on the stack before the Jump Subroutine call
    • Data can be pulled relative to the stack address
  • Alternately data can be passed via allocated space in the Data BlockRAM