/[projet1]/public/oric/demos/SlideShowDemo/code/loader_api.s
Defence Force logotype

Contents of /public/oric/demos/SlideShowDemo/code/loader_api.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1024 - (show annotations)
Sun Dec 15 09:42:42 2013 UTC (5 years, 9 months ago) by dbug
File size: 520 byte(s)
Generic clean-up of the loader code, moved the vectors at the end of the file so they get auto-magically setup when the loader is installed in memory.
Fixed a bug in the bootsector which did not actually know the actual length of the loader.
First transition effect (simple top/bottom copy), makes the whole thing feel smoother.
New LoaderAPI command: _SetLoadAddress, can be used to override the location of where files get loaded.
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 ldx _LoaderApiEntryIndex
21 jmp $fff7 ; _LoadFile
22
23 _SetLoadAddress
24 lda _LoaderApiAddressLow
25 ldy _LoaderApiAddressHigh
26 ldx _LoaderApiEntryIndex
27 jmp $fff4 ; SetLoadAddress
28
29
30

  ViewVC Help
Powered by ViewVC 1.1.26