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__
|
2022-01-31 12:10:03 +00:00
|
|
|
.import __STARTUP_LOAD__, __BSS_LOAD__
|
2016-09-11 20:26:52 +00:00
|
|
|
.import __BANK0BLOCKSIZE__
|
2013-05-09 11:56:54 +00:00
|
|
|
.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__)
|
2016-09-11 20:26:52 +00:00
|
|
|
blocka = off0 / __BANK0BLOCKSIZE__
|
2011-03-21 17:49:03 +00:00
|
|
|
; Entry 0 - first executable
|
2016-09-11 20:26:52 +00:00
|
|
|
block0 = off0 / __BANK0BLOCKSIZE__
|
2022-01-31 12:10:03 +00:00
|
|
|
len0 = __BSS_LOAD__ - __STARTUP_LOAD__
|
2011-03-21 17:49:03 +00:00
|
|
|
.byte <block0
|
2016-09-11 20:26:52 +00:00
|
|
|
.word off0 & (__BANK0BLOCKSIZE__ - 1)
|
2011-03-21 17:49:03 +00:00
|
|
|
.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__:
|