I really dont think a high level language is going to be able to do that. I know the likes of Java and VB dont.
Anyway, the time it would take to copy a value from a register into main memory would be tiny.
Howdy.
I'm learning Assembly for the M68000, and its coming along nicely. But I just cant get my head around trying to translate java for/while loops and if statements into assembly. Ive seen lots of examples.... but I just cant follow whats going on.
Does anyone have a couple of examples, or...
Not being an expert on Assembly, but could you perhaps copy the data into a specific area of memory, and then use the high level language's memory related functions to grab that specific piece of memory ? Eg. VB can use the Windows API's CopyMemory for things like that etc.
Hmm thats a good approach.
I assume you'd have to declare a to h first though aswell ?
.. forgive my lack of assembly knowledge, I'm only just learning :)
I'm trying to write the M68K ASM for the following piece of java code :
((a + b) + (c + d)) + ((e + f) + (g + h))
And have come up with :
ORG $2000
A DC.L $DEADBEEF
B DC.L $DEADBEEF
C DC.L $DEADBEEF
D DC.L $DEADBEEF
E DC.L...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.