2018-09-10 21:20:52 +00:00
|
|
|
#
|
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
|
|
|
|
/* Store to bounds-checked array.
|
|
|
|
*
|
|
|
|
* Stack: ( element array-adr index descriptor-adr -- )
|
|
|
|
*/
|
|
|
|
|
|
|
|
.sect .text
|
|
|
|
.define .sar4
|
|
|
|
.sar4:
|
|
|
|
mov r25, ra
|
|
|
|
|
|
|
|
jal .aar4
|
|
|
|
nop
|
|
|
|
|
2018-09-17 17:44:17 +00:00
|
|
|
/* pass r2 = size from .aar4 to .sts4 */
|
2018-09-10 21:20:52 +00:00
|
|
|
|
|
|
|
jal .sts4
|
|
|
|
nop
|
|
|
|
|
|
|
|
jr r25
|
|
|
|
nop
|
|
|
|
|