Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BGLC Syntax - Comments?

Featured Replies

Hello Guys,I'm wondering how to put a large part of BGLC-code (ASM) into a comment. In my file I would have to insert hundrets of ";" for every line. I don't believe that this could be the solution.The two other well known possibilities "" or "/* COMMENT */" don't work in BGLC. Is there anyone who knows which syntax is supported by BGLC?ThanksSascha

  • Author

Hi Sascha.MASM allows multiline commenting:Multiline comments can also be specified with the COMMENT directive. The assembler ignores all text and code between the delimiters or on the same line as the delimiters. This example illustrates the use of COMMENT.COMMENT ^ The assembler ignores this text^ mov ax, 1 and this codeMight be worth a try with BGLC.EDITED----------It does work. For sake of clarity, you might consider the start and end of the comment on their own lines. The following code only draws half the intended triangles in the code:

; NonAlphaMyTree_NonAlpha label BGLCODE	MATERIAL 0, -1	BGL_TEXTURE TEXTURE_BUILDING+ TEXTURE_SPRING+ TEXTURE_FALL+ TEXTURE_WINTER+ TEXTURE_HARDWINTER+ TEXTURE_NIGHTMAP, 0F007h, "treetexture.bmp"	DRAW_TRI_BEGIN 0, 16	DRAW_TRI   13,  15,   1; poly=2 part=0	DRAW_TRI   14,  12,   2; poly=3 part=0	DRAW_TRI	0,   2,  12; poly=4 part=0	DRAW_TRI   11,   7,   9; poly=5 part=0COMMENT ^		DRAW_TRI	5,   9,   7; poly=6 part=0	DRAW_TRI	8,   4,  10; poly=7 part=0	DRAW_TRI	6,  10,   4; poly=8 part=0	DRAW_TRI	3,   1,  15; poly=1 part=0^	DRAW_TRI_END	BGL_END	BGL_RETURN

Dick

  • Commercial Member

Cool, that is good to know :).

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Yehaa! It works! Thanks, Dick!And finally I'm so advanced that I ask questions that even Arno can't answer. :)Sasa

  • Author

Hi Sasa.BGLC is a subset of MASM. Some designers actually use MASM rather than BGLC. But BGLC has everything we need.Here's a link to MASM info:http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/The downloadable MASM Programmers Guide guide in Word format:http://webster.cs.ucr.edu/AsmTools/MASM/MA...ersguide611.zipThe downloadable MASM Reference Guide in Word format:http://webster.cs.ucr.edu/AsmTools/MASM/MA...eference611.zipDick

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.