megavolt85
Супермодератор
Сообщений: 3165
Зарегистрирован: 24.03.2012
Рейтинг: 38
Сказал спасибо: 186
Поблагодарили 1561 раз(а) в 919 сообщ.
|
RE: how to use sh4dis.exe
(18.03.2020 18:08)kof888 писал(а): Is it read in order?
mov.l .value, r0
mov.l .value, r1
mov.l .value, r2
mov.l .value, r3
.value:
.long 0x41474553
.long 0x8c010000
.long 0x8c010004
.long 0x8c010008
no
Код:
mov.l .value1, r0
mov.l .value2, r1
mov.l .value3, r2
mov.l .value4, r3
.align 2
.value1:
.long 0x41474553
.value2:
.long 0x8c010000
.value3:
.long 0x8c010004
.value4:
.long 0x8c010008
Цитата:MOV.L @(disp, PC), Rn
Description
This instruction loads a signed long-word from memory using PC-relative with displacement addressing.
The effective address is formed by calculating PC+4, clearing the lowest 2 bits, and adding the zero-extended 8-bit immediate i multiplied by 4.
This address calculation ensures that the effective address is correctly aligned for a long-word access regardless of the PC alignment.
The long-word is loaded from the effective address and placed in R n .
HKT-3030, Bios mod, SD mod, VGA internal mod, G1ATA mod, Region changer mod, PSU mod
|
|
18.03.2020 18:42 |
|