Actually the second of the two CALLAs will directly cause a crash if 
Address_storage points to something in lower 64k.
CALLA with a register that has been loaded 16bit will extend the upper 4 
address bits with 0.
The first instruction, however, will try to load 32bit from Address_storage, 
which of course will mos tlikely return something wrong.




----- Ursprüngliche Nachricht -----
Von: thln
Gesendet am: 13 Jan 2011 13:59:42

The generated assembly instructions look like :

Address_storage:
         .word _Function_Address_Only_16_bit_are_stored_

         calla    Address_storage                    ; cause a cash

         mov        #Address_storage, R15
         calla    @R15                                      ; cause a crash


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to