[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Что-нить вроде:
Setbit .macro bit
if bit = 0
SBR R16, 0x00000001
endif
if bit = 1
SBR R16, 0x00000010
endif
if bit = 2
SBR R16, 0x00000100
endif
if bit = 3
SBR R16, 0x00001000
endif
if bit = 4
SBR R16, 0x00010000
endif
if bit = 5
SBR R16, 0x00100000
endif
if bit = 6
SBR R16, 0x01000000
endif
if bit = 7
SBR R16, 0x10000000
endif
endmИ тогда на
.equ Flag = 3
когда попадётся
Setbit Flag
асма подставит
SBR R16, 0x0001000
E-mail: info@telesys.ru