2011-03-21 17:49:03 +00:00
|
|
|
;
|
|
|
|
; Karri Kaksonen, 2011
|
|
|
|
;
|
|
|
|
; A default directory with just the main executable.
|
|
|
|
;
|
2013-05-09 13:56:54 +02:00
|
|
|
.include "lynx.inc"
|
|
|
|
.import __STARTOFDIRECTORY__
|
2016-03-07 01:28:55 +01:00
|
|
|
.import __MAIN_START__
|
2022-01-31 07:10:03 -05:00
|
|
|
.import __STARTUP_LOAD__, __BSS_LOAD__
|
2016-09-11 22:26:52 +02:00
|
|
|
.import __BANK0BLOCKSIZE__
|
2013-05-09 13:56:54 +02:00
|
|
|
.export __DEFDIR__: absolute = 1
|
2011-03-21 17:49:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
; ------------------------------------------------------------------------
|
|
|
|
; Lynx directory
|
2013-05-09 13:56:54 +02:00
|
|
|
.segment "DIRECTORY"
|
2011-03-21 17:49:03 +00:00
|
|
|
|
|
|
|
__DIRECTORY_START__:
|
2016-03-06 21:26:22 +01:00
|
|
|
off0 = __STARTOFDIRECTORY__ + (__DIRECTORY_END__ - __DIRECTORY_START__)
|
2016-09-11 22:26:52 +02:00
|
|
|
blocka = off0 / __BANK0BLOCKSIZE__
|
2011-03-21 17:49:03 +00:00
|
|
|
; Entry 0 - first executable
|
2016-09-11 22:26:52 +02:00
|
|
|
block0 = off0 / __BANK0BLOCKSIZE__
|
2022-01-31 07:10:03 -05:00
|
|
|
len0 = __BSS_LOAD__ - __STARTUP_LOAD__
|
2011-03-21 17:49:03 +00:00
|
|
|
.byte <block0
|
2016-09-11 22:26:52 +02:00
|
|
|
.word off0 & (__BANK0BLOCKSIZE__ - 1)
|
2011-03-21 17:49:03 +00:00
|
|
|
.byte $88
|
2016-03-07 01:28:55 +01:00
|
|
|
.word __MAIN_START__
|
2011-03-21 17:49:03 +00:00
|
|
|
.word len0
|
|
|
|
__DIRECTORY_END__:
|