Home away from home ![Home away from home](https://www.amigans.net/uploads/rank3dbf8eb1a72e7.gif)
Joined: 2006/11/20 16:26 Last Login
: 8/23 19:45
From Norway
Group:
Registered Users
|
@Samurai_Crow
You can’t translate Amos to C, 1 to 1.
For example in AMOS, you can do the following:
A$="1" Gosub "MyLabel"+a$ END
MyLabel1: return
Also labels are inside procedures,
so numeric values for labels wont work.
You also you will run into problems with "restore" and "data" commamds that part was really tricky, data can contain commands, and values.
Some variables declared as global, some are local, but Amos allows variables that are declared outside of procedure to be shared with some procedures but not all. Its whacky stuff that is tricky to get right.
Also, you say you like to combine, Amos Pro and Amos Kittens, but Amos Pro is written 100% in assembler. Amiga Amos Kittens that are 100% written in C, and few places some C++, that’s also tricky, I did not pay any attention to the internals of Amos when I wrote Amos Kittens, so all internals are different. They were never meant to be combined. Likewise, the XAMOS is also different beast. In other words, you should pick one. If you like to make a compiler.
Edited by LiveForIt on 2021/3/24 13:39:13 Edited by LiveForIt on 2021/3/24 13:42:12 Edited by LiveForIt on 2021/3/24 13:44:21 Edited by LiveForIt on 2021/3/24 14:01:38 Edited by LiveForIt on 2021/3/24 14:05:35
|