1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-20 18:16:35 +00:00

Allow setting segments for multiple declarations at once

This commit is contained in:
Karol Stasiak
2019-07-17 20:50:27 +02:00
parent 8d8859b55f
commit 20f4baf2b2
6 changed files with 96 additions and 12 deletions
+14
View File
@@ -155,6 +155,20 @@ TODO
A function can be declared at the top level. For more details, see [Functions](./functions.md)
### Segment blocks
Instead of repeating the segment name in multiple declarations, you can wrap them in a block:
segment (s) {
byte x
word y
}
is equivalent to:
segment (s) byte x
segment (s) word y
## `import` statements
import <module>