![]() |
trying to print from assembly - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: How-To & Tutorials (https://www.boriel.com/forum/forumdisplay.php?fid=13) +---- Thread: trying to print from assembly (/showthread.php?tid=546) |
trying to print from assembly - slenkar - 05-20-2013 this doesnt compile because the label is made outside of ASM tags Code: function FASTCALL drawthis() as ubyte im trying to print the value of the byte at the address, but also modify it in assembly Re: trying to print from assembly - boriel - 05-20-2013 slenkar Wrote:this doesnt compile because the label is made outside of ASM tags At the moment you can try in assembler: Code: DIM a as Ubyte This only works for *global* variables. Re: trying to print from assembly - slenkar - 05-21-2013 ah yes thanks that works Re: trying to print from assembly - britlion - 05-23-2013 In addition you might find camel case useful. landscapeEightIter might be more readable than landscapeeightiter <!-- m --><a class="postlink" href="http://en.wikipedia.org/wiki/CamelCase">http://en.wikipedia.org/wiki/CamelCase</a><!-- m --> |