flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > Running fasmg on ARM v7 Goto page Previous 1, 2 |
Author |
|
Tomasz Grysztar 15 Feb 2019, 20:05
Lost_Ghost123 wrote: 1.Is Code: X: Code: X := $ Lost_Ghost123 wrote: 2. Can literally anything have descendants? Elements, variables, labels? Lost_Ghost123 wrote: Is there any OOP meaning to the dot symbol? Lost_Ghost123 wrote: Is there even any point to a term "descendant" in fasmg context? Lost_Ghost123 wrote: In both cases, why such design choises? |
|||
15 Feb 2019, 20:05 |
|
Lost_Ghost123 15 Feb 2019, 20:18
So in the end it's all just about optimisation. I could keep around a namespace prefix, and when a variable is used in an expression, I would search for prefix+var_name in the entire source, with the same result, right? Scope only reduces the amount of lines you have to parse.
|
|||
15 Feb 2019, 20:18 |
|
Lost_Ghost123 15 Feb 2019, 20:23
Tomasz Grysztar wrote:
So, if a, as a "function", is being assigned to b, why won't b have access to the "function"'s local variable through b.x? No matter if b=a copies a link or a value. |
|||
15 Feb 2019, 20:23 |
|
Tomasz Grysztar 15 Feb 2019, 20:50
Lost_Ghost123 wrote:
To emphasize: do not think about it in OOP terms. Namespaces are about how you access the symbols, the visibility of names, while symbols themselves have very simple values. |
|||
15 Feb 2019, 20:50 |
|
Lost_Ghost123 15 Feb 2019, 20:53
I know that, I was just questioning your analogy (which I quoted). Thanks for your time anyways
|
|||
15 Feb 2019, 20:53 |
|
Tomasz Grysztar 15 Feb 2019, 20:59
Lost_Ghost123 wrote: I know that, I was just questioning your analogy (which I quoted). Thanks for your time anyways |
|||
15 Feb 2019, 20:59 |
|
Lost_Ghost123 27 Feb 2019, 15:23
Ok, here's an update on my progress. I am painfully close to implementing the very basic assembler, able to support db instructions. However, this little f****** bug just won't fix. I've been stuck with it for three days, and still can' t figure this shit out. Pls help11!!
Notice: all code is my first experience writing something in C, and it is all written on my phone. How? Still a mistery to me. Also, should I make a separate thread dedicated to this, or do I keep posting updates here? Anyways, here we go. This is the file fprimitives.c, included into the main program. Here I implement all the structs and functions that are then used by the main program. For testing needs I write the void main() func, test the functions, then make int main() a comment and compile the main program. Here's how it works (or doesn't). buflist is a double-linked list of char, pointer on it points to the first element of it. The construction is meant to be a convinient buffer for reading symbols one by one. linelist is a double-linked list of char*, pointer on it points to the first element of it. The construction is meant to represent a line, an exprression, with parts of it connected as a list. chunk is a double-linked list of linenode*, pointer on it points to thr first element of it. The construction is meant to represent part of a file, with each chunk in a list being a single line (macro being a chunk). Now. What I am doing here is adding elements to a line, adding lines to a chunk, and printing out the chunk with each iteration. When adding elements to the end of the list it works, but not when adding them to the front. How do?
|
|||||||||||
27 Feb 2019, 15:23 |
|
revolution 28 Feb 2019, 11:58
I'm thinking this might be better placed in the HLL forum. Someone who is familiar with C might be able to help you if they see a post there.
|
|||
28 Feb 2019, 11:58 |
|
MazeGen 25 Oct 2019, 18:37
Lost_Ghost123, getting x86 device (tablet) running Android isn't an option for you? These devices are slowly disappearing from the market but I'm sure you can still buy one, either new or used.
Also x86 Chromebooks gets better and better and can run Android apps. |
|||
25 Oct 2019, 18:37 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.