VTT assembly code
Jens Kutilek
Posts: 395
Looking at the sample font included with VTT, I come across some code that is not immediately obvious to me, and I couldn't find documentation for it anywhere.
I know you can turn pre-push optimization on/off with
What does this similar begin/end command pair do that is used in all the template function definitions?
Then there seems to be something like variable jump markers, but the syntax is not entirely clear to me.
I know you can turn pre-push optimization on/off with
#PUSHOFF /* ... */ #PUSHON
What does this similar begin/end command pair do that is used in all the template function definitions?
FDEF[], 153 #BEGIN /* ... */ #END ENDF[]
Then there seems to be something like variable jump markers, but the syntax is not entirely clear to me.
FDEF[], 153 #BEGIN #PUSHOFF DUP[] #PUSH, 2 RS[] EQ[] #PUSH, 1 SWAP[] #PUSH, BEcln SWAP[] JROT[], (BEcln=#LEndClear) POP[] /* ... */ #LEndClear: SWAP[] POP[] #LEndFn: #END #PUSHON ENDF[]As I understand it, the JROT instruction should jump to the calculated instruction stream position of #LEndClear if the first stack element is True. But why is the "BEcln" value pushed _and_ used as an argument to JROT? Why the extra "variable" BEcln? Couldn't be #LEndClear be used for both?
Tagged:
0
Categories
- All Categories
- 47 Introductions
- 4K Typeface Design
- 496 Type Design Critiques
- 585 Type Design Software
- 1.1K Type Design Technique & Theory
- 674 Type Business
- 895 Font Technology
- 29 Punchcutting
- 541 Typography
- 126 Type Education
- 333 Type History
- 82 Type Resources
- 114 Lettering and Calligraphy
- 33 Lettering Critiques
- 81 Lettering Technique & Theory
- 571 Announcements
- 100 Events
- 116 Job Postings
- 171 Type Releases
- 183 Miscellaneous News
- 270 About TypeDrawers
- 54 TypeDrawers Announcements
- 114 Suggestions and Bug Reports