]> git.sur5r.net Git - cc65/blob - libsrc/lynx/defdir.s
Merge remote-tracking branch 'upstream/master' into a5200
[cc65] / libsrc / lynx / defdir.s
1 ;
2 ; Karri Kaksonen, 2011
3 ;
4 ; A default directory with just the main executable.
5 ;
6         .include "lynx.inc"
7         .import         __STARTOFDIRECTORY__
8         .import         __RAM_START__
9         .import         __CODE_SIZE__,__DATA_SIZE__,__RODATA_SIZE__
10         .import         __STARTUP_SIZE__,__INIT_SIZE__,__LOWCODE_SIZE__
11         .import         __BLOCKSIZE__
12         .export         __DEFDIR__: absolute = 1
13
14
15 ; ------------------------------------------------------------------------
16 ; Lynx directory
17         .segment "DIRECTORY"
18
19 __DIRECTORY_START__:
20 off0=__STARTOFDIRECTORY__+(__DIRECTORY_END__-__DIRECTORY_START__)
21 blocka=off0/__BLOCKSIZE__
22 ; Entry 0 - first executable
23 block0=off0/__BLOCKSIZE__
24 len0=__STARTUP_SIZE__+__INIT_SIZE__+__CODE_SIZE__+__DATA_SIZE__+__RODATA_SIZE__+__LOWCODE_SIZE__
25         .byte   <block0
26         .word   off0 & (__BLOCKSIZE__ - 1)
27         .byte   $88
28         .word   __RAM_START__
29         .word   len0
30 __DIRECTORY_END__:
31