I am attempting to set up something that can set up something that can Save and Load data to and from disk in assembly for a new and upcoming game. I know its not too hard to do from Basic, but not sure how this works in assembly. This is what I figured out so far. Cannot find any good examples on how to set this up.
LDA #CIO_READ STA ICCOM,X LDA # <FNAME_00 ; FILENAME IS D:Filename STA ICBAL,X LDA # >FNAME_00 STA ICBAH,X LDA #0 STA ICAUX2,X