Support SIZEOF(reg) to distinguish 8- and 16-bit registers (#1758)

This commit is contained in:
Rangi
2025-07-17 15:49:28 -04:00
committed by GitHub
parent 0c96234532
commit 4c8724899b
3 changed files with 62 additions and 0 deletions

View File

@@ -715,6 +715,9 @@ is a string, this function returns the size of the section named
If
.Ar arg
is a section type keyword, it returns the size of that section type.
If
.Ar arg
is an 8-bit or 16-bit register, it returns the size of that register.
The result is not constant, since only RGBLINK can compute its value.
.It Fn STARTOF arg Ta If
.Ar arg