2011-03-21 17:49:03 +00:00
|
|
|
;
|
|
|
|
; Karri Kaksonen, 2011
|
|
|
|
;
|
|
|
|
; A default directory with just the main executable.
|
|
|
|
;
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "lynx.inc"
|
|
|
|
.import __STARTOFDIRECTORY__
|
2016-03-07 00:28:55 +00:00
|
|
|
.import __MAIN_START__
|
2016-03-06 20:26:22 +00:00
|
|
|
.import __CODE_SIZE__, __DATA_SIZE__, __RODATA_SIZE__
|
|
|
|
.import __STARTUP_SIZE__, __ONCE_SIZE__, __LOWCODE_SIZE__
|
2013-05-09 11:56:54 +00:00
|
|
|
.import __BLOCKSIZE__
|
|
|
|
.export __DEFDIR__: absolute = 1
|
2011-03-21 17:49:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
; ------------------------------------------------------------------------
|
|
|
|
; Lynx directory
|
2013-05-09 11:56:54 +00:00
|
|
|
.segment "DIRECTORY"
|
2011-03-21 17:49:03 +00:00
|
|
|
|
|
|
|
__DIRECTORY_START__:
|
2016-03-06 20:26:22 +00:00
|
|
|
off0 = __STARTOFDIRECTORY__ + (__DIRECTORY_END__ - __DIRECTORY_START__)
|
|
|
|
blocka = off0 / __BLOCKSIZE__
|
2011-03-21 17:49:03 +00:00
|
|
|
; Entry 0 - first executable
|
2016-03-06 20:26:22 +00:00
|
|
|
block0 = off0 / __BLOCKSIZE__
|
|
|
|
len0 = __STARTUP_SIZE__ + __ONCE_SIZE__ + __CODE_SIZE__ + __DATA_SIZE__ + __RODATA_SIZE__ + __LOWCODE_SIZE__
|
2011-03-21 17:49:03 +00:00
|
|
|
.byte <block0
|
|
|
|
.word off0 & (__BLOCKSIZE__ - 1)
|
|
|
|
.byte $88
|
2016-03-07 00:28:55 +00:00
|
|
|
.word __MAIN_START__
|
2011-03-21 17:49:03 +00:00
|
|
|
.word len0
|
|
|
|
__DIRECTORY_END__:
|