home *** CD-ROM | disk | FTP | other *** search
- ;some useful macros to help get you started
- ;Assemble this file and carefully examine the listing
-
- ;lo( <expr> ) masks off the least significant byte of <expr>.
- define( lo,
- changequote([,])[($1) & x'0ff]changequote(`,'))
-
- ;hi( <expr> ) isolates the most significant byte of <expr>
- define( hi,`($1) >> 8')
-
- .equ test,x'2211
- .db lo(test)
- .db hi(test)
- .end