/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/sample/floppybuilder/code/loader_api.s
Defence Force logotype

Diff of /public/pc/tools/osdk/main/Osdk/_final_/sample/floppybuilder/code/loader_api.s

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1342 by dbug, Sun Aug 9 09:23:01 2015 UTC revision 1343 by dbug, Thu Jan 7 18:57:50 2016 UTC
# Line 16  _LoaderApiAddressLow   .byt 0 Line 16  _LoaderApiAddressLow   .byt 0
16  _LoaderApiAddressHigh   .byt 0  _LoaderApiAddressHigh   .byt 0
17    
18    
19  _LoadFile  _LoaderApiLoadFile
20          ; Draw the 'Loading Data message'          ; Draw the 'Loading Data message'
21          ;ldx #126          ;ldx #126
22          ;stx $bb80+40*26+39          ;stx $bb80+40*26+39
23          ;inx          ;inx
24          ;stx $bb80+40*27+39          ;stx $bb80+40*27+39
25          ldx _LoaderApiEntryIndex          ldx _LoaderApiEntryIndex
26  _LoadFileRegister        _LoaderApiLoadFileRegister      
27          jsr $fff7                                       ; _LoadFile          jsr $fff7                                       ; _LoadFile
28    
29          ; Erase the 'Loading Data message'          ; Erase the 'Loading Data message'
# Line 32  _LoadFileRegister Line 32  _LoadFileRegister
32          ;stx $bb80+40*27+39          ;stx $bb80+40*27+39
33          rts          rts
34    
35  _SetLoadAddress  _LoaderApiSetLoadAddress
36          lda _LoaderApiAddressLow          lda _LoaderApiAddressLow
37          ldy _LoaderApiAddressHigh          ldy _LoaderApiAddressHigh
38          ldx _LoaderApiEntryIndex          ldx _LoaderApiEntryIndex
39  _SetLoadAddressRegister  _LoaderApiSetLoadAddressRegister        
40          jmp $fff4                                       ; SetLoadAddress          jmp $fff4                                       ; SetLoadAddress
41    
42    
43  ; x: file index  ; x: file index
44  ; a: Low part of address  ; a: Low part of address
45  ; y: High part of address  ; y: High part of address
46  _LoadFileAtAddressRegister  _LoaderApiLoadFileAtAddressRegister
47          jsr $fff4                                       ; SetLoadAddress          jsr $fff4                                       ; SetLoadAddress
48          jmp $fff7                                       ; _LoadFile          jmp $fff7                                       ; _LoadFile

Legend:
Removed from v.1342  
changed lines
  Added in v.1343

  ViewVC Help
Powered by ViewVC 1.1.26