14 August 2022, 08:47 | #1 |
Registered User
Join Date: Sep 2019
Location: Finland
Posts: 363
|
ADD vs. ADDI, vasm vs. Asmone
While investigating the differences in resulting binaries by vasm and AsmOne I noticed that with input
Code:
ADD.W #10,D0 Code:
0640000A ADDI.W #10,D0 Code:
D07C000A ADD.W #10,D0 |
14 August 2022, 10:03 | #2 |
Thalion Webshrine
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
|
|
14 August 2022, 10:38 | #3 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,233
|
Well, here two instructions fall together. ADDI is "add immediate to some complex addressing mode, including data registers", whereas ADD is "add some complex addressing mode to data register" or "add data register to some complex addressing mode". In some cases, the two opcodes just fall together, as you see.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AsmOne and IncBin | Nightshft | Coders. Asm / Hardware | 2 | 26 November 2019 16:36 |
ADDI vs ADD # | hth313 | Coders. Asm / Hardware | 17 | 12 September 2018 08:56 |
AsmOne and/or AsmTwo | guy lateur | Coders. Asm / Hardware | 87 | 17 April 2018 11:06 |
AsmOne and tabs | oRBIT | Coders. Asm / Hardware | 2 | 04 September 2017 21:34 |
AsmOne even directive...? | pmc | Coders. General | 30 | 04 December 2009 09:33 |
|
|