BASIC to ASM

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

BASIC to ASM

Post by JS Lemming »

You know what? I would like to make a lot of games and stuff for micro processor things like the TI83+ and VMU, but I'm faced with a difficult challenge. One, ASM is really hard and tedious. It makes me want to barf everytime I see it, the code at least. Theoreticly, Asm can be written to mimic higher language commands. So why doesn't someone make a BASIC like language/program that creates an Asm counterpart. Wouldn't it just be as easy as figuring out the asm equivilent of a basic command, then createing a file based off a "basic-asm" file and pasting the equivilent. Ahhh... the more I type this the more I doubt myself. I wish I could make something like that. Not really a compiler, but more of a breaker downer thingy.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

BASIC? That is a high ass level language. It makes Perl and Java look like ASM.

I don't know. I don't see how you could really do things like you would in a lower level language like that. Sure, instead of the hard to read commands you could make them more English (or at least I don't see why not), but you still aren't really going to make it any easier, at least if you did, you'd be losing efficiency or something.

You'd have to have some sort of super flaming bumhole optimized assembler or something.

I think. Not like I know what I'm talking about with ASM. I do believe that Tvspelsfreak is acquanted with a bit of (SH-4?) ASM.

Looks like somebody has caught the "I wanna code my VMU" fever.

I just caught it too now... thanks alot JSL...
quarn
Dreamcast Developer
Dreamcast Developer
Posts: 9
Joined: Wed Feb 02, 2005 10:33 am

Post by quarn »

Actually there is a basic-ish language for the vmu available at http://www.vmuscript.8m.com/

Anyway, coding in asm is much more fun =)
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

quarn wrote:Actually there is a basic-ish language for the vmu available at http://www.vmuscript.8m.com/

Anyway, coding in asm is much more fun =)
:shock: I had no clue.

Wow, thanks quarn. I actually plan to learn some form of asm some day, but for now it's just C/++.
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

Quarn, asm is actually fun as you say. As a matter o'fact I usually reread old asm tutorials every now and then just for fun. I like working so close to the cpu. But I find that asm is just so.... obsolete compared to other languages that it discourages me.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
quarn
Dreamcast Developer
Dreamcast Developer
Posts: 9
Joined: Wed Feb 02, 2005 10:33 am

Post by quarn »

Obsolete? You do realize that assembly is just pretty much the human-readable format for the machinecode, and that without the machinecode there can be no software programability of the CPU at all?

Human optimization in assembly still beats the compilers, both in size and speed.

http://www.256b.com
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

Sorry, JSL, but it looks like ASM is here to stay.
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

quarn wrote:Obsolete? You do realize that assembly is just pretty much the human-readable format for the machinecode, and that without the machinecode there can be no software programability of the CPU at all?

Human optimization in assembly still beats the compilers, both in size and speed.

http://www.256b.com
Yes, I do know that. And I didn't mean in optimization. I meant in developement speed and organization. Why write 10 lines of code when you can write 1 c++ line that does the same thing.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

Because, it's faster, more efficient, and it's completely awesome.
quarn
Dreamcast Developer
Dreamcast Developer
Posts: 9
Joined: Wed Feb 02, 2005 10:33 am

Post by quarn »

Saying that something is obsolete indicates that what is being obsolete is replaceable with something else. Assembly is not replacable as it is the base which everything else is built upon. You have to realize that you c++ compiler creates assembly code too...

However, I do agree that writing large pieces of code in assembly can be time consuming, but it is up to each of us to ourselves decide how we wish to spend our time. There are many reasons for writing assembly code compared to C++. Some of them are:

* Ability to create the fastest possible routine for the given platform
* Ability to create the smallest possible routine for the given platform
* Ability to use special opcodes (mmx, 3dnow, SIMD, etc) (which btw, can make the assembly version of the code both smaller and faster than the c++ version)
* Intellectual satisfaction knowing that you acomplished something better than the compiler
* It's 1337

But as stated before, it is time consuming, and if your goal with programming is to finish your program as soon as possible, you will do better with a more highlevel language.
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

I know what asm is and capable of. Sorry for my slightly faulted use of the term "obsolete." Surely you knew what I meant.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
Guest

Post by Guest »

My "slightly faulted" use of the Pythagorean Theorem lead to a whole flame wore. Now I see I was wrong. You should see that you are now. HOW WOULD WE KNOW WHAT YOU WERE TALKING ABOUT! YOU'RE USE OF OBSELETE WAS FAULTED, AND IT WAS YOUR FAULT!!

Go cut yourself now. :spin:
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

If you're going to bash somebody, you might as well not soil yourself while you're at it. It's war not wore you moron.
User avatar
JS Lemming
Game Developer
Game Developer
Posts: 2383
Joined: Fri May 21, 2004 4:09 pm
Location: C:\CON\CON

Post by JS Lemming »

Mainly because I wasn't really wrong. Quarn simply interpretted it differently than me. If I were posting in some other forum, I would still call it obsolete. So Arce, go ahead and cut your whole friggen head off.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Post by Falco Girgis »

Umm... I don't like to carry on stupid disputes like this, but maybe you should look up obsolete. It was completely right of everybody to assume that's what you meant because it is what you said.

No, it wasn't faulted. If you meant something different than the way you used it, it was completely wrong. Your definition of the word is skewed.
Post Reply