Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

Multiple parameters

Consider an mnemonic with multiple parameters. Prior to Comet 504, the following hex write control was used to create a window in Internet Basic:

     "@0E0D00wwxxyyzz@"

where: ww and xx are the Y and X coordinates of the upper left corner of the window, and yy and zz are the Y and X coordinates of the lower right corner (ww, xx, yy, and zz are in hex)

Signature Systems created a mnemonic for this same objective. The following mnemonic contains 4 arguments:

     (Create Window=ww,xx,yy,zz)

The driver library entry for this mnemonic is:

     [Create Window=ARG1,ARG2,ARG3,ARG4]
     Print "@0E0D00@"
     Printhex ARG1
     Printhex ARG2
     Printhex ARG3
     Printhex ARG4
     Print "@00@"

Notice how the 4 numeric arguments are listed on the first line. Also notice the use of the PRINTHEX command within the definition. This statement converts a decimal argument to its hex equivalent (e.g., PRINTHEX 20 would convert the 20 decimal to 14 hex).

The final line of the definition prints a null in order to suppress blank stripping during a formatted WRITE.