Kernal SAVE is always failing for me, LOAD works fine, or at least in the loading code into different banks does.
I'm using emu r38. Obviously missing something obvious. I followed Matt's Kernal video. The Error code is 04 (FILE_NOT_FOUND), which is a little odd on a SAVE
Here's the snippet of my code, pretty much hardcoded values to test.
lda #1
ldx #SD_DEVICE
ldy #0 ; I've tried #1 as well
jsr SETLFS
lda #11
ldx #<filename
ldy #>filename
jsr SETNAM
lda #$A0 ; data segment starts at $08A0
sta TEMP ; stores start address (TEMP is $3A in zp)
lda #$08
sta TEMP+1
Question
Fippy
Hey commander experts,
Kernal SAVE is always failing for me, LOAD works fine, or at least in the loading code into different banks does.
I'm using emu r38. Obviously missing something obvious. I followed Matt's Kernal video. The Error code is 04 (FILE_NOT_FOUND), which is a little odd on a SAVE
Here's the snippet of my code, pretty much hardcoded values to test.
lda #1
ldx #SD_DEVICE
ldy #0 ; I've tried #1 as well
jsr SETLFS
lda #11
ldx #<filename
ldy #>filename
jsr SETNAM
lda #$A0 ; data segment starts at $08A0
sta TEMP ; stores start address (TEMP is $3A in zp)
lda #$08
sta TEMP+1
lda #TEMP ; start addr
ldx #$FF
ldy #$09
jsr SAVE
bcs @error
........
filename: .byte "savgame.bin"
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.