home *** CD-ROM | disk | FTP | other *** search
/ A.N.A.L.O.G. Magazine 1985 October / 85_oct.atr / online3.act < prev    next >
Text File  |  2023-02-26  |  517b  |  1 lines

  1. ¢MODULE  ; Example 3¢SET $B5 = $1BFF¢¢; Note that this value is $4003 (the¢; address of the byte following the¢; first module) minus $2404, my LOMEM¢; address.  Again, as in Example 2,¢; adjust your values accordingly.¢¢; First off, we have to tell this¢; module where our globals are:¢¢BYTE¢  two = $4000, three = $4001,¢  four = $4002¢¢; Now, for this module's code:¢¢PROC Main()¢BYTE¢  i, j, k¢¢  i = two + three¢  j = three + four¢  k = two + three + four¢  PrintF("i=%U, j=%U, k=%U%E",¢         i, j, k)¢RETURN¢¢