flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
hopcode 15 Jun 2009, 23:30
I have solved the trouble by reading
AMD docs (a bit more straightforward) Thanks After reading this http://board.flatassembler.net/topic.php?t=2525 and http://board.flatassembler.net/topic.php?t=3838 I have yet difficoulty to encode this opcodes. Please check my logic, wether correct or misunderstanding Following intel docs and tables on sandpile.org i will try to encode/understand these instructions: Code: 1) ADD ECX,[mem32] ; 03 0D 1F204000 2) ADD ECX,7 ; 83 C1 07 3) ADD CL,7 ; 80 C1 07 4) ADD ECX,EAX ; 01 C1 5) ADD CX,7 ; 66 83 C1 07 Thank you in advance for your help hopcode Last edited by hopcode on 16 Jun 2009, 21:28; edited 1 time in total |
|||
![]() |
|
revolution 15 Jun 2009, 23:39
This is why we use assemblers, to do all the tedious work for us
![]() Although, maybe MazeGen can help you to encode. ![]() |
|||
![]() |
|
arigity 16 Jun 2009, 00:12
perhaps this will help?
|
|||
![]() |
|
windwakr 16 Jun 2009, 01:23
You've got ecx and cx mixed up in your examples. "ADD CX,7" is 83 C1 07, and "ADD ECX,7" is 66 83 C1 07.
EDIT: The others are wrong too, Code: ADD ECX,[mem32] should be 67 66 03 0D 1F 20 40 00 ADD ECX,EAX should be 66 01 C1 |
|||
![]() |
|
LocoDelAssembly 16 Jun 2009, 01:50
Quote:
windwakr, $66 is a prefix for operand size override and $67 is for memory address size override. What you comment is true provided you are assembling for 16-bit, for 32-bit using those overrides would make the processor use half of the bits. |
|||
![]() |
|
hopcode 16 Jun 2009, 02:04
arigity wrote: perhaps this will help? Thanks, i know it. THAT LDE is one of the best lde. I know a HDE and a MDE (with table compression) and the ADE32. I want try to find the best method to organize intel tables. Hints are welcome. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.