/[projet1]/public/oric/demos/OricTech/code/loader.asm
Defence Force logotype

Diff of /public/oric/demos/OricTech/code/loader.asm

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

revision 1345 by dbug, Sun May 31 12:03:16 2015 UTC revision 1346 by dbug, Sat Jan 9 16:14:40 2016 UTC
# Line 7  Line 7 
7    
8          .zero          .zero
9                    
10          *=$00          *=loader_zp_start
11                    
12  retry_counter           .dsb 1          ; Number of attempts at loading data (ie: not quite clear what happens when this fails...)  retry_counter           .dsb 1          ; Number of attempts at loading data (ie: not quite clear what happens when this fails...)
13  sectors_to_go           .dsb 1          ; How many sectors do we still need to load for this file  sectors_to_go           .dsb 1          ; How many sectors do we still need to load for this file
# Line 139  read_sectors_loop Line 139  read_sectors_loop
139    
140          ldy #0          ldy #0
141  loop_copy  loop_copy
142          lda $200,y                      ; Load the byte from page 2          lda loader_sector_buffer,y                      ; Load the byte from the sector buffer
143  __auto_write_address  __auto_write_address
144          sta $c000,y             ; Store it to the final location          sta $c000,y                                             ; Store it to the final location
145          iny          iny
146          bne loop_copy          bne loop_copy
147    
# Line 313  microdisc_read_data Line 313  microdisc_read_data
313      bmi microdisc_read_data      bmi microdisc_read_data
314    
315          lda FDC_data,y          lda FDC_data,y
316          sta $200,x              ; Store the byte in page 2          sta loader_sector_buffer,x              ; Store the byte in sector buffer
317          inx          inx
318    
319          bne microdisc_read_data          bne microdisc_read_data

Legend:
Removed from v.1345  
changed lines
  Added in v.1346

  ViewVC Help
Powered by ViewVC 1.1.26