Adjusted constructors.
The constructors are _NOT_ allowed anymore to access the BSS. Rather they must use the DATA segment or the INIT segment. The latter isn't cleared at any point so the constructors may use it to expose values to the main program. However they must make sure to always write the values as they are not pre-initialized.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
; Setup arguments for main
|
||||
;
|
||||
; There is always either 1 or 3 arguments:
|
||||
; <program name>,0
|
||||
; <program name>, 0
|
||||
; or
|
||||
; <program name>, <data file name>, <data disk name>, 0
|
||||
; the 2nd case is when using DeskTop user drags an icon of a file and drops it
|
||||
@@ -71,7 +71,7 @@ argv:
|
||||
.word dataDiskName ; dataDiskName
|
||||
.word $0000 ; last one must be NULL
|
||||
|
||||
.bss
|
||||
.segment "INIT"
|
||||
|
||||
argv0:
|
||||
.res 17 ; Program name
|
||||
|
||||
Reference in New Issue
Block a user