Use AX paradigm for stack initalization.

This commit is contained in:
Oliver Schmidt
2016-03-07 01:44:19 +01:00
parent d8c31cf1d3
commit 69fbcb30fd
4 changed files with 14 additions and 15 deletions

View File

@@ -100,9 +100,9 @@ start:
; Set up the stack.
lda #<(__SRAM_START__ + __SRAM_SIZE__)
ldx #>(__SRAM_START__ + __SRAM_SIZE__)
sta sp
lda #>(__SRAM_START__ + __SRAM_SIZE__)
sta sp+1 ; Set argument stack ptr
stx sp+1 ; Set argument stack ptr
; Call the module constructors.