flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
shoorick 27 Mar 2006, 04:47
var1 is source label and does not binded with sz1 "var1" noway. if you wish to use such naming you need additional table where sz1 should have reference to var1.
regards! |
|||
![]() |
|
bougainville 28 Mar 2006, 00:14
Thankyou shoorick. Yes, a table seems to be the way to go. I guess I was hoping that there might be an easier way because a table will get very big for many more variables. Also, there's the problem of adding to the table if a new variable comes by.
As I am essentially trying to parse an expression to perform arithmetic, perhaps there may be another completely different approach? |
|||
![]() |
|
shoorick 28 Mar 2006, 08:02
i'm not ready to answer fast and full, but it does not look like a simple parser, much like simple HLL. there should be minimal set of functions: detecting vars, creating list of them, then, when they used in expression, replace them with their values, etc.
i would suggest you walk through the forth - it is excellent language to understand how expressions are solved and calculated. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.