flat assembler
Message board for the users of flat assembler.

Index > Heap > now_i_can_say db "i hate java",0

Goto page 1, 2, 3  Next
Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
Puts $+4
db "that's all.",0
Post 26 Jan 2012, 16:57
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
I wonder if any computer programming language will ever achieve perfect portability? Perl, Java, Basic, C, C++, etc. so far have all failed. If one ever does achieve perfect portability which will be the first?
Post 26 Jan 2012, 17:11
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
assembler of course. assuming every machines are the same.
Post 26 Jan 2012, 17:36
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
edfed wrote:
assembler of course. assuming every machines are the same.
Heh, not a chance. Even the x86 has many many variants of assembly: MASM, TASM, fasm, YASM, RASM, .... And NONE of them are portable to other non-x86 systems.
Post 26 Jan 2012, 17:41
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
then, maybe fool or trool if one day it can do something else than nothing.

Laughing

and completelly avoid "inline assembly code using Asm item".
Post 26 Jan 2012, 17:45
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
edfed wrote:
then, maybe fool or trool if one day it can do something else than nothing.

Laughing

and completelly avoid "inline assembly code using Asm item".


I've heard of fool but what is trool?
Post 26 Jan 2012, 17:49
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
typedef wrote:
but what is trool?

it is that:


Description:
Download
Filename: trool.zip
Filesize: 17.98 KB
Downloaded: 65 Time(s)

Post 26 Jan 2012, 18:08
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
I don't get it due to the lack of an explanation on its supposed functionality.
Post 26 Jan 2012, 19:57
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
it adds the return value in eax register, as operand for several functions.
for example
Code:
include 'trool.inc'
test_do_it_while:
        Do .it,Kexit
.it:    Node Printc,C.A
    


can be traduced in hll by

Code:
do 
{ 
print('A');
}
while (Kexit)
    

because i wonder what a hll can do asm cannot.. in fact. then i try.

i mainly did that to implement the return value, and the parameter passing.

fool miss these two essentail things, it cannot pass parameters to a bloc. that is the worse thing because i really need to instanciate objects here to feet the modern computing requirements.

and it's true that's it's really cool to instanciate objects of any class.

transposed to assembly, it can give that. all test examples are not here to do something, but just test individual functions. and it's version nothing.nothing for the moment. cause just experimental.
Post 26 Jan 2012, 20:17
View user's profile Send private message Visit poster's website Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd
I can say one thing Java can do that assembly cannot: Run code on my uncracked Razr.
Post 27 Jan 2012, 17:33
View user's profile Send private message Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 678
Location: Mar del Plata
Enko
cvtss2sd wrote:
I can say one thing Java can do that assembly cannot: Run code on my uncracked Razr.

And than you have midlets that run on Motorola but fail to run on lats say Sony or Nokia.
The MIDP2.0 is a fairy tail.
Post 28 Jan 2012, 01:03
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
cvtss2sd wrote:
I can say one thing Java can do that assembly cannot: Run code on my uncracked Razr.


Every high level dialect resolves to its machine's byte code aka assembly.
Post 28 Jan 2012, 01:29
View user's profile Send private message Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd
typedef wrote:
cvtss2sd wrote:
I can say one thing Java can do that assembly cannot: Run code on my uncracked Razr.


Every high level dialect resolves to its machine's byte code aka assembly.


Yeah, but let me know when you can run ASM code on a Razr without first jailbreaking it.
Post 28 Jan 2012, 05:59
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
cvtss2sd wrote:
typedef wrote:
cvtss2sd wrote:
I can say one thing Java can do that assembly cannot: Run code on my uncracked Razr.


Every high level dialect resolves to its machine's byte code aka assembly.


Yeah, but let me know when you can run ASM code on a Razr without first jailbreaking it.


Razr runs on OMAP if I'm not mistaken, which uses ARM processor.

So that means you could use a tool like FASMARM(Flat Assembler ARM Very Happy) to code for the Razr if you knew how its system worked.


Last edited by typedef on 28 Jan 2012, 06:12; edited 1 time in total
Post 28 Jan 2012, 06:09
View user's profile Send private message Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd
Making the binary is the easy part: getting that binary to actually run without flashing it is something completely different. =p
Post 28 Jan 2012, 06:11
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
^^ So do you accept what I just said?
Post 28 Jan 2012, 06:13
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
aha.

Image

Image
Post 28 Jan 2012, 06:18
View user's profile Send private message Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd
Of course i accepted that: but the challenge is running the code. Produce a binary for me that i can run on my Razr, then give me step by step instructions on how to get the code to run without cracking the phone, THEN and ONLY THEN will i say that asm can do everything java can do. The problem is that you assume that since Java can be loaded on the phone that asm can be, too. In reality, the java bytecode is not binary code, and thus will be handled differently by the phone (it won't mind letting the built in java application run, but running a separate binary is another story).
Post 28 Jan 2012, 06:59
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
cvtss2sd: Your comment - "get the code to run without cracking the phone, THEN and ONLY THEN will i say that asm can do everything java can do" is not about a deficiency of asm, or a superiority of Java. It is merely a comment about what Motorola decided to let you do, or not do. Someone at Motorola is calling the shots and you are stuck with it.
Post 28 Jan 2012, 08:48
View user's profile Send private message Visit poster's website Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd
revolution wrote:
cvtss2sd: Your comment - "get the code to run without cracking the phone, THEN and ONLY THEN will i say that asm can do everything java can do" is not about a deficiency of asm, or a superiority of Java. It is merely a comment about what Motorola decided to let you do, or not do. Someone at Motorola is calling the shots and you are stuck with it.


IMO, if it's a deficiency of using asm since that someone is indeed in the way. If i actually wanted to use it, i must first do all sorts of extra steps (and so must any clients). This affects the usability of my programs, while java is not affected in that regard. ASM, in effect, cannot do what Java can do in that situation. It's an example where the right tool for the job is necessary.
Post 28 Jan 2012, 10:22
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2, 3  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.