Author Topic: [83+ ASM] Asm help  (Read 16402 times)

0 Members and 1 Guest are viewing this topic.

4ce_labs

  • Guest
[83+ ASM] Asm help
« on: April 24, 2006, 09:07:00 am »
Can anyone convert a basic code to asm?


i MEAN if I give you a code you can make it in asm?

saubue

  • Guest
[83+ ASM] Asm help
« Reply #1 on: April 24, 2006, 09:13:00 am »
Seems like you're posting in the wrong forum...

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
[83+ ASM] Asm help
« Reply #2 on: April 24, 2006, 09:22:00 am »
I bet many BASIC Coderz want someone to do that ^^

So, nope... I know of noone who'd have the time :(sad.gif

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
[83+ ASM] Asm help
« Reply #3 on: April 24, 2006, 09:35:00 am »
You can use EzAsm on ticalc.org, which is close to what your saying. But it is really bad..

BCTurk

  • Guest
[83+ ASM] Asm help
« Reply #4 on: April 24, 2006, 02:55:00 pm »
Topic Moved.

Liazon

  • Guest
[83+ ASM] Asm help
« Reply #5 on: April 25, 2006, 09:36:00 am »
Keep in mind, converting to ASM is not as simple as saying "Ans->x is ..... in ASM"

There are some things that ASM would have difficulty doing, forcing you to change some of the logic of the Basic.  In fact, some of the Basic optimizations may be very difficult to translate into ASM.

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
[83+ ASM] Asm help
« Reply #6 on: April 25, 2006, 10:36:00 am »
I don't know about that, the built in basic interpreter does a pretty good job of converting it all...

If it would be legal to disassemble that then it is what you should try.
One of these days I'll get a sig I'm really proud of.

Liazon

  • Guest
[83+ ASM] Asm help
« Reply #7 on: April 25, 2006, 11:48:00 am »
No I'm saying, ASM doesn't have access to Ans, most user variables, lists, without slowing down ( I think mostly ROM calls are used to access those)  You would have to change some of the logic of the program.  Also, more complex versions of things like X+1(X>0)->X will require more steps.  Overall, it's a longer process.

Might as well write an original ASM program.

shadow

  • Guest
[83+ ASM] Asm help
« Reply #8 on: April 25, 2006, 01:04:00 pm »
why do you want 2 convert it into ASM in the first place?
2 make it faster?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
[83+ ASM] Asm help
« Reply #9 on: April 26, 2006, 02:41:00 am »
i think so but most of the time it will end up bigger i think

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
[83+ ASM] Asm help
« Reply #10 on: April 26, 2006, 03:41:00 am »
QuoteBegin-xlibman+Apr 26 2006, 03:41 PM-->
QUOTE (xlibman @ Apr 26 2006, 03:41 PM)
i think so but most of the time it will end up bigger i think  

 If done correctly, it gets smaller. Using a buggy converter, it can get huuuge.

Using Asmlibs is the best compromise for me ;)wink.gif

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
[83+ ASM] Asm help
« Reply #11 on: April 26, 2006, 04:07:00 am »
Yeah, it's a little difficult to make a converter that will convert basic<->Asm etc. As it also depends on who programs the converter, they may do a poor job. But in most cases it is just hard to be able to convert it and make it clean, as it has to look at all possibilities..

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
[83+ ASM] Asm help
« Reply #12 on: April 26, 2006, 04:23:00 am »
Removed caps letter in first post/topic title

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
[83+ ASM] Asm help
« Reply #13 on: April 26, 2006, 04:31:00 am »
QuoteBegin-xlibman+Apr 26 2006, 10:23 AM-->
QUOTE (xlibman @ Apr 26 2006, 10:23 AM)
Removed caps letter in first post/topic title  

 I didn't even realize that :Ptongue.gif

Liazon

  • Guest
[83+ ASM] Asm help
« Reply #14 on: April 26, 2006, 09:20:00 am »
QuoteBegin-kalan_vod+Apr 26 2006, 10:07 AM-->
QUOTE (kalan_vod @ Apr 26 2006, 10:07 AM)
Yeah, it's a little difficult to make a converter that will convert basic<->Asm etc. As it also depends on who programs the converter, they may do a poor job. But in most cases it is just hard to be able to convert it and make it clean, as it has to look at all possibilities..  

 It's like this.  Due to the nature of ASM (things like self modifying code, functions, free form structure), trying to translate the nature of the BASIC code would be inefficient if you only said this should equal that in ASM.  Sometimes, depending on the nature of your game, there may be opportunities in ASM to code it a certain way to save space and make it faster.  This requires 1337 skills that I do not possess (mainly because I program 68k :D)  

If you want MegaMan Subzero converted to ASM, I suggest you learn ASM your self, because if the nature of the game is mostly action and speed critical, it would be advantageous to learn ASM and give a shot at coding.