Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1618 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -52,26 +52,27 @@ L1: lda sp,x
|
|||||||
lda #14
|
lda #14
|
||||||
jsr BSOUT
|
jsr BSOUT
|
||||||
|
|
||||||
; Clear the BSS data
|
|
||||||
|
|
||||||
jsr zerobss
|
|
||||||
|
|
||||||
; Save system stuff and setup the stack
|
; Save system stuff and setup the stack
|
||||||
|
|
||||||
tsx
|
|
||||||
stx spsave ; Save the system stack ptr
|
|
||||||
|
|
||||||
lda $01
|
lda $01
|
||||||
sta mmusave ; Save the memory configuration
|
tax ; Remember in X
|
||||||
and #$F8
|
and #$F8
|
||||||
ora #$06 ; Enable kernal+I/O, disable basic
|
ora #$06 ; Enable kernal+I/O, disable basic
|
||||||
sta $01
|
sta $01
|
||||||
|
stx mmusave ; Save the memory configuration
|
||||||
|
|
||||||
|
tsx
|
||||||
|
stx spsave ; Save the system stack ptr
|
||||||
|
|
||||||
lda #<(__RAM_START__ + __RAM_SIZE__)
|
lda #<(__RAM_START__ + __RAM_SIZE__)
|
||||||
sta sp
|
sta sp
|
||||||
lda #>(__RAM_START__ + __RAM_SIZE__)
|
lda #>(__RAM_START__ + __RAM_SIZE__)
|
||||||
sta sp+1 ; Set argument stack ptr
|
sta sp+1 ; Set argument stack ptr
|
||||||
|
|
||||||
|
; Clear the BSS data
|
||||||
|
|
||||||
|
jsr zerobss
|
||||||
|
|
||||||
; Call module constructors
|
; Call module constructors
|
||||||
|
|
||||||
jsr initlib
|
jsr initlib
|
||||||
|
|||||||
Reference in New Issue
Block a user