1
ASM / Compiled language for BASIC programmers
« on: July 02, 2021, 06:13:48 pm »
Hey, I just finished learning the basics of ASM programming using Mimas (thanks, by the way, for the recommendation to use Mimas if you're reading this post and replied to my post about on-calc ASM programming). I just got a link cable about a month before starting to learn ASM, and I remember it really sucked not being able to download and upload programs. However, I noticed that lots of people without link cables just type in programs from source listings. My idea is to make programming easier for people without link cables by designing a compiled language that is compiled by a BASIC program into an assembly program. Using Xeda's awesome programs, tools, and documentation for hex assembly I was able to start on writing a compiler in BASIC to compile a language similar to Tiny BASIC (see https://en.wikipedia.org/wiki/Tiny_BASIC).
I have two questions:
1. Is there an existing optimized routine that will find all occurrences of a string in another string and replace that each occurrence of that string with another string? Example: Input: "hello", "l", "LL" Output: "heLLLLo"
2. Does anyone have suggestions for languages other than Tiny BASIC style languages that would be easy to learn and easy to compile.
Edit: the idea is to have something like Axe except the compiler is in BASIC so you can type it in. It will also be less powerful most likely. I realized I was a little vague in my idea.
I have two questions:
1. Is there an existing optimized routine that will find all occurrences of a string in another string and replace that each occurrence of that string with another string? Example: Input: "hello", "l", "LL" Output: "heLLLLo"
2. Does anyone have suggestions for languages other than Tiny BASIC style languages that would be easy to learn and easy to compile.
Edit: the idea is to have something like Axe except the compiler is in BASIC so you can type it in. It will also be less powerful most likely. I realized I was a little vague in my idea.