RE: C: co lze oèekávat
Miroslav Draxal
evik na volny.cz
Středa Srpen 31 12:06:34 CEST 2016
char arrayA[0x103] ;
int main(void) {
volatile char x = 0;
volatile char a = 3;
x--;
if (a != arrayA[x + 1]) {
__builtin_software_breakpoint();
}
return 0;
!int main(void) {
! volatile char x = 0;
0xFFCC: MOVLW 0x0
0xFFCE: MOVWF x, ACCESS
! volatile char a = 3;
0xFFD0: MOVLW 0x3
0xFFD2: MOVWF a, ACCESS
! x--;
0xFFD4: DECF x, F, ACCESS
! if (a != arrayA[x + 1]) {
0xFFD6: MOVF x, W, ACCESS
0xFFD8: MOVWF __pcstackCOMRAM, ACCESS
0xFFDA: CLRF 0x2, ACCESS
0xFFDC: MOVLW 0x1
0xFFDE: ADDWF __pcstackCOMRAM, F, ACCESS
0xFFE0: MOVLW 0x0
0xFFE2: ADDWFC 0x2, F, ACCESS
0xFFE4: MOVLW 0x7D
0xFFE6: ADDWF __pcstackCOMRAM, W, ACCESS
0xFFE8: MOVWF FSR2, ACCESS
0xFFEA: MOVLW 0xE
0xFFEC: ADDWFC 0x2, W, ACCESS
0xFFEE: MOVWF FSR2H, ACCESS // arrayA @0xE7D,
FSR2= 0xF7D
0xFFF0: MOVF a, W, ACCESS
0xFFF2: XORWF POSTINC2, W, ACCESS
0xFFF4: BTFSC STATUS, 2, ACCESS
0xFFF6: GOTO 0x0
0xFFF8: NOP
! __builtin_software_breakpoint();
! }
! return 0;
!}
0xFFFC: GOTO 0x0
-----Original Message-----
From: Hw-list [mailto:hw-list-bounces na list.hw.cz] On Behalf Of Jan Waclawek
Sent: Tuesday, August 30, 2016 10:32 PM
To: HW-news
Subject: RE: C: co lze oèekávat
A ako sa prelozi
char arrayA[0x103] ;
int main(void) {
volatile char x = 0;
volatile char a = 3;
x--;
if (a != arrayA[x + 1]) {
__builtin_software_breakpoint();
}
return 0;
?
wek
_______________________________________________
HW-list mailing list - sponsored by www.HW.cz Hw-list na list.hw.cz
http://list.hw.cz/mailman/listinfo/hw-list
Další informace o konferenci Hw-list