简体   繁体   中英

inline assembly jump to labels

I have problems to jump to an label.

My Code:

    asm{
keypress: 
    ...
    cmp ax,0000
    jz keypress
}

Borland says: Undefined Label "keypress"

Try moving the label to outside of the asm block (ie, just above the "asm{" line). This is per this link and this link .

Also note that evidently you may not be able to jump to a forward label (per here ), but that's of course not your problem in this example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM