/[projet1]/public/oric/demos/30years/disk_system/loader_api.s
Defence Force logotype

Contents of /public/oric/demos/30years/disk_system/loader_api.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1120 - (show annotations)
Sat Mar 29 20:13:28 2014 UTC (5 years, 7 months ago) by dbug
File size: 712 byte(s)
Born In 1983 v1.1
- Added the nfo file
- Modified the code to use the new floppy builder
- Fixed a minor bug in the rasters in the intro
1 ;
2 ; Small code to implement the loading of data while a program is running.
3 ; What it does is to call the loader module, it abstracts the actual loader implementation
4 ;
5
6 .zero
7
8
9
10 .text
11
12 _LoaderApiEntryIndex .byt 0
13
14 _LoaderApiAddress
15 _LoaderApiAddressLow .byt 0
16 _LoaderApiAddressHigh .byt 0
17
18
19 _LoadFile
20 ; Draw the 'Loading Data message'
21 ldx #126
22 stx $bb80+40*26+39
23 inx
24 stx $bb80+40*27+39
25 ldx _LoaderApiEntryIndex
26 jsr $fff7 ; _LoadFile
27
28 ; Erase the 'Loading Data message'
29 ldx #16
30 stx $bb80+40*26+39
31 stx $bb80+40*27+39
32 rts
33
34 _SetLoadAddress
35 lda _LoaderApiAddressLow
36 ldy _LoaderApiAddressHigh
37 ldx _LoaderApiEntryIndex
38 jmp $fff4 ; SetLoadAddress
39
40
41

  ViewVC Help
Powered by ViewVC 1.1.26