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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1346 - (show annotations)
Sat Jan 9 16:14:40 2016 UTC (3 years, 8 months ago) by dbug
File size: 750 byte(s)
Updated Oric Tech to use the new FloppyBuilder API, and fixed some bugs.
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 .text
6
7 _LoaderApiEntryIndex .byt 0
8
9 _LoaderApiAddress
10 _LoaderApiAddressLow .byt 0
11 _LoaderApiAddressHigh .byt 0
12
13 _LoaderApiLoadFile
14 ldx _LoaderApiEntryIndex
15 _LoaderApiLoadFileRegister
16 jmp $fff7 ; _LoadFile
17
18 _LoaderApiSetLoadAddress
19 lda _LoaderApiAddressLow
20 ldy _LoaderApiAddressHigh
21 ldx _LoaderApiEntryIndex
22 _LoaderApiSetLoadAddressRegister
23 jmp $fff4 ; SetLoadAddress
24
25
26 ; x: file index
27 ; a: Low part of address
28 ; y: High part of address
29 _LoaderApiLoadFileAtAddressRegister
30 jsr $fff4 ; SetLoadAddress
31 jmp $fff7 ; _LoadFile

  ViewVC Help
Powered by ViewVC 1.1.26