flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Macrolinstruction to C-style comment IN FASMG |
Author |
|
bitRAKE 11 Jul 2024, 04:13
Code: calminstruction calminstruction?.initsym? variable*,value& publish variable, value end calminstruction calminstruction ? line& local multi,part,rest initsym multi,0 arrange part, arrange rest, check multi jno start match any? */ part?,line jno done all: compute multi,multi xor 1 clip: arrange line, part rest assemble line done: exit start: match // any?, line jyes done match part? /* any? */ rest?, line jyes clip match part? /* any?, line jyes all match part? // any?, line jyes clip assemble line end calminstruction Code: // Just test a variety of uses ... display 'I think this will work',10 // just keep trying ... display 'another' /* Some block stuff, we just keep typing */ display ' test',10 // /* what happens here? // what happens here? */ /* // // lets try to make it more difficult // */ display 'more', /* inline */ ' testing is needed',10 /**/ Code: /* */ display 'fail',10 /* */ _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
11 Jul 2024, 04:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.