flat assembler
Message board for the users of flat assembler.
Index
> Main > what name of this inttruction? |
Author |
|
MinhHung 11 Jan 2011, 02:23
i was reading http://download.intel.com/design/PentiumII/manuals/24319102.PDF
at page 796 Code: adc .... immediate to al,ax or eax 0001 010w:immediate what name of this instruction in FASM { and :immediate to al,ax or eax cmp:immediate with al,ax or eax imul:al,ax or eax with register[ memory] mov(page801), or(803), rcl(register by cl page 804)....} _________________ sorry for my english |
|||
11 Jan 2011, 02:23 |
|
JohnFound 11 Jan 2011, 07:40
Addition with carry. The general syntax is:
Code:
adc dest, source
The operation is: dest := dest + source + CF |
|||
11 Jan 2011, 07:40 |
|
MinhHung 11 Jan 2011, 10:41
yes,
but i mean is one opcode like: Code: adc 1234 because "intel" page 796 write 'Addition with carry' immediate to al,ax or eax |
|||
11 Jan 2011, 10:41 |
|
MinhHung 12 Jan 2011, 05:19
Code: format PE console entry main include 'win32ax.inc' section '.data' data readable writeable num db 'My number is:%i',$a,0 section '.code' code readable executable main: mov eax,10 stc ;set carry flag db $15 ;adc dd $1 ; opcode of adc, immediate invoke printf,num,eax invoke getchar section '.idata' import data readable library msvcrt,'msvcrt.dll' import msvcrt,\ printf,'printf',\ getchar,'getchar' it work, but in fasm i can't find what are name of this instruction _________________ sorry for my english |
|||
12 Jan 2011, 05:19 |
|
SFeLi 12 Jan 2011, 07:01
MinhHung, adc eax, dword 1. Without dword prefix fasm would use opcode 83 (adc r/m32,imm8) which is two bytes shorter.
|
|||
12 Jan 2011, 07:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.