|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||||||||||||
|
|||||||||||||||
|
Assembly - Help with converting ASM instructions into machine code
Hi,
I am trying to convert the following line of code into machine code, but am stuck with one part. The original instruction is:- Quote:
Starting with:- Quote:
I added the MOVE part, leaving:- Quote:
I then added the .L, leaving:- Quote:
Then I added the destination address (D2):- Quote:
But now I am stuck, I have the answer which is:- Quote:
My problem is that I don't see how the remaining L#$D3A5 fits into the answer. I understand that I am moving the data it'self in Hex format, but unfortunately this isn't bridging my gap in knowledge. Thanks for any help! Swerve. P.S. I have done an easier question shown below if that helps in any way. Again, thanks! Quote:
|
|
#2
|
||||
|
||||
|
To begin with, can you tell us what processor this is for, and what assembler syntax it is matching? I'm assuming it is MC68K, but I'm not certain.
__________________
Rev First Speaker Schol-R-LEA;2 JAM LCF ELF KoR KCO BiWM TGIF #define KINSEY (rand() % 7) λ Scheme is the Red Pill Scheme in Short • Understanding the C/C++ Preprocessor Taming Python • A Highly Opinionated Review of Programming Languages for the Novice, v1.1 FOR SALE: One ShapeSystem 2300 CMD, extensively modified for human use. Includes s/w for anthro, transgender, sex-appeal enhance, & Gillian Anderson and Jason D. Poit clone forms. Some wear. $4500 obo. tverres@et.ins.gov |
|
#3
|
|||
|
|||
|
I assume x86 so the best way is to run some code through an assembler and look at that, you can modify the assembler to assemble anything, including invalid code.
-Echo |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Assembly - Help with converting ASM instructions into machine code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|