Assembler Developer

Moderators: None (Apply to moderate this forum)
Number of threads: 819
Number of posts: 1580

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
branching in PPC macros Posted by crazypushyz on 13 Dec 2009 at 12:21 AM
Hi,
In case of PPC460 Assembly, i write a macro as :

.macro PRINTMSG cpu_num, msg, len
li 7, 0
lai 2, msg
next_word: PRINTWORD \cpu_num, 2
addi 2, 4
addi 7, 4
cmpi 7, \len
ble next_word
.endm

But the label next_word: does not work inside a macro.
So how do i branch to a particular label inside a macro ?

Regards,
Pushkar



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.